Display No products in category

  • Posts: 147
  • Thank you received: 6
2 years 4 months ago #342863

-- url of the page with the problem -- : my.vource.tv
-- HikaShop version -- : 4.6
-- Joomla version -- : 3.10.10
-- PHP version -- : 7.4.29

Hello,
I have set up a category menu for products. If there are no products available, I would like the page to state, "Coming soon" etc.
How can I do this with hikashop?

Thanks,
Wrina

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

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
2 years 4 months ago #342874

Hi,


You can edit the file product / listing via the menu Display>Views.
There, just before the line:

$html = ob_get_clean();
you can add such code:
if(empty($this->rows)) {
 echo "Coming soon";
}

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

Time to create page: 0.058 seconds
Powered by Kunena Forum