cancel
Showing results for 
Search instead for 
Did you mean: 

M2.4.5: Product duplicate causes an SKU XXX-1

M2.4.5: Product duplicate causes an SKU XXX-1

Hi all, we noticed after upgrading to Magento that now when a product is duplicated and if the SKU of the source product is ABC then the SKU of the new product ABC-1 and the field is read-only. How can we change this auto-populated SKU? I can't find anything in the magent commerce manuals about this.

2 REPLIES 2

Re: M2.4.5: Product duplicate causes an SKU XXX-1

The auto-populated SKU for a duplicated product in Magento 2.4.5 is a new feature called "Duplicate SKU Increment". This feature is designed to prevent unintentional overwriting of existing products with the same SKU.

By default, when a product is duplicated, Magento will append "-1" to the SKU of the duplicated product. If you duplicate the same product again, the SKU will be incremented to "-2", and so on.

If you want to change the auto-populated SKU, you can do so by modifying the configuration settings. Here are the steps to follow:

  1. Log in to your Magento admin panel.

  2. Go to Stores > Configuration > Catalog > Catalog.

  3. Expand the Product Fields Auto-Generation section.

  4. Find the Duplicate SKU Increment field and change the value to the desired increment, or set it to 0 to disable auto-increment altogether.

  5. Save the configuration.

Once you have made this change, the auto-populated SKU for duplicated products will reflect the new increment value you have set.

Note that changing this configuration setting will affect all duplicated products going forward, so make sure you choose an increment value that works for your specific use case.

Re: M2.4.5: Product duplicate causes an SKU XXX-1

Hello,

 

Is this reply still valid? I don't see -

  1. Find the Duplicate SKU Increment field and change the value to the desired increment, or set it to 0 to disable auto-increment altogether.

Thank you