Is it possible to round the grand totals of checkout-cart up/down? I need a "swedish rounding"?
Problem is I have some customized products with cent-prices, so I cannot change these fixed prices.
Magento Stack Exchange is a question and answer site for users of the Magento e-Commerce platform. It only takes a minute to sign up.
Sign up to join this communityIs it possible to round the grand totals of checkout-cart up/down? I need a "swedish rounding"?
Problem is I have some customized products with cent-prices, so I cannot change these fixed prices.
I wrote a module for swiss rounding (to 1/20th or 0.05) - it may help you:
https://packagist.org/packages/comsolit/rappenrunden
This simple magento 2 module listens to the magento2 internal round() function and rounds the price before to 1/20th (0.05). For example, a value of 1,23 will be rounded up to 1,25 and a value of 0,97 will be rounded down to 0,95.
This functionality is particularly wide-spread in Switzerland, but is not dependent on a specific currency.