Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Hide categorie if it has no products (for main and sub cats)


Alex H

Recommended Posts

Hi,

 

is there a way or contribution to hide the categories in the categories box, wich has no products in it?

 

- A subcategorie should not be shown, if products count = 0

- A top level categorie should not be shown, if products count = 0 and if all related subcategories has also a products count = 0

 

thx for help

 

Alex

Link to comment
Share on other sites

i tested this already, but I need a query, so the hiding process is done automatically.

 

The products table will be updated by our inhouse system and I won?t check the categories wich has products everytime by myself.

This could happen several times a week - too much work :wink:

Link to comment
Share on other sites

:D

 

works fine! I tuned it a little and now it?s exactly what I wanted!

 

thanx a lot

 

ps:

I try to make a new category box (design and functions) and release my first contribution :shock:

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...