yireo-training / magento2-example-notify-cart-update
示例 Magento 2 模块,展示如何观察基于 KnockoutJS 的购物车更新
dev-master
2020-08-19 12:50 UTC
Requires
- php: >=7.3.0
- magento/framework: ^100.1|^101.0|^102.0|^103.0
Requires (Dev)
- composer/composer: *@dev
- phpunit/phpunit: *
This package is auto-updated.
Last update: 2024-09-19 21:44:32 UTC
README
示例 Magento 2 模块,展示如何观察基于 KnockoutJS 的购物车更新
安装
使用以下 composer 命令进行安装
composer require yireo-training/magento2-example-notify-cart-update:dev-master
然后启用模块
bin/magento module:enable Yireo_ExampleNotifyCartUpdate
bin/magento setup:upgrade
并刷新缓存
bin/magento cache:clean
概念证明
安装模块后,每次更新(迷你)购物车时,应该会在控制台记录一个日志。