View Single Post
  #1  
Old 07-16-2020, 08:45 PM
  Blainevk's Avatar 
Blainevk Blainevk is offline
 

Senior Member
  
Join Date: Dec 2004
Location: Atlanta, GA
Posts: 162
 

Default Product Price Converted to Rewards Points VALUE

Hello,

When I had an Xcart 4 (classic) Store, I had someone do a conversion for me where it would automatically convert the Price of the product into the quantity of Rewards Points needed to redeem for the same product, so the shopper could see BOTH Dollar Value & Rewards Points Value needed.

The conversion was:

{math|formatnumeric:',' equation="price * 1000 + 5" price = $product.price}

What needs to be changed in this conversion to work with Xcart 5 Multivendor?

ALSO:

How would the same conversion be added to this Xcart 5 Multivendor template:

<div class="product-price {{ this.getFingerprint() }}">
<ul class="product-price product-price-range">
<li class="product-price-base"><span class="price product-price min-of-range">{{ this.formatPrice(this.getMinListPrice(), this.null, 1)|raw }}</span></li>
<li class="product-price-base"><span class="price product-price range-delimiter">{{ this.getPriceRangeDelimiter() }}</span></li>
<li class="product-price-base"><span class="price product-price max-of-range">{{ this.formatPrice(this.getMaxListPrice(), this.null, 1)|raw }}</span></li>
</ul>
</div>

Thanks in advance for your help.
__________________
Blaine

X-Cart Multi-vendor 5.4.1.35
PHP version: 8.1

Blaine's Travel Club - http://blainestravelclub.com

Collect Travel Points - http://blainestravelclub.com/travelpoints/rewards/

Travel Points Gift Mall - https://blainestravelclub.com/travelpoints/giftmall/

Grow Your Business - http://blainestravelclub.com/business/

Making Money & Fun - http://blainestravelclub.com/travelers/

Charitable Fun-razing - http://blainestravelclub.com/fun-razors
Reply With Quote