This topic has 12 replies, 3 voices, and was last updated 6 years, 10 months ago ago by Olga Barlow
Hi, on my checkout page the button says “ADD TO CART”, but it should read CHECKOUT. How can I change this?
http://prntscr.com/hxsclh
Thanks!
Dan
That’s super duper easy. In your x-store child theme folder, there’s a php file called functions.php. Add this line of code at the bottom
add_filter( 'add_to_cart_text', 'woo_custom_single_add_to_cart_text' ); // < 2.1
add_filter( 'woocommerce_product_single_add_to_cart_text', 'woo_custom_single_add_to_cart_text' ); // 2.1 +
function woo_custom_single_add_to_cart_text() {
return __( 'My Button Text', 'woocommerce' );
}
Not my code. I googled it: https://www.templatemonster.com/help/woocommerce-how-to-change-add-to-cart-button-text.html
I tested it in the current theme version, it works.
Oh never mind, sorry dude – I lied. I read your question way to fast. That code won’t fix the checkout button, it’ll only change the add to cart button text. I looked through the woocommerce settings and couldn’t uncover anything. do you have plugins that could be affecting it? doesn’t seem to do it on my install and I’m running the latest version of the theme.
Ha ha thanks for trying… hmmmm no extra plugins… I updated to the latest to see if that would help… still nothing… I will look again for plugins
Dan
To add to this, I just went through and deactivated / activate my plugins one my one…. still says add to cart?
Dan
Hello, @dbelkie
I have checked your site and don’t see described issue http://prntscr.com/hxzk1t
Have you sorted out?
Regards
Hmmmm yes the issue still is seen on my end. I have tried flushing cach, and trying different computers. Do you know what could be causing this? Maybe your checking out in a different way?
Dan
Hello,
What product are you trying to order? Are you logged in or logged out? Provide me temporary admin panel access to check if you have this issue with our theme only or with the default theme too.
Regards
I have tried both, as well as chrome and Firefox.
Private information is attached.
Thanks!
Dan
Hello,
It’s related to your settings of WooCommerce Subscriptions plugin http://prntscr.com/hy4i9e
This plugin does not come bundled with our theme, our theme includes Subscriptio plugin http://prntscr.com/hy4jco .
Regards
Well…. thats embarrassing! So simple!
Thank you!
Dan
You are welcome!
Would you mind to rate our product:
http://prnt.sc/d256m6
https://themeforest.net/downloads
That would be much appreciated 🙂
Regards
You must be logged in to reply to this topic.Log in/Sign up