oliver139 Posted April 15, 2021 Share Posted April 15, 2021 (edited) I am planning to build a module that some actions will be taken after a product is back in stock (i.e. Quantity modified from 0 to >0) However, I have checked the list of hooks in PrestaShop Document and seems there is no such hook.. Can anyone give me some idea on this please? Edited April 15, 2021 by oliver139 (see edit history) Link to comment Share on other sites More sharing options...
joseantgv Posted April 16, 2021 Share Posted April 16, 2021 Check hookActionUpdateQuantity. 1 Link to comment Share on other sites More sharing options...
oliver139 Posted April 16, 2021 Author Share Posted April 16, 2021 1 minute ago, joseantgv said: Check hookActionUpdateQuantity. Yeah, I saw this, but I think this is a bit different, where any quantity update will trigger this hook, right? However, I only want to check for back in stock. I have considered to check for both old quantity & new quantity, but this hook only provide the new qunantity.. Link to comment Share on other sites More sharing options...
joseantgv Posted April 19, 2021 Share Posted April 19, 2021 En 16/4/2021 a las 10:59 AM, oliver139 dijo: Yeah, I saw this, but I think this is a bit different, where any quantity update will trigger this hook, right? However, I only want to check for back in stock. I have considered to check for both old quantity & new quantity, but this hook only provide the new qunantity.. Then probably you will need to save the old value in another table. 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