Message: "No products in this category" / But There are No Template HTML Files

  • Posts: 285
  • Thank you received: 6
3 hours 26 minutes ago #371684

-- url of the page with the problem -- : www.classicalguitarhowto.com/products
-- HikaShop version -- : 6.4.1
-- Joomla version -- : 5.4.5
-- PHP version -- : 8.5.4
-- Error-message(debug-mod must be tuned on) -- : No products in this category

These are the same symptoms as described in this post:
www.hikashop.com/forum/product-category-...ory-page.html#371039

However, I followed the instructions on that post, and there are no Hikashop override templates in the template HTML file.

I also noticed that with the last update, all of the CSS on products had changed. I had to add new CSS to the template file.

This is one of the oldest Hikashop installs I have. Over ten years.

Last edit: 3 hours 23 minutes ago by MSTACE. Reason: added CSS notice

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

  • Posts: 85509
  • Thank you received: 13987
  • MODERATOR
18 minutes ago #371685

Hello,

Thanks for the report. The previous thread you linked was about a stale `category/listing.php` override, but in your case the message comes from a different place: a HikaShop "Display content" module attached to that menu, with the wrapper id `hikashop_module_244` in the page source. That module is configured to display products from a category that has no products of its own, so it produces its own "No products in this category" message right under the subcategories grid.

You can resolve this on your side immediately by going to System > Site Modules in your Joomla backend, opening the module with id 244, and either pointing it at a category that has products, switching its content type to display subcategories there, or simply unpublishing it if it is no longer needed.

We have also patched the template logic so that an attached HikaShop module which lists an empty category does not display the empty-state message when the parent menu page is already showing a populated subcategories listing above it. The fix has been added on the install package, so you can download again HikaShop on our website and install it on yours to get it. Then, no module-side reconfiguration will be required to fix the problem which will confirm that the change is correct.

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

Time to create page: 0.055 seconds
Powered by Kunena Forum