VirtueMart Forum

VirtueMart 2 + 3 + 4 => General Questions => Topic started by: kratzi on January 20, 2019, 12:01:49 PM

Title: Clone products
Post by: kratzi on January 20, 2019, 12:01:49 PM
Hi,

I need to clone some products but even more important is for me to have some unique data per product. Therefore I set the GTIN and SKU column to unique in my database.

Now of course I can not clone a product any more because the GTIN or SKU fields are duplicates. Could anyone please give an advise what code I need to adjust so that the both fields are not copied when cloning a product but set to NULL.

Thank you

J. 3.9.2 VM 3.4.2
Title: Re: Clone products
Post by: GJC Web Design on January 20, 2019, 12:51:52 PM
search the save product functions in the model to see how the product alias is unique