VirtueMart Forum

VirtueMart 2 + 3 + 4 => Administration & Configuration => Topic started by: kaybee57 on June 23, 2012, 02:28:27 AM

Title: Child Products and Custom Fields
Post by: kaybee57 on June 23, 2012, 02:28:27 AM
Woo hoo!! Lots of experimentation and I have finally managed to break through my hurdle of implementing issues relating to Child Products and Custom Fields in Vm 2.0.6 and Joomla 2.5.6.
I am a relative newbie to Joomla but have done lots of work in Drupal so have learnt that trial and error is the only way to learn and get things working, hence this post.
The following items were written down by me as I worked on my own products - the basis of setting things up here works well so I hope this helps others along the way. If you find some glitches along the way or improvements to this, pelase let me know and I will edit this post.
I apologise if there are mistakes (that may have worked for me but not you...). I have created a Numbered list so you will know what 'number' you are up to, not which dot point!
FIRST - CREATE CUSTOM FIELDS for SIZE, COLOUR VARIATION ETC. Think of all those fields your product/s may or may not have - your size field as per this example can have a full list of all sort eg xs, s, 6, 8, 10, 12-14, one size, 22 etc.... - Each of your Child products you will be able to select which sizes are for that product only)
Now say to yourself "How come this is all so complicated?" - Who knows! But I hope this breakdown helps others in need...

Other points to note

Title: Re: Child Products and Custom Fields
Post by: HospitalityGear.com on June 23, 2012, 05:53:55 AM
Thanks for this post, it was really helpful.  However, I might want to add that in order for the change in price to display, I had to add the text to the title of each child product.  ie. instead of a child product being named "Red" I had to name it "Red +$5.00".  The sales price displayed would change when I chose a selection with a price variance.  But without changing the title/name of each child product, the drop down list would not display the additional charge for the child. 
Title: Re: Child Products and Custom Fields
Post by: kaybee57 on June 23, 2012, 06:17:29 AM
Should be able to just go to Product/Select PARENT Product / Custom Fields (for that Parent product), and eg add 5 to the "Additional Charge" field - will show through then when a customer selects that particular variation.
(Well mine works that way  :D )
Title: Re: Child Products and Custom Fields
Post by: HospitalityGear.com on June 24, 2012, 07:43:46 AM
I was referring to the price displaying inside the drop down list.  The sales price would update just fine.  But the customer had no way to know the amount of additional charge before making a selection.
Title: Re: Child Products and Custom Fields
Post by: kaybee57 on June 24, 2012, 10:42:34 AM
Figured that after I re-read your post and yes, you are correct - if a customer needs to see the variation, what you have said does need to be entered.
Title: Re: Child Products and Custom Fields
Post by: lindapowers on March 11, 2015, 09:53:32 AM
So there is no way to show the price in the dropdown list even im vm3?

I see a setting which says show price in the generic child variants but cant be saved.
Title: Re: Child Products and Custom Fields
Post by: Only82 on April 24, 2016, 22:20:33 PM
Quote from: lindapowers on March 11, 2015, 09:53:32 AM
So there is no way to show the price in the dropdown list even im vm3?

I see a setting which says show price in the generic child variants but cant be saved.

I have the same problem - can't save "show price" in the generic child variants.
Does anyone have any solution?
Title: Re: Child Products and Custom Fields
Post by: lindapowers on April 24, 2016, 22:51:54 PM
In case that fails you can do it the nasty way directly in the database

http://forum.virtuemart.net/index.php?topic=128758.0 check last image