VirtueMart Forum

VirtueMart 2 + 3 + 4 => Product creation => Topic started by: websmith on January 03, 2017, 16:16:50 PM

Title: Change multi variant to generic child variant?
Post by: websmith on January 03, 2017, 16:16:50 PM
Joomla 3.6.4 VM 3.0.18.5

I was wondering if there is a way to change products with multi variants to generic child variants on the fly? Or would I have to do this one by one for each product?
Title: Re: Change multi variant to generic child variant?
Post by: Studio 42 on January 04, 2017, 12:06:01 PM
Hi,
Im not sure at 100%, but it should be possible using Vm be Pro http://shop.st42.fr/en/products/vm-be-pro-batch-product-edit.htm.
You have a feature to remove selected customfield from all selected product and you can add the generic child variant.
The only problem you can have, is that you cannot set the parameters per product when adding the generic child variant.
Title: Re: Change multi variant to generic child variant?
Post by: K&K media production on January 05, 2017, 01:21:02 AM
it should be possible with phpmyadmin and a sql update query

something like

UPDATE `YOURPREFIX_virtuemart_product_customfields` SET `virtuemart_custom_id`="GENERIC CHILD VARIANT CUSTOM ID",`customfield_value`="NEW VALUE",`customfield_params`="NEW PARAMS" WHERE `virtuemart_custom_id` = "MULTI VARIANT CUSTOM ID";
Title: Re: Change multi variant to generic child variant?
Post by: Studio 42 on January 05, 2017, 01:42:06 AM
Of course you can do it with mysql queries, as many changes in the DB.