Resolved
Reported for: WooCommerce Multilingual & Multicurrency 5.3.2
Resolved in: WCML 5.3.3
Overview of the issue
After a client places an order, they may see duplicated payment information on the confirmation order page and in emails, instead of only one instance that is valid for that language.
Workaround
Please make a full backup of your site before proceeding.
- Open …/woocommerce-multilingual/classes/multi-currency/payment-gateways/class-wcml-currencies-payment-gateways.php file.
- Find line number 38
- Replace:
add_filter( 'woocommerce_payment_gateways', Fns::tap( Fns::withoutRecursion( Fns::identity(), [ $this, 'init_gateways' ] ) ), PHP_INT_MAX );
- With:
add_action( 'wp_loaded', [ $this, 'init_gateways' ] );
Hi Team,
Unfortunately I’m not a programmer and it would be difficult for me to make code changes in the …/woocommerce-multilingual/classes/multi-currency/payment-gateways/class-wcml-currencies-payment-gateways.php file.
Can we ask the owner of the WooCommerce Multilingual & Multicurrency plugin to create a patch. I’m pretty sure that other customers will be affected as well.
Thank you,
Manfred
Hello Manfred,
We totally understand your position, however I don’t think we will have a patch release soon.
Thus, to avoid blocking you to translate your site, please open a chat in our assistance channel. In that way, one of our supporters will help you to add the require change.
Thank you for your understanding.
Dear Andrés,
thank you for jumping here in. Kor sent me a patch and it fixed the issue. Also I was told that the patch will be included in the next “WooCommerce Multilingual & Multicurrency” plugin update.
Kind Regards,
Manfred
I’m glad to know that Kor took care of your case, he is a great supporter. 🙂
Thank you for keep us updated, Manfred!
Regards
We have the same problem – bug.
Warning: Undefined property: WooCommerce::$payment_gateways in /home/clients/xxx/sites/aveni.shop/wp-content/plugins/woocommerce-paypal-payments/modules/ppcp-wc-gateway/src/Checkout/DisableGateways.php on line 118
WordPress 6.4.1
WooCommerce 8.3.1
WooCommerce PayPal Payments 2.4.3
WooCommerce Multilingual & Multicurrency 5.3.2
WPML Multilingual CMS 4.6.8
We only can use your Plugin WooCommerce Multilingual & Multicurrency 5.2.1 that is running without problem
Hello Philipe,
If you are having the same issue, the workaround should let you continue translating your website. If that’s not the case, probably it is a different issue which needs to be investigated. In that case, please open a chat in our assistance channel, we have the tools there to help you better.