Hiya,
Hopefully a nice quick easy one this one.
I don’t work with categories a lot but when I do they’re usually very easy to work with, however on a site I need to do my brain has hit a bit of a wall so wondering if someone could push me in the right direction?
Say I have categories like this :
Plastic
——Plastic Subcat 1 (8)
——Plastic Subcat 2 (7)
————Plastic Subcat Subcat 1 (7)
——Plastic Subcat 3 (10)
——Plastic Subcat 4 (5)Brass
——Brass Subcat 1 (20)
——Brass Subcat 2 (25)
——Brass Subcat 3 (5)Miscellaneous
——Misce Subcat 1 (2)
——Misce Subcat 2 (1)
So say I now want to show just the main top level of categories on the home page of a site so we show :
Plastic (30)
Brass (50)
Miscellaneous (3)
A user now clicks on one of the main categories shown above and it takes them to a products/category page which then shows any sub-categories for that main category. So far I have all this working with the DynoCat plugin however on this site some of the sub-categories hold products whereas other sub-categories hold more sub-categories and then you get to the products.
How can I find this out dynamically that a sub-category has no other sub-categories in it and so what I’m looking at are products and then be able to take the user to a products/listing page instead?
Hopefully that made some sense. If not then I’ll try to better outline the categories involved which will hopefully help explain this a bit better.
Thanks for any help anyone can give on this.
Best wishes,
Mark
Moved to CodeShare Corner by Moderator