Is there an easy way to get client-side access to items as they're added to the cart when the AJAX add-to-cart implementation is disabled by the CMS config "After Adding a Product Redirect to Shopping Cart"?

The best answer around this I've seen is this article (below) from 2013, however I'm currently using Magento 2, so I expect I'll run into some roadblocks when trying to lift code.


I'm going to attempt to go down that road now, but if anyone has any insight, it'd be greatly appreciated.

Edit: I found an answer from Feb. 23 2017 which takes the same approach, however it also comes without any explicit code samples. This could be painful.

Magento 2 : How to Add Google Analytics when Item Added to Minicart

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.