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
- Open function.php theme file using FPT or admin theme editor.
- 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.