Jump to content
  • Checkout
  • Login
  • Get in touch


The e-commerce.

Listing subcategory products in main listing


Recommended Posts

I'm sure I've seen posts about this before, but I can't find them by searching - i think the keywords are too common. :angry:


I want to be able to list all the products in a category when that category is selected, including the products which are under a subcategory. If I'm not explaining this clearly, I mean the way that, e.g. ebay lists items. I know that its possible by entering a link for each product to each category & subcategory, but is it possible for it to happen automatically?

Link to comment
Share on other sites

  • 2 years later...

use the tep_get_subcategories function osc has to retrieve all sub-categories beneath the current category. Then do an sql query filtering the products of the categories inside the array returned from tep_get_subcategories

Link to comment
Share on other sites


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

  • Create New...