Website Design Dublin & Software Solutions By Arrow Design

New Address : The Chase, Sandyford, Dublin 18

Same great service, great coffee and easy to get to!

We GET Business

Change Proceed To Checkout Text

Are you looking for a way to change the default “Proceed To Checkout” button text on the WooCommerce Cart Page? This code snippet will let you change the text to “Proceed Now“, “Go to checkout“, “Continue to the checkout“, or whatever custom text you like.

 

To do this you need to:

  1. Open WordPress admin panel, go to Appearance > Theme Editor.
  2. Open functions.php theme file.
  3. Add the following code at the bottom of function.php file of your child theme.
  4. Save the changes and check your website. Note that you can change the text included from ‘Proceed Now’ to whatever you wish. The custom text in proceed to checkout text will now be displayed.

Note:

To change the proceed to checkout button, ensure that you take a backup and only do this through your child theme so that future updates to your theme will not overwrite the code.

//START OF CODE

/**
* Change Proceed To Checkout Text in WooCommerce
* Add this code in your active theme functions.php file
**/

//remove the default button
remove_action('woocommerce_proceed_to_checkout', 'woocommerce_button_proceed_to_checkout', 20);

//add fitler to re-write the button and redraw it
add_filter( 'woocommerce_proceed_to_checkout', 'arrowdesign_custom_proceed_to_checkout_update', 10, 2 );

function arrowdesign_custom_proceed_to_checkout_update() {

$new_checkout_url = WC()->cart->get_checkout_url();

?>
<a href="<?php echo esc_url( wc_get_checkout_url() ); ?>" class="checkout-button button alt wc-forward">
<?php

//CHANGE THE TEXT THE FOLLOWING TEXT //go to secure checkout //TO ANYTHING YOU WISH....ENJOY
esc_html_e( 'go to secure checkout', 'woocommerce' ); 
?>
</a>
<?php

} //close function

//END OF CODE of change the text on proceed to checkout code

If you prefer to changing the “Proceed To Checkout” button text via a plugin, use these buttons to download our plugin, for free.

If you would like help with changing the “Proceed To Checkout” button text or any website design project, please contact us – happy to help, always.

Social Media

 

Payments Accepted

 

payment options

Request a Callback

 

Contact Details

Phone: 01 536 3049

Mobile: (087) 13 77 382

Email: info@arrowdesign.ie

Address:

The Chase, Arkle Rd,

Sandyford, Dublin 18,

D18 Y3X2

 

Pin It on Pinterest

Share This