Magento – Magento automatically round up product price based on applied VAT

pricerounding

I need to rounds up the including vat sell price to closest £0.99 ie. if sell price for an item including vat is £10.52 it rounds up the sell price inc vat to £10.99 . In other words, so sell price always ends with £.99 at the end.

And the website automatically will need to change the excluding vat price to exactly 20% less that the rounded up price.

I believe there is some event where I can hook a function to apply this round up logic?

Best Answer

This is similar to the "5 Rappen Rounding" in Switzerland, where the total always is a multiple of 0.05.

There is an extension for it that you should be able to build upon: https://github.com/openstream/Magento5CentRounding - it rewrites the subtotal and grandtotal models and hooks into their collect() methods.

Related Topic