How to change proceed to checkout text In wooCommerce 3.9.2?

How to change proceed to checkout text In wooCommerce 3.9.2?

WooCommerce is an open-source eCommerce plugin built for WordPress. You can employ the most potent content management system (CMS) to operate an online business thanks to this. You can alter every element of your store because it is open-source.

 

You can override any template file with WooCommerce by putting your own customized copy of the file in your WordPress theme directory. To override the plugin file, simply establish the same folder structure as the WooCommerce plugin and upload your own template file inside.

CHANGE PROCEED TO CHECKOUT TEXT

  1. Open function.php theme file using FPT or admin theme editor.
  2. Add the following code at the bottom of function.php file & Save the changes
CHANGE CHECKOUT TEXT ONLY

function woocommerce_button_proceed_to_checkout() { ?>
<a href="<?php echo esc_url( wc_get_checkout_url() ); ?>" class="checkout-button button alt wc-forward">
<?php esc_html_e( 'Secure Checkout', 'woocommerce' ); ?>
</a>
<?php
}


CHANGE CHECKOUT TEXT AND ADD SECURE ICON

function woocommerce_button_proceed_to_checkout() { ?>
<a href="<?php echo esc_url( wc_get_checkout_url() ); ?>" class="checkout-button button alt wc-forward">
<img src="path_to_icon" alt="Secure Checkout"/>
<?php esc_html_e( 'Secure Checkout', 'woocommerce' ); ?>
</a>
<?php
}

 NEED HELP?

If you find problem in adding this code feel free to comment below or contact us we will help you. Please don't forget to change "path_to_icon" with icon image url if you are using code to change text and add secure icon.


CodeGear Themes
CodeGear Themes

Branding, Web Design & Development, Digital Marketing, WordPress & Shopify Development Team