Overview of the Issue
When using Trusted Shops Easy Integration for WooCommerce with WPML, the order export of a sales channel includes the orders of every language when WooCommerce uses its default order storage (HPOS). Each channel should export only the orders of its language.
Workaround
Add the following code to the functions.php file of your child theme:
PHP
add_filter( 'ts_easy_integration_order_export_args', function ( $args ) { if ( empty( $args['wpml_language'] ) ) { return $args; } $lang = $args['wpml_language']; $is_default = $lang === apply_filters( 'wpml_default_language', null ); $args['meta_query'] = $is_default ? array( 'relation' => 'OR', array( 'key' => 'wpml_language', 'compare' => 'NOT EXISTS' ), array( 'key' => 'wpml_language', 'value' => $lang ) ) : array( array( 'key' => 'wpml_language', 'value' => $lang ) ); return $args; }, 20 );