Jump to content

Prices rounded incorrectly


Recommended Posts

Hi everybody,

 

I recently 'upgraded' a Prestashop to use a new theme. Since that update some prices aren't being rounded correctly (see screenshot, should be 38.00, not 38.01). I have contacted the developers of the theme but they weren't able to figure it out, neither can I. 

 

The code in product.tpl doesn't seem to be wrong and as you can see the error only happens after being converted/rounded (data-price echos the correct price).

<span id="our_price_display" itemprop="price" data-price="{$productPrice}">
{convertPrice price=$productPrice}
</span>

which delivers:

<span id="our_price_display" itemprop="price" data-price="38">CHF 38.01</span>

Any ideas? Help would be very much appreciated!!

 

Thank you,

Meinhard

post-882300-0-22962800-1417441426_thumb.png

Edited by meinhard.meintjes (see edit history)
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...