- Posts: 47
- Thank you received: 4
Automat. show icon "Available" if item in stock
10 years 5 months ago - 10 years 5 months ago #241354
by amigo
Automat. show icon "Available" if item in stock was created by amigo
-- HikaShop version -- : 2.6.2
-- Joomla version -- : 3.5.1
Hi, actually my question is written in the subject of this topic: I wish to force Hikashop display icon (that I choose) to any product that is in stock now.
I know a long way - create a category, add icon "available" to it and add or remove this category from a product whenever a product is available or out of stock. Is my manager sentenced to do it all the time?
-- Joomla version -- : 3.5.1
Hi, actually my question is written in the subject of this topic: I wish to force Hikashop display icon (that I choose) to any product that is in stock now.
I know a long way - create a category, add icon "available" to it and add or remove this category from a product whenever a product is available or out of stock. Is my manager sentenced to do it all the time?
Last edit: 10 years 5 months ago by amigo.
Please Log in or Create an account to join the conversation.
10 years 5 months ago #241377
by nicolas
Replied by nicolas on topic Automat. show icon "Available" if item in stock
Hi,
You can add such icons with the Products>Badges system.
In the "Quantity" setting, you can define the quantity you want the badge to appear for and all the products with that quantity will get the badge. So if you put 0 in there, all the products without stock will get the badge.
But you can say "items in stock" in that. So you need to do it in a diverted way:
- create an unpublished category that will be added as second category to the products without stock
- add it to the "available" badge
- create a mass action via the menu System>Mass action with a trigger like "every hour", and a filter on the product_quantity field being different from 0 and an action to add that category to the products.
- create a mass action via the menu System>Mass action with a trigger like "every hour", and a filter on the product_quantity field being equal to 0 and an action to remove that category to the products.
You can add such icons with the Products>Badges system.
In the "Quantity" setting, you can define the quantity you want the badge to appear for and all the products with that quantity will get the badge. So if you put 0 in there, all the products without stock will get the badge.
But you can say "items in stock" in that. So you need to do it in a diverted way:
- create an unpublished category that will be added as second category to the products without stock
- add it to the "available" badge
- create a mass action via the menu System>Mass action with a trigger like "every hour", and a filter on the product_quantity field being different from 0 and an action to add that category to the products.
- create a mass action via the menu System>Mass action with a trigger like "every hour", and a filter on the product_quantity field being equal to 0 and an action to remove that category to the products.
The following user(s) said Thank You: amigo
Please Log in or Create an account to join the conversation.
Time to create page: 0.051 seconds