This thread is resolved. Here is a description of the problem and solution.
Problem:
The client is experiencing a compatibility issue between the WooCommerce PayPal Payments plugin and WPML, specifically with translating the PayPal payment fields.
Solution:
We recommend trying the following workaround to translate the strings of the WooCommerce PayPal Payments plugin:
1. Edit the file
wp-content/plugins/woocommerce-paypal-payments/modules/ppcp-wc-gateway/src/Settings/Settings.php
2. Around line 157, replace the existing code with the following:
foreach ( $defaults as $key => $value ) { if ( isset( $this->settings[ $key ] ) ) { // WPML workaround for compsupp-7085 $this->settings[$key] = apply_filters('wpml_translate_single_string', $this->settings[$key] , 'admin_texts_woocommerce-ppcp-settings', '[woocommerce-ppcp-settings]'.$key); continue; } $this->settings[ $key ] = $value; }
Please ensure you back up your database and website before making any changes.
If this solution does not apply to your case, or if it's outdated, we highly recommend checking the related known issues, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. Should you need further assistance, please do not hesitate to open a new support ticket in the WPML support forum.
This is the technical support forum for WPML - the multilingual WordPress plugin.
Everyone can read, but only WPML clients can post here. WPML team is replying on the forum 6 days per week, 22 hours per day.
This topic is split from https://wpml.org/forums/topic/badges-not-showing-on-translated-products/