VirtueMart Forum

VirtueMart 2 + 3 + 4 => Product creation => Topic started by: morphic on October 19, 2018, 11:12:33 AM

Title: Child products made with MultiVariants Custom Field
Post by: morphic on October 19, 2018, 11:12:33 AM
Hi there,

I have specific products where one product have about 180 versions. The products have two features, the combination of which affects their price that I must use Multivariants. When I've added all combinations I see all in lists on front. But after click any of them this combination don't load - I have different title, price, SKU and many others for that. But after click any value on select list it's blank list position. After refresh page good product version is loading.

There is the link to product http://materace.morphic.pl/materac-160x200/materac-bahrain-talalay-blue-h2-h3-170-opis.html (http://materace.morphic.pl/materac-160x200/materac-bahrain-talalay-blue-h2-h3-170-opis.html)

Is there any limit of child products in one product on VM3?

Edited: I see in console

dynupdate.js?vmver=21985395:32 Uncaught TypeError: $(...).vm2front is not a function
    at Object.Virtuemart.updateContent (dynupdate.js?vmver=21985395:32)
    at HTMLSelectElement.Virtuemart.upd (dynupdate.js?vmver=21985395:108)
    at HTMLSelectElement.dispatch (jquery.min.js?033f71065d37bc544343a0774c142515:3)
    at HTMLSelectElement.r.handle (jquery.min.js?033f71065d37bc544343a0774c142515:3)
Title: Re: Child products made with MultiVariants Custom Field
Post by: Studio 42 on October 19, 2018, 11:34:52 AM
You can use generic child variant and 2 or 3 levels of child.
In this case not all child are loaded in same time and is quicker to load as multivariant
You have to declare in main product the first generic variant option and in next level the over generic variant option ...
Title: Re: Child products made with MultiVariants Custom Field
Post by: morphic on October 19, 2018, 12:14:57 PM
Is there any solution or tutorial how to do that?
Title: Re: Child products made with MultiVariants Custom Field
Post by: Studio 42 on October 19, 2018, 13:01:18 PM
Do a test product and try is the best way to understand what i mean.
Eg for product tshirt having color "black" and "white" with size "S", "M", "L"
main product : tshirt
add generic child variant to display children
level 1 children
tshirt black
add generic child variant to display children
level2 children
  tshirt black S
  tshirt black M
  tshirt black L

tshirt white
add generic child variant to display children
level2 children
  tshirt white S
  tshirt white M
  tshirt white L

If you already have set all products, you can use VM Be pro to change directly the parent product ID to redo the tree.
Title: Re: Child products made with MultiVariants Custom Field
Post by: balai on October 19, 2018, 13:09:55 PM
Have a look at the Stockable Custom Fields as well.
https://breakdesigns.net/extensions/joomla/stockable-custom-fields

It's a free plugin and easier to use than the multi-variants
Title: Re: Child products made with MultiVariants Custom Field
Post by: morphic on October 19, 2018, 13:38:21 PM
Ok, but the problem is with price.

This is not that
white +$5
black +$7
size M +$3
size L +$5

I have that
white M $10
white L $15
black M $12
black L $20

this is example prizes. I don't have base price, all combinations have their own prize.
Title: Re: Child products made with MultiVariants Custom Field
Post by: Studio 42 on October 19, 2018, 13:42:48 PM
The problem is exactly same as in multichild
You have set the price in each product ?
Title: Re: Child products made with MultiVariants Custom Field
Post by: balai on October 19, 2018, 15:08:03 PM
If that's  the case why not using simple custom fields using their price field?
Title: Re: Child products made with MultiVariants Custom Field
Post by: morphic on October 19, 2018, 17:02:17 PM
Quote from: balai on October 19, 2018, 13:09:55 PM
Have a look at the Stockable Custom Fields as well.
https://breakdesigns.net/extensions/joomla/stockable-custom-fields

It's a free plugin and easier to use than the multi-variants

What free, I must buy subsription? :D
Title: Re: Child products made with MultiVariants Custom Field
Post by: GJC Web Design on October 19, 2018, 17:14:54 PM
????

https://breakdesigns.net/downloads/stockable-custom-fields/stockable-custom-fields-1-5-0

100% free here
Title: Re: Child products made with MultiVariants Custom Field
Post by: Studio 42 on October 19, 2018, 18:24:34 PM
Or here https://github.com/breakdesigns/stockablecustomfields
You should search a little ;)
Title: Re: Child products made with MultiVariants Custom Field
Post by: morphic on October 19, 2018, 23:05:28 PM
Thanks guys,

I'll try it and I'll back with solution or with next questions :D
Title: Re: Child products made with MultiVariants Custom Field
Post by: geof on October 16, 2021, 19:49:03 PM
here is a solution
https://www.weborange.eu/extensions/index.php/extensions-vm3/child-products-image-detail
Title: Re: Child products made with MultiVariants Custom Field
Post by: Studio 42 on October 18, 2021, 15:35:23 PM
geof : I wrote this plugin https://shop.st42.fr/en/products/product-child-variants.htm
But the post is about multi variants