How to merge 2 products by code?

by SeCrEt BoY   Last Updated October 09, 2019 22:08 PM

I have:

Product 1:

  • Variation A
  • Variation B
  • Variation C

Product 2:

  • Variation D
  • Variation E
  • Variation F

How can I move all variations of Product 2 to Product 1 by php code?

Result: best is move all datas from Product 2 to Product 1

Product 1: 6 variations

  • Variation A
  • Variation B
  • Variation C
  • Variation D
  • Variation E
  • Variation F

Product 2: empty

Tags : woocommerce


Related Questions


Updated March 26, 2015 12:02 PM

Updated March 27, 2015 05:02 AM

Updated April 04, 2015 15:03 PM

Updated April 04, 2015 16:03 PM

Updated April 06, 2015 19:03 PM