Automat. show icon "Available" if item in stock

  • Posts: 47
  • Thank you received: 4
9 years 3 months ago #241354

-- 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? :(

Attachments:
Last edit: 9 years 3 months ago by amigo.

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

  • Posts: 84313
  • Thank you received: 13702
  • MODERATOR
9 years 3 months ago #241377

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.

The following user(s) said Thank You: amigo

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

Time to create page: 0.054 seconds
Powered by Kunena Forum