Improve BACS details displayed
-
We would like to improve the sequence of BACS details displayed on the ‘Thank you’ page, and on the email to the customer.
Woo displays ‘Account Number‘ before ‘Sort Code‘, but in the English speaking word the usual sequence is ‘Sort Code‘ then ‘Account Number‘.
And we would like to ADD ‘Reference’ and the Order Number’
(in addition to the textual instruction “Please use your Order ID as the payment reference“We found code to requence the details here: https://wpmudev.com/forums/topic/woocommerce-reorder-bank-details/#
but (when we try it) it displays TWICE! What’s wrong? This is our copy:add_filter('woocommerce_bacs_account_fields','custom_bacs_fields'); function custom_bacs_fields() { global $wpdb; $account_details = get_option( 'woocommerce_bacs_accounts', array( array( 'account_name' => get_option( 'account_name' ), 'account_number' => get_option( 'account_number' ), 'sort_code' => get_option( 'sort_code' ), 'bank_name' => get_option( 'bank_name' ), /* Order Number ???? */ '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' => __( 'Sort Code', 'woocommerce' ), 'value' => $account_details[0]['sort_code'] ), 'account_number' => array( 'label' => __( 'Account Number', 'woocommerce' ), 'value' => $account_details[0]['account_number'] ), /* Order Number ?????????? 'ref' => array( 'label' => __( 'Ref', 'woocommerce' ), 'value' => $order_details[0]['order_number'] ), */ 'iban' => array( 'label' => __( 'iban', 'woocommerce' ), 'value' => $account_details[0]['iban'] ), 'bic' => array( 'label' => __( 'bic', 'woocommerce' ), 'value' => $account_details[0]['bic'] ) ); return $account_fields; }
What should be inserted in the sections above currently: “/* Order Number ?????? */”
And how do we insert our change into the email?
- The topic ‘Improve BACS details displayed’ is closed to new replies.