How to Change Checkout Button Text - by dbelkie

This topic has 12 replies, 3 voices, and was last updated 6 years, 3 months ago ago by Olga Barlow

  • Avatar: dbelkie
    dbelkie
    Participant
    January 8, 2018 at 23:20

    Hi, on my checkout page the button says “ADD TO CART”, but it should read CHECKOUT. How can I change this?
    http://prntscr.com/hxsclh

    Thanks!
    Dan

    11 Answers
    Avatar: thisisbolo
    thisisbolo
    Participant
    January 9, 2018 at 03:28

    That’s super duper easy. In your x-store child theme folder, there’s a php file called functions.php. Add this line of code at the bottom

    add_filter( 'add_to_cart_text', 'woo_custom_single_add_to_cart_text' );                // < 2.1
    add_filter( 'woocommerce_product_single_add_to_cart_text', 'woo_custom_single_add_to_cart_text' );  // 2.1 +
      
    function woo_custom_single_add_to_cart_text() {
      
        return __( 'My Button Text', 'woocommerce' );
      
    }

    Not my code. I googled it: https://www.templatemonster.com/help/woocommerce-how-to-change-add-to-cart-button-text.html

    I tested it in the current theme version, it works.

    Avatar: thisisbolo
    thisisbolo
    Participant
    January 9, 2018 at 03:32

    Oh never mind, sorry dude – I lied. I read your question way to fast. That code won’t fix the checkout button, it’ll only change the add to cart button text. I looked through the woocommerce settings and couldn’t uncover anything. do you have plugins that could be affecting it? doesn’t seem to do it on my install and I’m running the latest version of the theme.

    Avatar: dbelkie
    dbelkie
    Participant
    January 9, 2018 at 05:58

    Ha ha thanks for trying… hmmmm no extra plugins… I updated to the latest to see if that would help… still nothing… I will look again for plugins

    Dan

    Avatar: dbelkie
    dbelkie
    Participant
    January 9, 2018 at 06:23

    To add to this, I just went through and deactivated / activate my plugins one my one…. still says add to cart?

    Dan

    Avatar: Olga Barlow
    Olga Barlow
    Support staff
    January 9, 2018 at 12:18

    Hello, @dbelkie

    I have checked your site and don’t see described issue http://prntscr.com/hxzk1t
    Have you sorted out?

    Regards

    Avatar: dbelkie
    dbelkie
    Participant
    January 9, 2018 at 15:50

    Hmmmm yes the issue still is seen on my end. I have tried flushing cach, and trying different computers. Do you know what could be causing this? Maybe your checking out in a different way?

    Dan

    Avatar: Olga Barlow
    Olga Barlow
    Support staff
    January 9, 2018 at 16:00

    Hello,

    What product are you trying to order? Are you logged in or logged out? Provide me temporary admin panel access to check if you have this issue with our theme only or with the default theme too.

    Regards

    Avatar: dbelkie
    dbelkie
    Participant
    January 9, 2018 at 16:39

    I have tried both, as well as chrome and Firefox.

    Private information is attached.

    Thanks!
    Dan

    Please, contact administrator
    for this information.
    Avatar: Olga Barlow
    Olga Barlow
    Support staff
    January 9, 2018 at 18:01

    Hello,

    It’s related to your settings of WooCommerce Subscriptions plugin http://prntscr.com/hy4i9e
    This plugin does not come bundled with our theme, our theme includes Subscriptio plugin http://prntscr.com/hy4jco .

    Regards

    Avatar: dbelkie
    dbelkie
    Participant
    January 9, 2018 at 18:12

    Well…. thats embarrassing! So simple!
    Thank you!
    Dan

    Avatar: Olga Barlow
    Olga Barlow
    Support staff
    January 9, 2018 at 18:14

    You are welcome!

    Would you mind to rate our product:
    http://prnt.sc/d256m6
    https://themeforest.net/downloads

    That would be much appreciated 🙂

    Regards

  • Viewing 12 results - 1 through 12 (of 12 total)

You must be logged in to reply to this topic.Log in/Sign up

We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.