Change Add to Cart Button Text for particular WooCommerce product type

Each store sells different product and based on your product type you would like to change the “Add to Cart” button text on either Shop page or Single Product page. Here I will guide you, how you can do that for each of the default product type provided by WooCommerce. Be it a Simple product, Variable Product, Grouped product or External product.

In order to achieve this add this snippet to the functions.php file of your child theme.

This code will change button text on Shop and Category Pages. Please note below code snippet doesn’t change external product “Add to Cart” button text. To change External Product button text, use code snippet given further on this tutorial.

Use this snippet to change “Add to Cart” Button text on Single Product Page. Please note for external product we can not have separate button text for Shop/Category pages or Single product page. They both will be same.

Leave a Reply