Jump to content

Deleting products by columns date_upd


Recommended Posts

Hello everybody,

please help me. I have on prestashop database new table name:

 

to_delete

 

Here in table to_delete I have id product and reference product for deletion.

This is my php code which works. But now I needed to add control when the product was updated table ps_ product columns date_upd. When the product on columns date_upd older than six months (or a specific date) will be deleted.

Just do not know how to add code conditions.

Please help me.

Edited by sparhawk (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...