VirtueMart Forum

VirtueMart 2 + 3 + 4 => Templating & Layouts => Topic started by: yahoho on October 09, 2013, 12:36:47 PM

Title: Display sub category products on parent page...
Post by: yahoho on October 09, 2013, 12:36:47 PM
Ok so I have spent quite a while on google and forums trying to find out if this is a built in option, or if there is an extension / plugin that adds this, or if its something that needs to be coded in manually etc, but all the threads appear to be quite old now, or very confusing. So, here is the predicament:

Currently I have;

Category A (10 Products)
Category B (0 Products)
    Sub Category 1 ( 5 Products )
    Sub Category 2 ( 7 Products )
Category C (10 Products )

Now when you click Category A - you get a list of all the products one by one, underneath each other - Perfect. The same with Category C.

However when you click Category B - you get a list of "Sub Category 1, Sub Category 2" and no products.  Like This;

Menu -> Category B ->
   Sub Category 1     |     Sub Category 2

What I am looking to do, is to list the products in Sub Category 1, and Sub Category 2 underneath their titles. So the page would look like:

Menu -> Category B ->
   Sub Category 1     |     Sub Category 2
    Product 1                      Product 1
    Product 2                      Product 2
    etc                                etc

I apologize in advance as I am sure this has been asked more times than is acceptable, however I am struggling to find an answer that clears this up.

I hope my query is clear enough for others to understand. Any suggestions are welcome :) Thankyou in advance!


Title: Re: Display sub category products on parent page...
Post by: Maxim Pishnyak on October 11, 2013, 22:39:31 PM
Use forum search button for finding already posted solution for this.