- Posts: 106
- Thank you received: 0
badge "new"
Best regards
Please Log in or Create an account to join the conversation.
You can have this kind of featuring with your badge with date condition.
For this follow these steps :
- Go to Components => HikaShop => Configuration
- In Products dropdown select Badges
- Create a new Badge method
- Have a look on this specific part for add date restrictions
Hope this will help you.
Regards
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
What do you think?
Best regards
Please Log in or Create an account to join the conversation.
- create a category for new products that is not visible in your shop
- create a NEW badge for this category
- create a mass action to add new products to this category (see screenshot) that is triggered daily/hourly
- create opposite mass action to remove products older than 1 month from this category
Please Log in or Create an account to join the conversation.
I'll take a look.
Thanks
Best regards
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
The best is to create a "public" category (so default status) but not listed on any listings in frontend.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
french150 wrote: One question please: when you say "create a category is not visible in your shop" do you mean that i have to set the access level of the category to make it visible only to me?
My structure of categories looks like:
product category
- Products (here are all products and categories visible in eshop)
- Sales
- New
- Promotions
Only category Products is visible in eshop. This way you can use Sales, New... categories for badges, options... and they are not visible on site.
Mass actions are very powerful and once you understand the concept, together with categories it opens endless possibilities.
Even it sounds complicated, it's matter of minutes to set it up.
Once you created first mass action, copy it, replace > with < in filters and change action to remove category.
Here is screenshot of our mass action to remove categories. 175 is id of our category for "NEW" badge. I added it for performance reasons, because we have over 10000 products.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Yes, that's a good way of doing it. And yes, the time there is the number of seconds.
So the rule "product_created < {time}-5184000" means "only the product created more than 60 days ago".
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
It depends if the category in question is a subcategory of the "Manuali" category or not.
The best is to create two categories under the "Product category" (which is the root one), for example a categogy "common categories" and another one "hidden categories", and move all the current categories under "common categories".
This way the hidden categories will never be displayed on frontend and can be used to add the restrictions.
Please Log in or Create an account to join the conversation.
A suggestion please: i want create mass action to add or remove the updated badge to products. So i created the hidden category for updated products and i create 2 mass actions to add or remove them thanks to the advanced date picker custom field "ultimo aggiornamento" (means latest updated). This is field is not required so i set the date only when i update the product. How to update the product? In my case the product is an ebook so i delete and add the new file simply. My question is: the component knows that i updated the product like i told you above? If it is so, can i use the trigger "after the product is created" instead of the procedure i told you above?
I attach the actual procedure i use to add the "updated" badge to the product.
Best regards
Please Log in or Create an account to join the conversation.
The "after a product is created" trigger is only processed when a new product is created. So that's not what you want to use. You would have to use the "after a product is updated" trigger.
But that's not logical for what you want to do.
If you use that trigger, your mass action will only be called when you save the product.
If you set your date as today and check that the date is two month ago, it means that your mass action will only run when you click on the "save" button of the product and that the date in that field is 2 months in the past.
I don't think that it's what you want.
That's why the trigger "every hour" is adapted, so that it checks each hour if the date is 2 months in the past yet or not and only run when that's the case, when you doing something.
Please Log in or Create an account to join the conversation.
If you want you can check on my backend to see what's wrong.
Thanks
Best regards
Please Log in or Create an account to join the conversation.
Can you provide a screenshot of the settings of your mass action ?
Can you also check that your cron task has been configured properly:
www.hikashop.com/support/documentation/5...cron-task.html#check
Please Log in or Create an account to join the conversation.
Thanks.
Best regards
Please Log in or Create an account to join the conversation.