VirtueMart Forum

VirtueMart 2 + 3 + 4 => Product creation => Topic started by: Sascha_RT on July 15, 2014, 20:12:04 PM

Title: Show Products of 2 Categories
Post by: Sascha_RT on July 15, 2014, 20:12:04 PM
Hey everybody,
I tried to solve that problem by myself, and searched the internet, but i couldn't find a solution. Maybe someone here can help me.

I'm trying to build a shop for car parts.
My products are build for a specific car and beside that belong to a main category, e.g. engine, exhaust, interior, wheels, ....
What i like to do now, get all products that belong to one category: car#1 and another category: exhaust.
So if the customer looks at the list of all products for a specific car, he can select one of the main categories to shorten the list.

I hope that explains my problem and someone can help me!
Title: Re: Show Products of 2 Categories
Post by: GJC Web Design on July 15, 2014, 23:46:25 PM
How we did it on http://www.suzistore.com.au/ was

car-type 
         - car model
                - exhaust
                - brakes
                   etc

and just add any part to all the categories it fits in  (e.g. some brake parts fit multiple models)

so I guess extend this idea to a 2nd root Parts

parts
      -  exhaust
      - brakes
      - etc
Title: Re: Show Products of 2 Categories
Post by: Sascha_RT on July 16, 2014, 04:34:49 AM
Thank you for your answer!

In your example I have to create exhaust, engine, etc for every car model. I was hoping to create it only once and put the parts in this category
Title: Re: Show Products of 2 Categories
Post by: jenkinhill on July 16, 2014, 10:41:45 AM
Maybe custom filters could help?  http://forum.virtuemart.net/index.php?topic=100913.0
Title: Re: Show Products of 2 Categories
Post by: balai on July 16, 2014, 10:50:50 AM
I would use categories for a main taxonomy e.g. car type, car model
and custom fields for the others
The role of the custom fields is to give additional properies to the products.

Then with an extension like custom filters you can filter your products
Title: Re: Show Products of 2 Categories
Post by: GJC Web Design on July 17, 2014, 11:07:26 AM
the reason we used a full category schema is we update stock and create if nesscesary new categories and products hourly from a central database -

it may seem like a lot of work but it is just a once off..
Title: Re: Show Products of 2 Categories
Post by: Sascha_RT on July 22, 2014, 16:30:44 PM
Thank you for your replies!

I think the only Way to go is
- car1
    - model 1
       - exhaust
       - interior
    - model 2
       - exhaust
       - interior
- car2
    - model 1
       - exhaust
       - interior
    - model 2
       - exhaust
       - interior


It's more work. But it works.
Thanks again!
Title: Re: Show Products of 2 Categories
Post by: GJC Web Design on July 22, 2014, 17:53:54 PM
Yes - that's what we did on Suzi