m2.Price
m2.Price copied to clipboard
Magento2. Rounding Price to Prettier Value for Multi-Currency Stores.
Magento2 Rounding Price
Rounding Price to Prettier Value for Multi-Currency Stores.
Compatibility
Magento CE(EE) 2.0.x, 2.1.x, 2.2.x, 2.3.x, 2.4.x
Base prices - US Dollar
![Magento2 Rounding Price](https://karliuka.github.io/m2/price/base.png)
Store prices - Euro
![Magento2 Rounding Price](https://karliuka.github.io/m2/price/store.png)
Store rounding prices - Round fractions down, precision is 0
![Magento2 Rounding Price](https://karliuka.github.io/m2/price/floor-0.png)
Store rounding prices - Round fractions down, precision is -1
![Magento2 Rounding Price](https://karliuka.github.io/m2/price/floor-1.png)
Store rounding prices - Round fractions down, precision is -1 and enabled Subtract Amount
![Magento2 Rounding Price](https://karliuka.github.io/m2/price/floor-s.png)
Store rounding prices - Round fractions down, precision is -1 and enabled Subtract Amount(negative)
![Magento2 Rounding Price](https://karliuka.github.io/m2/price/floor-sn.png)
Configuration
![Magento2 Rounding Price](https://karliuka.github.io/m2/price/config.png)
The idea of adding a rounding algorithm 'Swedish rounding' is suggested by ScIT-Raphael.
Install with Composer as you go
-
Go to Magento2 root folder
-
Enter following commands to install module:
For Magento CE (EE) 2.0.x, 2.1.x, 2.2.x, 2.3.x
composer require faonni/module-price:2.0.*
For Magento CE (EE) 2.4.x
composer require faonni/module-price:2.4.*
Wait while dependencies are updated.
-
Enter following commands to enable module:
php bin/magento setup:upgrade php bin/magento setup:static-content:deploy