WPML
Status
Resolved
Reported for
WPML Multilingual & Multicurrency for WooCommerce 5.0.2

Overview of the issue

If you use WooCommerce’s built-in import feature, whenever you import a CSV file and run the import process for the default language, it does not update the prices for product translations.

Workaround

As importing products does not execute the save_post action, we need to run it manually:


  1. Go to the Products page.

  2. Select your products.

  3. Open the Bulk Actions dropdown.

  4. Select the Edit option and click Apply. This launches the synchronization process.

Alternatively, you can add the following code into your functions.php file. Then, the next time you run the import, prices will be synchronized automatically
add_action( 'woocommerce_product_import_inserted_product_object', function( $product ) {
    do_action( 'save_post', $product->get_id(), get_post( $product->get_id() ) );
} );

All known issues →