Jump to content

[Solved] Product state change from code.


Raullara

Recommended Posts

Hello again! like every day, one new problem.

 

This time it is a products visualization problem, my module has to modify the active product state if the stocks goes to 0.

 

I'm watching the ps_product table, and the active field change to 0 when i click this option.

 

But the problem is something else change, and i don't know where.

 

view attached photos.

 

sumary....

 

My module change the active field to 0 when the stock is 0, but the active button on the CSM do not change. So i have to  modify not only this active field on ps_product table.

 

Thanks in advance.

 

 

Okay solved - the table ps_product_shop also have the active field and need to be changed

post-783983-0-28604100-1400575716_thumb.png

post-783983-0-50093800-1400576731_thumb.png

Edited by Raullara (see edit history)
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...