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

Add ShoppingCartAddProduct and ShoppingCartRemoveProduct hooks

Shaun Reitan shared this idea 9 months ago
Under Consideration

Please add the following hooks into the shopping cart logic.

ShoppingCartAddProduct

ShoppingCartRemoveProduct

I tried to use ClientAreaPageCart to handle what i needed done but when you add a product that hook is never executed since the cart redirects the user to the configuration page (which may be a bug?)

Comments (1)

photo
1

It would be ideal if the hook could provide the key of the product that was just added or removed from the cart also. The key would be from $_SESSION['cart']['products'][KEY]