Resolved
Reported for: WooCommerce Multilingual & Multicurrency 5.3.3.1
Resolved in: WCML 5.3.4
Overview of the issue
An issue has been identified in WooCommerce Multilingual where all Bank Account (BACS) details are displayed on the order confirmation page, regardless of the specific account settings configured for different currencies
Workaround
Please, make sure of having a full backup of your site before proceeding.
- Open …/wp-content/plugins/woocommerce-multilingual/classes/multi-currency/payment-gateways/class-wcml-currencies-payment-gateways.php file.
- Look for line 38.
- Replace:
add_filter( 'woocommerce_payment_gateways', Fns::tap( function() { add_action( 'wp_loaded', [ $this, 'init_gateways' ] ); } ) );
- With:
add_action( 'wp_loaded', [ $this, 'init_gateways' ] );
If you do that. None of the bank accounts are shown. And this despite the fact that 2 are defined – each for a different currency
If the workaround doesn’t help, please open a chat in our assistance channel.
After updating the plug-in, the bank accounts appear appropriately on the order summary page, but the bank account information appears twice in the emails sent to the customer.
Like this:
Please pay directly into our bank account.
Please use your order number as the title of your payment. Your order will be processed once the payment has been credited to our account.
Our bank details
Beskid Chocolate – payment in PLN:
Bank: mBank
Account number: 82 1140 2004 0000 3302 7829 8918
Please pay directly into our bank account.
Please use your order number as the title of your payment. Your order will be processed once the payment has been credited to our account.
Our bank details
Beskid Chocolate – payment in PLN:
Bank: mBank
Account number: 82 1140 2004 0000 3302 7829 8918
Are you referring to WCML 5.3.4 or 5.3.5? If the issue remains with this latter, please open a chat in our assistance channel, in that way we can investigate it.
After updating from 5.3.4 to 5.3.5 the problem disappeared. Thank you
Thanks for your confirmation.