• Resolved pracko

    (@pracko)


    The ‘Make Payment through PayPal’ on the /purchase page is confusing our customers.

    These folks don’t have a PayPal account yet they still want to pay using a credit or debit card. PayPal allows this as an option after the button is clicked (below the PP login area) but it would be nice if we could change the button to say ‘Pay with PayPal or Debit/Credit Card’.

    I saw in a previous thread that you had privately shared a filter with another user via email for accomplishing this, but you never posted the code to this forum.

    I also saw another thread where you instructed someone to update the ‘Payment Gateway selector label’, but that doesn’t have an effect on the text of the ‘Make Payment through PayPal’ button.

    Please post the solution to this issue in this thread.

    Thanks!

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Joe Dolson

    (@joedolson)

    You can use the filter mt_gateway_button_text to change it. E.g.

    
    function change_paypal_button( $text, $gateway ) {
        if ( 'paypal' === $gateway ) {
            return 'Pay with PayPal or Credit Card';
        }
        return $text;
    }
    add_filter( 'mt_gateway_button_text', 'change_paypal_button', 10, 2 );
    

    You’d use this in a custom plug-in, added to /wp-content/plugins/ and activated in the plug-in manager. Here are some basic instructions:

    https://github.com/joedolson/plugin-extensions

    Thread Starter pracko

    (@pracko)

    Thanks Joe, much appreciated!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Change ‘Make Payment through PayPal’ button text’ is closed to new replies.