Extend ShoppingCartController

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
3 anos atrás
How can I extend the ShoppingCartController in version 4.30?

What I want to achieve is to be able to reduce quantity like the AddProductToCart_Catalog with a new method RemoveProductFromCart_Catalog, but i dont want to change it in the core
3 anos atrás
I suggest you look at how the existing plugins work
Then in simple terms ....
Build a custom shopping cart controller installable using the DependencyRegistrar
Create a new route to call the routine from the controller
Action the route from a button of fucntion in the view
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.