Skip to main content

Enabling duplicate SKUs support within WooCommerce

Written by James

WooCommerce enforces unique SKUs by default but you can disable this check by adding the following line to your functions.php file

add_filter( 'wc_product_has_unique_sku', '__return_false', PHP_INT_MAX );

Once this has been added, WooCommerce should now allow you to create multiple products with the same SKU.

Did this answer your question?