Feature Requests
Share ideas, discuss and vote on requests from other users in community

ShoppingCartAddProduct Hook

Cameron shared this idea 2 years ago
Under Consideration

I'm trying to implement advanced Google Analytics E-commerce, specifically, logging the addition/removal of a product).


I was surprised to see that no hooks exist for the cart when a product is added/removed which is why I am suggesting the following hooks:

ShoppingCartAddProduct - Called when a product is added to the cart

ShoppingCartRemoveProduct - Called when a product is removed to the cart

Both hooks would contain details of the product added/removed.

I'm sure I can't be the only person who would benefit from this!