Cron Job To Remove Items From Website

  • Posts: 962
  • Thank you received: 11
  • Hikashop Business
6 years 6 months ago #280572

I was assuming that I could use the cron to remove items off the website after a certain time - but I don't see how. I read teh CRON document but that didn't help. www.hikashop.com/support/documentation/1...ashop-cron-task.html

For example, when an item is sold they want the item to remain on the site for example, x number of days, and then disappear after that.

Is there a way to do this with a cron job?

Thanks!

Please Log in or Create an account to join the conversation.

  • Posts: 81504
  • Thank you received: 13063
  • MODERATOR
6 years 6 months ago #280584

Hi,

It's possible to delete products with a mass action running every day.
It's even possible to delete products with a stock of 0 with a mass action running every day.
However, there is no option in the mass actions to delete products with a stock of 0 after X days after the stock was set to 0 since the information of when the stock was set to 0 is not stored by HikaShop.
So to do that, that would require the development of a custom plugin by a developer.

Please Log in or Create an account to join the conversation.

Time to create page: 0.056 seconds
Powered by Kunena Forum