Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #290780

    Hello,

    The situation is this: PICTURE

    Is it possible to change the style of the BACS details somehow?
    On (A) everything is nice, but (1) is not really good.

    I dont know whether I can change the style of (1) according to (A). This means all details (account no, bank name, name…) in one row, separated by a vertical line? I already tried it with CSS, but I dont think I can solve it with CSS. And I’m not sure which files I’ve to change for this issue?

    Thanks, Enrico

    #290926

    Hi enricobaumgart!

    Dank dass Sie unser Theme verwenden.

    Mit CSS läßt sich das nicht umstylen.

    Den Programmcode finden Sie:

    plugins/woocommerce/includes/gateways/bacs/class-wc-gateway-bacs.php Zeile 243ff.

    Best regards,
    Günter

    #291125

    Hi Günter,

    thanks for this tip. It helped me to find the right code.
    For everybody who is trying the same, here is the code:

    // BACS account fields shown on the thanks page and in emails
    				$account_fields = apply_filters( 'woocommerce_bacs_account_fields', array(
    					'account_name'=> array(
    						'label' => __( 'Kontoinhaber', 'woocommerce' ),
    						'value' => $bacs_account->account_name
    					),
              'bank_name'=> array(
    						'label' => __( 'Name der Bank', 'woocommerce' ),
    						'value' => $bacs_account->bank_name
    					),
              'account_number'=> array(
    						'label' => __( 'Account Number', 'woocommerce' ),
    						'value' => $bacs_account->account_number
    					),
    					'sort_code'		=> array(
    						'label' => __( 'Sort Code', 'woocommerce' ),
    						'value' => $bacs_account->sort_code
    					),
    					'iban'			=> array(
    						'label' => __( 'IBAN', 'woocommerce' ),
    						'value' => $bacs_account->iban
    					),
    					'bic'			=> array(
    						'label' => __( 'BIC', 'woocommerce' ),
    						'value' => $bacs_account->bic
    					)
    				), $order_id );
    
    //if ( $bacs_account->account_name || $bacs_account->bank_name ) {
    				//	echo '<h3>' . implode( ' - ', array_filter( array( $bacs_account->account_name, $bacs_account->bank_name ) ) ) . '</h3>' . PHP_EOL;
    				//}

    best regards
    Enrico

    #291126

    Hey!

    Thank’s for coming back and this information.

    Glad we could help you. Enjoy the theme.

    Cheers!
    Günter

Viewing 4 posts - 1 through 4 (of 4 total)

The topic ‘WooCommerce: checkout page, BACS styling’ is closed to new replies.