Change default ‘Add To Cart’ button text in wooCommerce

When customizing WooCommerce, one thing you may want to change is the default “Add To Cart” text. For example, you may want to change the text to “Donate Now”, “Add Product”, “Buy”, or whatever you like. To change the “Add To Cart” text, add the following snippet to the functions.php file of your WordPress theme. Then, just change the “Add Item” text in the second line to whatever you want.

add_filter('single_add_to_cart_text', 'woo_custom_cart_button_text');
function woo_custom_cart_button_text() {
    return __('Add Item', 'woocommerce');

Comments  Leave a Reply

  1. this is not working , i tried it .

  2. Hmmm, added this to my child theme on the customs function php section & my button text did not change??

    add_filter(‘single_add_to_cart_text’, ‘woo_custom_cart_button_text’);

    function woo_custom_cart_button_text() {
    return __(‘Add to Bag’, ‘woocommerce’);

  3. Hi Saha,

    thanks for your article. I want to change the change the last button in the checkout `Buy now` or `Pay now`(Sorry I don’t know the right text in english).

    do you have any tip for that?

    1. write to your functions.php in your theme folder:
      add_filter(‘single_add_to_cart_text’, ‘woo_custom_cart_button_text’);

      function woo_custom_cart_button_text() {
      return __(‘Buy now’, ‘woocommerce’);

Add a Comment

We're glad you have chosen to leave a comment. Please keep in mind that all comments are moderated according to our privacy policy, and all links are nofollow. Do NOT use keywords in the name field. Let's have a personal and meaningful conversation.

WordPress Launch Checklist

The Ultimate WordPress Launch Checklist

We've compiled all the essential checklist items for your next WordPress website launch into one handy ebook.
Yes, Send Me the Free eBook!