Jump to content
Sign in to follow this  

Tax not showing decimal values

Recommended Posts

Hello, Im trying to workout how to make sure the cart shows Tax (GST 10%) correctly with the fractional amount, .

Total products (tax excl.) $53
Total shipping Free shipping!
Total (tax excl.) $53
Tax $5

The Tax should be $5.30 and the total $58.30 this is correct at Payment, however not in display here. It appears to come from a value _PS_PRICE_DISPLAY_PRECISION_

Which is set to 2 as far as I can tell in Prestashop > Admin > Preferences > General.  Is this the correct place to set this,

Comes from shopping-cart.tpl

    <tr class="cart_total_tax">
                        <td>{l s='Tax'}</td>
                        <td class="price" id="total_tax">{displayPrice price=$total_tax}</td>

Can someone suggest how to fix this correctly (would prefer not to hack a solution in)


Thank you


Share this post

Link to post
Share on other sites

Nevermind found it, was a setting under the currency "Display Decimals"

Share this post

Link to post
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
Sign in to follow this  

  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More