Jump to content

Delete article after end promotion


huor

Recommended Posts

Hi,


 


I'm a beginner in Prestashop, I'd like to modify my website. I want to delete automatically a product if the promotion end is outdated.


For the special offers (promotions), the end date is written with $product.specific_prices.to.


 


I want to delete the article where the date of this variable is equal to the current date. But I don't know how to do it... In the templates? With a trigger in DB? With PHP files? 


 


Thanks for your advices!  :)


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