Skip Navigation

Resolved

Reported for: WooCommerce Multilingual & Multicurrency 5.3.3.1

Resolved in: WCML 5.3.4

Topic Tags: WCML

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' ] );
    

6 Responses to “WooCommerce Multilingual - Displays All BACS Accounts on Order Confirmation Page”

  1. 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

  2. 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