WooCommerce reorder bank details

We are using WooCommerce for http://www.meno-me.co.nz and when people pay by bank transfer our bank account details appear on the confirmation page and email in the reverse order we want (Account number displaying first and Bank Code second). In NZ it's displayed around the other way. I need Bank code: displayed first and Account number: displayed second in the 'Thank you for your order' email and the 'Order received' confirmation web page.

  • Nahid

    Hey Deanne McCrea !
    Hope you are having a great day!

    I've added a mu-plugin in /wp-content/mu-plugins folder of your site containing the following code:

    function custom_bacs_fields() {
    	global $wpdb;
    	$account_details = get_option( 'woocommerce_bacs_accounts',
    						'account_name'   => get_option( 'account_name' ),
    						'account_number' => get_option( 'account_number' ),
    						'sort_code'      => get_option( 'sort_code' ),
    						'bank_name'      => get_option( 'bank_name' ),
    						'iban'           => get_option( 'iban' ),
    						'bic'            => get_option( 'bic' )
    	$account_fields = array(
    		'bank_name'      => array(
    			'label' => 'Bank',
    			'value' => $account_details[0]['bank_name']
    		'sort_code' => array(
    			'label' => __( 'BSB', 'woocommerce' ),
    			'value' => $account_details[0]['sort_code']
    		'account_number' => array(
    			'label' => __( 'Account Number', 'woocommerce' ),
    			'value' => $account_details[0]['account_number']
    	return $account_fields;

    The 'Thank You' page and the emails are now displaying the Bank Code followed by the Account Number. Here's a screenshot from the 'Thank You' page as a reference:

    And here's a screenshot from an email as another reference:

    Hope this helps. Please let me know if this works for you. Thanks!


Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.