cancel
Showing results for 
Search instead for 
Did you mean: 

Force tax & discount to round to 2 decimal places

Force tax & discount to round to 2 decimal places

We have a Magento (1.8) shop that sells some items which are so cheap that we have had to list them with prices up to 4 decimal places.
So we might have a poly bag priced at £0.0088.
To do this we used ET Currency Manager (http://shop.etwebsolutions.com/eng/et-currency-manager.html).

This seems to work OK, but the problem we have is that shifting to 4dp leads to issues with tax and discounts also being calculated to 4dp. This then causes discrepancies with our office accounting systems.

We need to allow the prices to be 4dp, but force the tax and discount to remain at 2dp.

Can anyone tell us what changes we would need to make to achieve this?

3 REPLIES

Re: Force tax & discount to round to 2 decimal places

Hi @bmbwebdesign,

 

You need to check these links out:

  1. http://stackoverflow.com/questions/6980164/magento-how-do-i-set-the-product-price-to-4-decimal-place...
  2. http://magento.stackexchange.com/questions/74982/round-price-to-4-decimal-places
Found something useful, please give "Kudos" or "Accept as Solution" for Token of Appreciation.
Free Magento Extensions : https://magecomp.com/free-magento-extensions.html

Re: Force tax & discount to round to 2 decimal places

Thanks for the links, they would appear to get us to the stage we are at already - having prices as 4dp.

What we need to find out is how we can keep the prices as 4dp, but make sure that tax and discount are rounded to 2dp.

Re: Force tax & discount to round to 2 decimal places

I suggest you to identify the file from where the tax are calculated and getting applied. Try to make changes there and may be you'll get what you want.

Found something useful, please give "Kudos" or "Accept as Solution" for Token of Appreciation.
Free Magento Extensions : https://magecomp.com/free-magento-extensions.html