Are you fed up with the default add to cart button on your site? If yes, then follow this article. In this step by step article I’m going to show you how to change the woocommerce add to cart text.
Change the WooCommerce Add To Cart Text for Single Product page
You can easily change the add cart button text editing your functions.php file. Just add the code below in your themes functions.php file. Also you may navigate to Your_Site->wp-includes->functions.php
/** Change the Button label. */ function thenga_single_add_to_cart_text( $text ) { return __( 'Buy', 'textdomain' ); } add_filter( 'woocommerce_product_single_add_to_cart_text', 'thenga_single_add_to_cart_text', 10, 1 );
If you need another label than replace ‘Buy’ with your selected one.
Change the WooCommerce Add To Cart Text for Archive Products/Shop Page
You may need to change the add to cart button label for archive products. To change the button label for archive products simply add these line below in your functions.php file in your themes directory.
/** Add to cart button label for archive products */ add_filter( 'add_to_cart_text', 'woo_custom_product_add_to_cart_text' ); add_filter( 'woocommerce_product_add_to_cart_text', 'woo_custom_product_add_to_cart_text' ); function woo_custom_product_add_to_cart_text() { return __( 'Buy Now', 'woocommerce' ); }
If you want to use any other label then change the word ‘Buy Now’ to your preferred one.
Change for variable Product
You can change add to cart button for variable product for variable product. Just use the code below.
/** Change add to cart button for variable product */ add_filter('variable_add_to_cart_text', 'my_custom_cart_button_text'); function my_custom_cart_button_text() { return __('Select Product', 'woocommerce'); }
Change the WooCommerce Add To Cart Text by Plugin
If you are not familiar with coding you can do all the stuff with plugin. There are couple of plugins to do this. Among them I recommend you using WooCommerce add to cart Text change plugin. With this plugin you can change your default WooCommerce text on various page like shop page, archive page and product page. There is a advantage that you can use only cart icon on add to cart button.

See how does it looks after changing the selected option.

Related article: If you don’t know how to install a WordPress plugin please see Managing a WordPress Plugin.
I hope you have got the point to Change the WooCommerce Add To Cart Text. If you have any related issue leave a comment below.