Rolige Posted March 1, 2016 Share Posted March 1, 2016 I think, /classes/Product.php Link to comment Share on other sites More sharing options...
DavideZ Posted March 1, 2016 Author Share Posted March 1, 2016 Hi, I need to update product's custom fields when the price or quantity, of the same product, change, where I have to modify the code to achieve what I need? The prestashop version I have to modify is 1.6.0.X Thanks in advance, Davide Link to comment Share on other sites More sharing options...
DavideZ Posted March 8, 2016 Author Share Posted March 8, 2016 I thought I had already answered, but I was wrong I had to use the db to store the old quantity and old price values, because I haven't found a place in the code where I could have the old and the new value of these 2 fields. Anyway quantity is managed in StockAvailable class. So I made a module that look for actionProductUpdate hook, for the price, and actionQuantityUpdate, for the quantity, saving the values, that I need to check changes, in the db. Thank you for your answer! 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