VirtueMart Forum

VirtueMart 2 + 3 + 4 => Product creation => Topic started by: beachy on July 01, 2012, 13:42:50 PM

Title: "Generic Child Variant" - Automatically add first child product to cart
Post by: beachy on July 01, 2012, 13:42:50 PM
Hi,

I have spent all weekend trying to get my head around the various child product options and I am almost done!

The only problem I am facing is that I need to stop the parent product from being able to be added to the cart.

I know that it is possible to hack the core code to say - please select etc... but I want the first child product to be added to the cart automatically instead.

I have searched the forum and read loads of threads but no-one seems to have come up with a solution yet!
Title: Re: "Generic Child Variant" - Automatically add first child product to cart
Post by: neo314 on November 18, 2012, 04:44:46 AM
Did you find a solution. I just asked a very similar question.
Title: Re: "Generic Child Variant" - Automatically add first child product to cart
Post by: spyderwebdesign on November 19, 2012, 01:07:16 AM
Parent can no longer be added in 2.0.14
Title: Re: "Generic Child Variant" - Automatically add first child product to cart
Post by: neo314 on November 19, 2012, 01:10:56 AM
Quote from: beachy on July 01, 2012, 13:42:50 PM
Hi,

I have spent all weekend trying to get my head around the various child product options and I am almost done!

The only problem I am facing is that I need to stop the parent product from being able to be added to the cart.

I know that it is possible to hack the core code to say - please select etc... but I want the first child product to be added to the cart automatically instead.

I have searched the forum and read loads of threads but no-one seems to have come up with a solution yet!

See if what I found helps...
http://forum.virtuemart.net/index.php?topic=110134.0 (http://forum.virtuemart.net/index.php?topic=110134.0)