News:

You may pay someone to create your store, or you visit our seminar and become a professional yourself with the silver certification

Main Menu

Show categories only (no products)

Started by Paul Anson, February 05, 2014, 19:34:17 PM

Previous topic - Next topic

Paul Anson

Hi all

I want to display just categories without any products shown until a customer comes to the final category that has products in it. How do I stop the products being shown ? I can do this in the top level category by use of the menu calling just the category but as soon as a customer selects a child category some products are shown. I have set Featured/Top Ten/Recent/Latest all to zero.

I am using the categories to drill down so only the final child categories have any products attached to them (if that makes sense !).

I am sure this must have been asked before and I apologise if it comes up all the time - I have tried searching but cannot find out how.

Many thanks

inpixelated!

On the site I was working on we ended up commenting out the "offending" section of the template index.php code, but I would love to know if there is a "better", more acceptable, or more easily maintainable method!

jenkinhill

For drilling through categories I would normally suggest http://breakdesigns.net/extensions/custom-filters .

You can use template overrides, with category assigned templates, one without the product display code for the cats with no products, and normal code for the final cat.
Kelvyn
Lowestoft, Suffolk, UK

Retired from forum life November 2023

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum