VirtueMart Forum

VirtueMart 2 + 3 + 4 => Product creation => Topic started by: TheCaptain on February 23, 2012, 22:57:05 PM

Title: Product Creation Suggestion
Post by: TheCaptain on February 23, 2012, 22:57:05 PM
Hello, I'm brand new to virtuemart -

I need to create a shoping cart with a small number of seperate products.  Each product as a few different models.   They're actually car parts.   Then I have a list of about 1000 cars and each model for each part only applies to certain cars.    Is there way to create a car database and have virtuemart check compatability against the models??

Any help would be hugely appreciated!
Title: Re: Product Creation Suggestion
Post by: balai on February 24, 2012, 09:47:59 AM
I suppose that you can use custom fields for that.

1. Create a custom field (string) named Car Models
2. Assign to your car parts products that custom field and give it as values the models that match to that part.

In the front-end you can use a filtering extension like custom filters to search for the appropriate parts based on the Car Model criteria
Title: Re: Product Creation Suggestion
Post by: SamF on February 24, 2012, 10:08:40 AM
One easy way to do it is to create category <-> product relation. Car models = categories, parts = products, and product belong in certain one or many categories. Even more, you can build category "Models", and category "Part Groups" (that is, engine, transmission etc.). So you can filter parts by both car model and part group.
Title: Re: Product Creation Suggestion
Post by: balai on February 24, 2012, 13:04:17 PM
Yes this is another solution but you will have to create 1000 categories and least and passing your products to them will be a bit pain in the as*
Title: Re: Product Creation Suggestion
Post by: SamF on February 24, 2012, 13:57:41 PM
Quote from: balai on February 24, 2012, 09:47:59 AM
1. Create a custom field (string) named Car Models

Quote from: SamF on February 24, 2012, 10:08:40 AM
create category <-> product relation.

Quote from: balai on February 24, 2012, 13:04:17 PM
will be a bit pain

Sure it will, in such a mass input any way;) I would not use VirtueMart interface for it, rather SQL. Or invent component like this (http://extensions.virtuemart.net/index.php?option=com_sobi2&sobi2Task=sobi2Details&catid=12&sobi2Id=33&Itemid=2) to import external tables.