Jump to content

Round price on product-item.tpl


Recommended Posts



I've got a strange rounding issue in product-item.tpl.


Here's the code:

{if !$priceDisplay}{convertPrice price=$product.price}{else}{convertPrice price=$product.price_tax_exc}{/if}

and then in product.tpl:

{convertPrice price=$productPrice}


{assign var='productPrice' value=$product->getPrice(true, $smarty.const.NULL, $priceDisplayPrecision)}

How can I avoid the rounding?


Thank you!

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