Show available products first

  • Posts: 30
  • Thank you received: 1
4 days 20 hours ago #364966

-- url of the page with the problem -- : medequip.ir
-- HikaShop version -- : 5.1.1
-- Joomla version -- : 5.2.2
-- PHP version -- : 8.2

hikashop have any way to Show available products first then show any product dont available on shop ?

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

  • Posts: 83007
  • Thank you received: 13398
  • MODERATOR
4 days 16 hours ago #364971

Hi,

There is no direct way to do it.

What you could do is to :
- Create an unpublished category called "out of stock".
- Then, in the System>Mass actions, create a mass action to add the out of stock category to the products when their stock reach 0.
- Then, in the System>Mass actions, create another mass action to remove the out of stock categoryfrom the products when their stock is greater than 0.
- You could configure these mass actions with a trigger like every hour, to update the status of the products periodically.
- Create a menu item of the type "products listing" in order to list your products and turn off its "out of stock" setting. That way, the menu item will only display the products with stock
- Create a HikaShop content module via the joomla modules manager, configured to display all the products of that out of stock category, and configure it to display in a position of your template below the main area, and configure its menu assignment to be displayed only for the menu item of the previous step, and with only it's "products listing" display setting activated among the display settings.

That way, on that menu item, you'll have first a listing of the products in stock (displayed by the menu item), and then a listing of the out of stock products (displayed by the module).

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

Time to create page: 0.052 seconds
Powered by Kunena Forum