Jump to content

Avoid hook loop in hookActionUpdateQuantity


Recommended Posts

Hello everyone,
I'm trying to tackle an issue I have with a module I'm developing:
The module's goal is to update other product's combinations quantities based on a main combination quantity, this involves using the "hookActionUpdateQuantity" and calling "StockAvailable::updateQuantity()" inside of it.
This obviously creates an infinite loop, how would you suggest solving this issue?

Thanks a lot.

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...