Skip to content

Instantly share code, notes, and snippets.

@webtoffee-git
Created January 25, 2022 03:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save webtoffee-git/18ae356807bd901d97f0a1522f329269 to your computer and use it in GitHub Desktop.
Save webtoffee-git/18ae356807bd901d97f0a1522f329269 to your computer and use it in GitHub Desktop.
Import WPML products with same SKU - - Product import export plugin for WooCommerce by WebToffee (https://www.webtoffee.com/product/product-import-export-woocommerce/)
<?php // Please do not copy this line
add_filter('wt_product_import_allow_same_sku', '__return_true');
add_filter('wc_product_has_unique_sku', 'wt_fix_wcml_sku_issue', 10, 3);
function wt_fix_wcml_sku_issue($sku_found, $product_id, $sku) {
return false;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment