Skip to content Skip to sidebar

Open

Reported for: WPML Multilingual & Multicurrency for WooCommerce 5.3.8

Topic Tags: Bug, Compatibility, WCML

Overview of the issue

When translating a WooCommerce payment gateway settings (such as titles and descriptions) through WPML String Translation add-on, the strings revert to a “needs update” status after visiting the front-end, particularly during the checkout process.

Workaround

Please, make sure of having a full site backup of your site before proceeding.

  • Open …/wp-content/plugins/woocommerce-multilingual/inc/class-wcml-wc-gateways.php file.
  • Look for line 78.
  • Replace:
    			$this->register_gateway_settings_strings( $load_gateway->id, $load_gateway->settings );
    
  • With:
    			if (is_admin()) {
    				$this->register_gateway_settings_strings( $load_gateway->id, $load_gateway->settings );
    			}
    

Leave a Reply

Please stay on topic and be respectful to others. If you need help with issues not related to this post, use our Support Forum to start a chat or submit a ticket.

You can use these tags:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>