VirtueMart Forum

VirtueMart 2 + 3 + 4 => Product creation => Topic started by: jimleeder123 on March 05, 2015, 13:45:00 PM

Title: VM3 Child Products
Post by: jimleeder123 on March 05, 2015, 13:45:00 PM
On VM1 you could make child products easily by creating a product, adding an attribute, and then you could add an "item" to the product. This appeared on the product page as a drop down box.

Example - product would be Margherita Pizza, items (selectable in drop down box) would be 10" Margherita, 12" Margherita etc.
Items would have their individual prices, like 10" would be £5 and 12" would be £6.50. Prices would be different for all pizzas and options as no sizes have the same price.

I want to be able to do this in VM3. Do I need a plugin or can it already be done? Currently on one website I have "Pizzas" as a category, "Margherita" as a category and then the sizes as products. It would be better to do it the same way as VM1 on future sites. Is this possible?

Thanks in advance.
Title: Re: VM3 Child Products
Post by: GJC Web Design on March 05, 2015, 13:50:03 PM
http://www.gjcwebdesign.com/joomla-virtuemart-tips/793-virtuemart-3-add-a-simple-cart-select-variant-by-custom-fields.html
Title: Re: VM3 Child Products
Post by: jimleeder123 on March 05, 2015, 15:17:03 PM
So this is built into VM3? I've got Hutson's "drop" plugin (was created to imitate VM1 attributes) , I suppose this can be used alongside this?
Title: Re: VM3 Child Products
Post by: GJC Web Design on March 05, 2015, 23:31:07 PM
QuoteSo this is built into VM3?

there since year dot

QuoteI've got Hutson's "drop" plugin (was created to imitate VM1 attributes) , I suppose this can be used alongside this?

suck and see....
Title: Re: VM3 Child Products
Post by: AH on March 06, 2015, 00:48:31 AM
Dropbox was designed to emulate the VM1 functionality (+ a bit more e.g. multiplier) -


You can add mutliple options using one customfield rather than adding lots of customfields

And multiple dropdowns can be applied to each product

E.g.

Product might be margheritta

Possibly with 2 dropdown customfields created

Customfield
Size
e.g. 6inch,8inch@+2,10inch@+4,12inch@+6

Customfield
Additional toppings
e.g. ham@+1,anchovies@+2,artichoke@+3

These are then added and tailored to each product as required

Of course you can create as many different variations as need
Title: Re: VM3 Child Products
Post by: jimleeder123 on March 06, 2015, 10:47:36 AM
Right so basically I'd want drop down boxes for different sizes, for which I'd use GJC's method. Then I'd need your plugin to set extra topping prices for each size. So Maybe extra veg (each topping listed individually) would cost £0.90 per topping, and extra meat toppings would cost £1.10 per topping.

I can do this differently for each size on the same product with only 1 drop down box for the plugin?
Title: Re: VM3 Child Products
Post by: AH on March 06, 2015, 13:53:29 PM
The dropdown would work for both methods

create one for the sizes and one for the extra toppings

Although it is possibly to do this using product patterns and no plugins I think
Title: Re: VM3 Child Products
Post by: jimleeder123 on March 06, 2015, 14:28:13 PM
I'll have a look when I am able to get started on this website and say if I have any problems then
Title: Re: VM3 Child Products
Post by: jimleeder123 on April 10, 2015, 17:22:02 PM
I've created the sizes ok via GJC's method. However each size has different prices for "extra toppings". How can I implement this?
Title: Re: VM3 Child Products
Post by: Studio 42 on April 10, 2015, 17:43:35 PM
Hi,
Why you don't make some test, to know how it work.
It's very simple, add a customfield as cart atribute if you need an option list with price(or not).
make same for each option.

In your case i had make a category pizza.
Each sort of pizza(marguarita for eg.) is a product
in the product(marguarita) add the different sizes(10" and 12") as option using customfields.
If you need more options then add a new customfield and do same as for sizes.
Title: Re: VM3 Child Products
Post by: jimleeder123 on April 10, 2015, 17:50:10 PM
I've worked it out - the generic child custom field does the trick.