How to change the "Proceed to PayPal" button text on the check out page

Home Forums Ticket Products Event Tickets Plus How to change the "Proceed to PayPal" button text on the check out page

Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • #830113
    christina
    Participant

    Are we able to change the button copy that says “Proceed to paypal” on the check out page?

    See screenshot here: http://massage-training.net/wp-content/uploads/2014/10/Screen-Shot-2014-10-23-at-2.55.17-PM.png

    Thanks

    #830125
    christina
    Participant

    I know you can change it here: /wp/wp-content/plugins/woocommerce/includes/gateways/paypal/class-wc-gateway-paypal.php

    but can I do it without changing the core files?

    #830187
    Brian
    Member

    Hi christina,

    I took a look at that file and did not see a filter that would change that text. There is not much we can help out on as that is in WooCommerce itself.

    You maybe to adapt this snippet found here:

    http://pastebin.com/dChwZEdT

    You can change the domain to woocommerce

    And then delete one switch {} and change the Case to the paypal text and then the translation to what you would like instead.

    That is about all we can do on this one for WooCommerce, but that should get you close to what you would like.

    Thanks

    #830193
    christina
    Participant

    Hi thanks for the response! Is that any better than just updating the core file of woocommerce?

    #830376
    Brian
    Member

    That is up to you, but I would avoid directly editing plugins as every time you update the change is overwritten.

    #830461
    christina
    Participant

    Thanks. Where would I add that snippet? In my functions.php?

    #832325
    Brian
    Member

    Yep I would add it to your functions.php.

    #832734
    christina
    Participant

    I think I am missing something here. Can you take a look at:
    http://pastebin.com/yNzAwwkJ

    #832753
    Brian
    Member

    The case ”: should be the entire statement exactly it is written.

    #833207
    christina
    Participant

    Sorry what is ”:

    #833251
    Brian
    Member

    case ‘paypal’: needs to be the full statement you are changing, not just the word.

    case ”: is just the quotes without any content.

    #888598
    Brian
    Member

    Since there is has not been any activity on this thread for over 2 weeks so I am now closing it. Feel free to start a new thread if you have further issues. Thanks! 🙂

Viewing 12 posts - 1 through 12 (of 12 total)
  • The topic ‘How to change the "Proceed to PayPal" button text on the check out page’ is closed to new replies.