I ended up manually removing SKU’s from database like you Borko. What might be related, I noticed that if I delete a product via admin panel only the original post/product is deleted and the translated duplicate is not causes this type of mess.
Same here. Are you guys using Woocommerce with Multilingual plugin? Anyone managed to find any solutions?
I just found a quick fix for those who don’t mind getting their hands dirty.
In class-wcml-rest-api-support.php line 22, change
add_action( 'woocommerce_rest_prepare_product', array( $this, 'append_product_language_and_translations' ) );
to
add_action( 'woocommerce_rest_prepare_product_object', array( $this, 'append_product_language_and_translations' ) );
API v2 added ‘_object’ to the filter name in class-wc-rest-products-controller.php, line 175
-
This reply was modified 9 years ago by spik3s. Reason: Found a possible solution