VirtueMart Forum

VirtueMart 2 + 3 + 4 => Product creation => Topic started by: irsinternet on July 24, 2018, 02:34:17 AM

Title: Reuse Child Products
Post by: irsinternet on July 24, 2018, 02:34:17 AM
Is there a way to reuse child products (multi variants) across multiple parent products?
For instance, shirts and shorts come in blue, red, and green denim. Can I create 1 "green" child product across all my products?
Title: Re: Reuse Child Products
Post by: Jörgen on July 24, 2018, 07:48:43 AM
This depends on what You are doing. The child Green can only have one SKU and one parent. If You need stock handling I do not see how this would work. Using customfields is very lightly a possible solution, You can have a hidden parent with green customfield that is inherited to all Your products that You assign as children for this master product.

There is also Custom fields for all plugin that maybe could cover your needs.

regards

Jörgen @ Kreativ Fotografi
Title: Re: Reuse Child Products
Post by: Studio 42 on July 24, 2018, 13:10:13 PM
This is not really possible, because the child inherits everything from the parent, so you should find a way to dynamically change the parent and the parent should know that he is a child.
Can be with an additional plugin to change the parent on loading, but it should be tested and certainly not work for complex case.
Another solution is perhaps something as my extra product plugin, but in this case multivariant need to be complety reimplemented and is more limited.