VirtueMart Forum

VirtueMart 2 + 3 + 4 => Templating & Layouts => Topic started by: demonswilldrown on January 29, 2013, 23:45:42 PM

Title: Display all products organized by category
Post by: demonswilldrown on January 29, 2013, 23:45:42 PM
Hi,

I'm working with VM 2.0.8 and Joomla 2.5.8. Basically what I need to achieve is to display all 15 products the site will have active but separated by the children category they belong to, like this:

Products (this is my root category)

Category 1
       Product 1             Product 2            Product 3

Category 2
       Product 1             Product 2            Product 3        Product 4             Product 5          Product 6

And so on. Can this be done? Have you got any pointers on where can I start to code this? I was working on a custom category view layout.

Thank you in advance
Title: Re: Display all products organized by category
Post by: Joseph Kwan on February 01, 2013, 06:35:17 AM
You may need a custom database query to get the data you need.
Or you may put all the products into the a category and set up a custom field to store the category. In the template, loop through the products and display the categories accordingly.
Title: Re: Display all products organized by category
Post by: MasterDKLB on March 20, 2013, 13:16:20 PM
Could you Please explain little more how can this be done? I am trying to do that, and searching everwywhere without luck.