openstream / mage2_rappenrunden
将价格存储为1/20或1/10 - 即:为货币的0.05或0.1
0.1.0
2023-01-23 10:39 UTC
Requires
- php: ^5.6|^7.0|^7.1|^7.2|^7.3|^7.4|^8.1
- magento/framework: *
- magento/module-backend: *
- magento/module-store: *
This package is auto-updated.
Last update: 2024-09-23 13:57:39 UTC
README
简介
这个简单的Magento 2模块监听Magento 2内部round()函数,并在将价格转换为1/20(0.05)之前进行四舍五入。例如,1.23的值将四舍五入为1.25,而0.97的值将向下四舍五入为0.95。
这个功能在瑞士尤其普遍,但不依赖于特定货币。
要求
- Magento版本2.2.x或更高
安装
使用Composer
composer require comsolit/rappenrunden
手动安装(不使用Composer)
将文件复制到 app/code/Comsolit/RappenRunden
启用模块
在后台,转到:店铺 -> 配置 -> Comsolit -> Rappen Runden
,并在常规 -> 启用Rappen Runden
下将选项设置为是
。
不要忘记刷新您的缓存。
变更日志
版本0.0.4 [2023年1月3日]
- Fix non-numeric value issue
版本0.0.3 [2020年4月7日]
- New Feature: allow switching between 0.05 and 0.1 rounding
- Dropped PHP 5.5 support;
- Dropped Magento 2.0.x and 2.1.x support;
- Added PHP 7.3 and 7.4 support
- Fixed issues with tier prices