plugindemo / module-priceplugin
用于覆盖产品价格的Magento 2插件示例扩展
1.0.0
2021-12-24 07:54 UTC
Requires
- php: >=7.4
README
``plugindemo/module-priceplugin``
主要功能
用于覆盖产品价格的Magento 2插件示例扩展
安装
* = 在生产环境中请使用 --keep-generated 选项
类型 1:Zip 文件
- 将 zip 文件解压到
app/code/Plugindemo - 通过运行
php bin/magento module:enable Plugindemo_Priceplugin启用模块 - 通过运行
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 plugindemo/module-priceplugin安装模块 composer - 通过运行
php bin/magento module:enable Plugindemo_Priceplugin启用模块 - 通过运行
php bin/magento setup:upgrade应用数据库更新* - 通过运行
php bin/magento cache:flush清除缓存