cowal / module-displaypercentdiscount
显示百分比折扣
1.0.2
2022-01-30 23:48 UTC
Requires
- kowal/base: *
README
``kowal/module-displaypercentdiscount``
主要功能
显示百分比折扣
安装
* = 在生产环境中请使用 --keep-generated 选项
类型 1:压缩文件
- 解压压缩文件到
app/code/Kowal - 通过运行
php bin/magento module:enable Kowal_DisplayPercentDiscount启用模块 - 通过运行
php bin/magento setup:upgrade应用数据库更新* - 通过运行
php bin/magento cache:flush清理缓存
类型 2:Composer
- 将模块添加到 composer 仓库中,例如
- 私有仓库
repo.magento.com - 公共仓库
packagist.org - 公共 GitHub 仓库作为 vcs
- 私有仓库
- 通过运行
composer config repositories.repo.magento.com composer https://repo.magento.com/将 composer 仓库添加到配置中 - 通过运行
composer require kowal/module-displaypercentdiscount安装模块 composer - 通过运行
php bin/magento module:enable Kowal_DisplayPercentDiscount启用模块 - 通过运行
php bin/magento setup:upgrade应用数据库更新* - 通过运行
php bin/magento cache:flush清理缓存
配置
- 启用 (product_price_percent_discount/settings/enable)
规格
- 插件
- afterGetProductPrice - Magento\Catalog\Block\Product\ListProduct > Kowal\DisplayPercentDiscount\Plugin\Frontend\Magento\Catalog\Block\Product\ListProduct