• Resolved hardmotos

    (@hardmotos)


    For legal reasons in the Netherlands, I have to adjust the order button, it should state “Order with payment obligation” (bestelling met betaalplicht) instead of just “order” (bestselling plaatsen) as it does now in the standard configuration. So either adjust the order button itself to state “bestelling met betaalplicht” or put a statement above the order button with a checkbox (just like the general terms and conditions checkbox that is already there) with the text “By placing the order I enter into a payment obligation”.

    I tried to find this in support documentation, the only relevant information I found was about just translating it, that des not ehplp as Dutch is the default language and in any case the button text has to be changed everywhere, and in the article How to Customize WooCommerce Checkout Fields (https://woocommerce.com/posts/customize-checkout-fields-woocommerce/) there is a bullet Changing the text on the “Place Order ”Button, but that is not followed up anywhere …
    So how to do this, either by changing the text of the order button or by placing an additional checkbox above theoriser button, whichever of these solutions iOS better/easier?
    Thanks much in advance,
    Cheers,
    Jaco

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • @hardmotos You can change this Place order button text via Loco translate plugin.Install this plugin and find this text at there then you can change the text whatever you wanted to put.

    Missy a11n

    (@m155y5)

    Automattic Happiness Engineer

    Hi @hardmotos

    This can be accomplished with this code snippet:

    add_filter( 'woocommerce_order_button_text', 'woo_custom_order_button_text' ); 
    
    function woo_custom_order_button_text() {
        return __( 'Your custom text here', 'woocommerce' ); 
    }

    The easiest way to add custom functions like this is with the free Code Snippets plugin: https://wordpress.org/plugins/code-snippets/

    Missy a11n

    (@m155y5)

    Automattic Happiness Engineer

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

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Change text of order button’ is closed to new replies.