• Resolved dzulfriday

    (@dzulfriday)


    I saw this similar thread, but it was closed with no answer?

    How do you overwrite the default checkout button text “Pay with Billplz”?

    The custom code cannot overwrite Billplz button text, please help how can we customize the checkout button text.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Billplz Sdn Bhd

    (@billplz)

    You may use this code snippets on your website to change the checkout button text.

    /**
    * Change checkout button text for Billplz payment gateway.
    */
    add_filter( 'gettext', function( $translated_text, $text, $domain ) {
    if ( $translated_text === 'Pay with Billplz' && $domain === 'bfw' ) {
    $translated_text = 'Pay with Online Banking'; // Change to any text
    }

    return $translated_text;
    }, 20, 3 );

    Plugin Author Billplz Sdn Bhd

    (@billplz)

    You may use this code snippets on your WooCommerce store to change the default checkout button text.

    /**
    * Change checkout button text for Billplz payment gateway.
    */
    add_filter( 'gettext', function( $translated_text, $text, $domain ) {
    if ( $translated_text === 'Pay with Billplz' && $domain === 'bfw' ) {
    $translated_text = 'Pay with Online Banking';
    }

    return $translated_text;
    }, 20, 3 );
Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Checkout button text’ is closed to new replies.