cyberdoc Posted July 9, 2014 Share Posted July 9, 2014 Hi, guys can any1 guide me on the hook i need to use to run a piece of code everytime any modifications in the products of cart is done(addition/deletion of product/increase of quantitiy). i tried hookactionCartSave but it seems thats not the correct one. Im using 1.6 Link to comment Share on other sites More sharing options...
bellini13 Posted July 9, 2014 Share Posted July 9, 2014 When you add/delete products from the cart, the Cart::updateQty function is executed. This function does not execute any hooks directly, but it does call Cart::update() when it is finished. The update function executes the actionCartSave hook, so you should be able to use this hook. Make sure you are registering actionCartSave and not hookactionCartSave. The function you create should be named hookactionCartSave Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now