WooCommerce Change Add To Cart Button Text On Product Archive


There are no pre-requisites in order for you to be able to implement this solution.

How To Implement This Solution?

Simply copy the pre-coded solution to your active theme’s functions.php or preferably the Code Snippets Plugin.

About this Solution

Like with changing the text on the single product template, it’s important to note that if you’re trying to change the button text to either “add to cart” or “add to basket” then this guide is not for you. These two strings are default and based on your store’s location. From what we can tell, where “cart” is used in a country, this string is used. Here in the UK for example, cart is American English. We would say a shopping cart is called a trolley. But that just sounds weird so WooCommerce have used basket for us Brits at least. Changing the add to cart button text on the product archive page is really quick and simple, and we’ll show you how to do exactly that in this guide.

* Snippet Name: Change the Add To Cart button text on the WooCommerce product archive template.
* Snippet Author: ecommercehints.com

add_filter( 'woocommerce_product_add_to_cart_text', 'woocommerce_custom_product_add_to_cart_text' );
function woocommerce_custom_product_add_to_cart_text() {
return __( 'Your Text Here', 'woocommerce' );

Snippet Benefits

  • Customise your product category page to your business needs with appropriate add to cart button text.
WooCommerce Conversion Rate Optimisation (CRO) eBook
100 WooCommerce Conversion Rate Optimisation Tips

Leave a Reply

If you are going to write code in the comments, please wrap it between code tags.

Your email address will not be published. Required fields are marked *

Other Recent Guides

Subscribe To Emails

Get exclusive WooCommerce tips that I only share with email subscribers

Join hundreds of other subscribers