View Single Post
  #3  
Old 07-18-2020, 04:18 PM
  Blainevk's Avatar 
Blainevk Blainevk is offline
 

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

Default Re: Product Price Converted to Rewards Points VALUE

Hi Steve,

Thanks so much for your help on this!

It took a little trial & error, but it worked exactly how i wanted it to! If you would like to see the finished product look here...

https://blainespartynetwork.net/partypoints/giftmall/

Here is the finished code that I used:

{##
# Price widget
#}
<br>
<div class="product-price {{ this.getFingerprint() }}">
<ul class="product-price product-price-range">
This item FREE with<br>
<li class="product-price-base"><span style="color: #bd0014; font-size: 24px;" class="price product-price min-of-range">{{ (this.getMinListPrice() * 1000) + 0 }}</span></li>
<li class="product-price-base"><span style="color: #bd0014; font-size: 24px;" class="price product-price range-delimiter">{{ this.getPriceRangeDelimiter() }}</span></li>
<li class="product-price-base"><span style="color: #bd0014; font-size: 24px;" class="price product-price max-of-range">{{ (this.getMaxListPrice() * 1000) + 0 }}&nbsp;<img src="http://blainespartynetwork.net/partypoints/giftmall/images/poker_chip_store.png" width="32px" alt="" /></span></li>
</ul>

or pay cash or use both!

<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>


Now, the only thing I need is for the code to place a "comma" at the thousand mark like it did in the old Xcart 4 version: {math|formatnumeric:',' equation="price * 1000 + 5" price = $product.price}... I'm assuming the "{math|formatnumeric:',' " in the code is what made that happen\, but I couldn't figure out how to that into the current Xcart version to make it work... Any ideas? Different code needed?

Thanks again & looking forward to your reply,
Blaine
__________________
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