How to get a text line instead of empty page out of stock procuts.

  • Posts: 420
  • Thank you received: 10
  • Hikaserial Subscription Hikashop Business
6 years 2 months ago #302749

-- url of the page with the problem -- : opslagvl.nl
-- HikaShop version -- : 4.0.0
-- Joomla version -- : 3.8.13
-- PHP version -- : 7.2
-- Error-message(debug-mod must be tuned on) -- : no error

Hello,

How to get a text line instead of empty page when products from a category are out of stock. When the product is out of stock we don't want it to be shown that is allright.. The category listing displays the products of that category but when out of stock the page is empty. How can we get a text line when the category is empty.??
Hope you understand what i mean and can help us with this.

Thanks.

Mark

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

  • Posts: 83511
  • Thank you received: 13511
  • MODERATOR
6 years 2 months ago #302754

Hi,

Why not turning on the setting "Only with products" of the menu item/module displaying the listing of your categories so that the category doesn't appear in it if it has no products in it ?

Otherwise, you could do that with a view override of the product/listing.php view file via the menu Display>Views with such code:
www.hikashop.com/forum/4-how-to/76761-ad...category.html#196896

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

Time to create page: 0.054 seconds
Powered by Kunena Forum