How to Remove a product from Category after 7 days

  • Posts: 5
  • Thank you received: 0
9 years 8 months ago #166880

-- HikaShop version -- : 2.3.2
-- Joomla version -- : 2.5.24

Hello,

I would like to use the New Badge for every new product that is created and keep it for some days.
So I created a mass action that adds every new product that I create in my 'New Products' Category (hidden) that has been assigned with the Proper 'NEW' Badge. So far so good.

How can I create now a second mass action that will remove the product from this 'New Products' Category after let's say 7 days in order to have the badge automatically removed? How is it done? What should I choose in the filter section? Do I choose the product_created parameter? What is the syntax??

How do I tell the system to perform an action 'after X days from Product creation'????

Looking forward to hearing from you as soon as possible...

Best Regards,

K

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

  • Posts: 81481
  • Thank you received: 13062
  • MODERATOR
9 years 8 months ago #166882

Hi,

First, you need to select a trigger like "every day" so that the system periodically check on the products.
Then, yes, you add a filter on "product_created" with a value like this: {time}-604800
604800 is the number of seconds in 7 days.
And set th operator to < so that it filters the products older than this.
Set a second filter on the category so that you do the process only for the products in that "new products" category.
Finally, set an action to remove the category from the product.

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

Time to create page: 0.057 seconds
Powered by Kunena Forum