Jump to content

Show tax and total order price without decimals


Recommended Posts


I needed to show my product prices without tax and with 2 decimals, it is already configured working ok. But now I need to show the final price and the tax value rounded, without decimals. I already did some changes defining variables on a template but I would rather redefine $totals.total_including_tax.value and $subtotals.tax.value so I could round them so it would be applied to all places where they are used. In fact, the need of doing that comes from the problem I am having for finding the $HOOK_PAYMENT_RETURN content and modifying it, as this hold the info for making the payment to the bank account and even though I can change the template of the order-confirmation-table.tpl to show the info as I need I can't change them on this $HOOK_PAYMENT_RETURN, so the final price shows decimals.

Any suggestions and help will be very appreciated, thanks before hand.


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