• Resolved damy399

    (@damy399)


    Hello, thank you for your amazing plugin.

    I am about to set up an affiliate program for a store but in the operating country, some fields for the direct bank transfer gateway are not the normal lingo.

    I’d like to rename the fields to something like
    1. Account number
    2. Account name
    3. Bank name

    Can you help with this please

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support Juan Coronel

    (@juaancmendez)

    Hello there,
    we hope you’re doing well!

    In order to achieve what you need, add the following code in the functions.php file of your active child theme:

    if ( ! function_exists( 'yith_wcaf_account_name_label_custom' ) ) {
    
    	function yith_wcaf_account_name_label_custom( $default_text ) {
    		$default_text = 'Account number';
    		return $default_text;
    	}
    
    	add_filter( 'yith_wcaf_gateway_bacs_bacs_name_label', 'yith_wcaf_account_name_label_custom', 10, 1 );
    
    }
    
    if ( ! function_exists( 'yith_wcaf_iban_label_custom' ) ) {
    
    	function yith_wcaf_iban_label_custom( $default_text ) {
    		$default_text = ' Account name';
    		return $default_text;
    	}
    
    	add_filter( 'yith_wcaf_gateway_bacs_bacs_iban_label', 'yith_wcaf_iban_label_custom', 10, 1 );
    
    }
    
    if ( ! function_exists( 'yith_wcaf_direct_bank_transfer_label_custom' ) ) {
    
    	function yith_wcaf_direct_bank_transfer_label_custom( $default_text ) {
    		$default_text = 'Bank name';
    		return $default_text;
    	}
    
    	add_filter( 'yith_wcaf_gateway_bacs_bacs_swift_label', 'yith_wcaf_direct_bank_transfer_label_custom', 10, 1 );
    
    }

    Check it out and tell us if it works well for you, please.

    Have a nice day!

    Thread Starter damy399

    (@damy399)

    Thank you for your help, that solved it

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘How to edit direct bank/wire transfer gateway’ is closed to new replies.