Author Topic: Clone products  (Read 354 times)


  • Jr. Member
  • **
  • Posts: 161
Clone products
« on: January 20, 2019, 12:01:49 pm »

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

GJC Web Design

  • 3rd party VirtueMart Developer
  • Super Hero
  • *
  • Posts: 9489
  • Virtuemart, Joomla & php developer
    • GJC Web Design
  • VirtueMart Version: 3.6.8
Re: Clone products
« Reply #1 on: January 20, 2019, 12:51:52 pm »
search the save product functions in the model to see how the product alias is unique
GJC Web Design
VirtueMart and Joomla Developers - php developers
VM3 AusPost Shipping Plugin - e-go Shipping Plugin - VM3 Postcode Shipping Plugin - Radius Shipping Plugin - VM3 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
Contact for any VirtueMart or Joomla development & customisation