yireo-training / magento2-example-notify-cart-update
Example Magento 2 module showing how to observe KnockoutJS-based cart updates
Package info
github.com/yireo-training/magento2-example-notify-cart-update
Language:JavaScript
Type:magento2-module
pkg:composer/yireo-training/magento2-example-notify-cart-update
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: 2026-02-20 01:03:29 UTC
README
Example Magento 2 module showing how to observe KnockoutJS-based cart updates
Installation
To install use the following composer command:
composer require yireo-training/magento2-example-notify-cart-update:dev-master
Next enable the module:
bin/magento module:enable Yireo_ExampleNotifyCartUpdate
bin/magento setup:upgrade
And flush the cache:
bin/magento cache:clean
Proof of concept
After installing the module, every time when the (mini)cart is updated, a dump should be logged to the console.