Hello,
WoodMart can retain the previous languageās theme-option text after WPML switches language within a request. This affects the free-shipping progress message.
**Steps to reproduce:**
1. Set Arabic as the default language and add English.
2. Translate the initial free-shipping message using WPML String Translation.
3. After WoodMart loads its options on an Arabic request, run:
`php
$key = ‘shipping_progress_bar_message_initial’;
do_action( ‘wpml_switch_language’, ‘en’ );
try {
$fresh = get_option( ‘xts-woodmart-options’ )[ $key ];
$cached = woodmart_get_opt( $key );
} finally {
do_action( ‘wpml_switch_language’, null );
}
`
**Actual in the controlled test:** $fresh is English, but $cached remains Arabic. The shipping fragment uses the cached value.
**Expected:** both values and the shipping message should use English.
Please check theme-option cache handling when WPML changes language. Reloading the options corrected the message locally.
Tested: WoodMart 8.6.5, WPML 5.2.0, WCML 5.7.0, WooCommerce 11.2.1.