koval / module-disableaddtocart
禁用“添加到购物车”
1.0.0
2021-07-11 13:26 UTC
README
``kowal/module-disableaddtocart``
主要功能
禁用“添加到购物车”
安装
* = 在生产环境中请使用 --keep-generated 选项
类型 1:Zip 文件
- 将 zip 文件解压到
app/code/Kowal - 通过运行
php bin/magento module:enable Kowal_DisableAddToCart启用模块 - 通过运行
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-disableaddtocart安装模块 - 通过运行
php bin/magento module:enable Kowal_DisableAddToCart启用模块 - 通过运行
php bin/magento setup:upgrade应用数据库更新* - 通过运行
php bin/magento cache:flush清除缓存
配置
- 启用(disable_add_to_cart/settings/enable)
规格
- 插件
- afterIsSaleable - Magento\Catalog\Model\Product > Kowal\DisableAddToCart\Plugin\Frontend\Magento\Catalog\Model\Product