Jump to content

Product Price And Quantity Change, Where Do I Have To Look? 1.6.0.x


DavideZ

Recommended Posts

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

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

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...