yireo-training/magento2-example-notify-cart-update

Example Magento 2 module showing how to observe KnockoutJS-based cart updates

Installs: 49

Dependents: 1

Suggesters: 0

Security: 0

Stars: 6

Watchers: 4

Forks: 3

Open Issues: 0

Language:JavaScript

Type:magento2-module

dev-master 2020-08-19 12:50 UTC

This package is auto-updated.

Last update: 2024-04-19 20:36:48 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.