• Resolved alexcrz

    (@alexcrz)


    Hello, I’m using WooCommerce Square plugin and I’m trying to change the “Place Order” button on the checkout page, I have already tried by adding a filter in functions.php, and also tried to change a couple .php pages from checkout, but nothing, the page start loading with the name I changed, but once is loaded it turns back to “Place order”. Any help with that?

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Support kellymetal a11n

    (@kellymetal)

    Hi there,

    It looks like there is a filter available in the core WooCommerce plugin, as well as a separate one in Square — the following snippet should change them both to some custom text:

    
    // Set custom text for "Place Order" button with Square
    function my_custom_place_order_text( $input ) {
        $my_custom_text = "Take my money!";
        return $my_custom_text;
    }
    add_filter( 'woocommerce_order_button_text', 'my_custom_place_order_text', 10, 2 );
    add_filter( 'wc_payment_gateway_square_credit_card_order_button_text', 'my_custom_place_order_text', 10, 2 );
    

    I hope that helps!

    Thread Starter alexcrz

    (@alexcrz)

    @kellymetal Hello,

    I’ve tried your code, but unfortunately still nothing, it keeps showing “Place order”..

    Plugin Support kellymetal a11n

    (@kellymetal)

    Hi there,

    Hmm, that’s unfortunate — on my personal test site that snippet is working OK:

    place order button
    Link to image: https://d.pr/i/hI6242

    How have you added the code? We recommend adding it to your child theme’s functions.php file or via a plugin that allows custom functions to be added, such as the Code Snippets plugin.

    If it’s still not working, then it’s possible something else in your theme or another plugin is overriding/conflicting with it. To narrow down what is causing the difference in behavior, please temporarily switch your theme back to the default Storefront theme and disable all plugins except for WooCommerce, then check to see if that makes a difference. If it does, then switch your theme back and reactivate plugins one-by-one until you find the one that is causing the issue.

    You can read about testing for conflicts in our documentation here:
    https://docs.woocommerce.com/document/how-to-test-for-conflicts/

    Plugin Support kellymetal a11n

    (@kellymetal)

    Hi there,

    We haven’t heard back from you in a while, so I’m going to mark this thread as resolved. If you have any further questions, please start a new thread.

    Have a wonderful day!

    Thanks a lot @kellymetal ! That worked for me for the same exact problem !

    thanks !

    Plugin Support kellymetal a11n

    (@kellymetal)

    Hi there @bengosselin — glad to hear it helped! : )

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘WooCommerce Square plugin change “Place Order” button on checkout’ is closed to new replies.