mikhrock Posted December 22, 2016 Share Posted December 22, 2016 I need to detect the exact moments of cart update - when a product is added/removed, quantity changed etc. I'm currently using 'actionCartSave', but it fires too often - for example, when a product page is just viewed and nothing really happens to the cart. The $params['cart'] can obviously be empty in this case, which leads to errors in my module. Please share any ideas on how I can detect only the cart update events, or probably where I'm wrong in using actionCartSave hook. Thank you Link to comment Share on other sites More sharing options...
mikhrock Posted December 30, 2016 Author Share Posted December 30, 2016 (edited) Ok, for now I've managed to solve the problem by manually detecting and checking the places where Cart Save is called and not needed (these are AuthController and AddressController for example). But the question is still open, I hope there is a more efficient and good looking way. Edited December 30, 2016 by mikhrock (see edit history) 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