- Status
- Resolved
- Reported for
- WPML Multilingual & Multicurrency for WooCommerce 5.3.2
- Resolved in
- WCML 5.3.3
- Related plugin/theme
- WooCommerce PayPal Payments
- Topic tags
- Bug
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' ] );