1. Home
  2. Knowledge Base
  3. WooCommerce Product Add-Ons Ultimate
  4. Groups
  5. Duplicate groups and fields when duplicating products
  1. Home
  2. Knowledge Base
  3. WooCommerce Product Add-Ons Ultimate
  4. Duplicate groups and fields when duplicating products
  1. Home
  2. Knowledge Base
  3. Advanced Topics for Add-Ons Ultimate
  4. Duplicate groups and fields when duplicating products

Duplicate groups and fields when duplicating products

By default, when you duplicate a product, the new product will use the same group and fields as the original product. This can cause difficulties if you want to be able to edit the new product’s groups and fields without affecting the original product’s groups and fields.

If you’d like to create duplicate groups and fields when you duplicate a product, which can be edited without affecting the original group and field, then just add the following snippet:

<?php
/**
* Duplicate groups and fields when duplicating products
*/
add_filter( 'pewc_duplicate_fields', '__return_true' );

Was this article helpful?

Related Articles