How to change “Add to cart” button text in WooCommerce

  1. On your FTP go to the wp-contentthemestheme#####includes directory (where ##### is your template number).
  2. Find custom-function.php file and open it for editing.
  3. Scroll down and add the following code before ?>To change add to cart text on single product pages.
    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' );
      
    }

    To change add to cart text on product archives.

    add_filter( 'add_to_cart_text', 'woo_custom_product_add_to_cart_text' );            // < 2.1
    add_filter( 'woocommerce_product_add_to_cart_text', 'woo_custom_product_add_to_cart_text' );  // 2.1 +
      
    function woo_custom_product_add_to_cart_text() {
      
        return __( 'My Button Text', 'woocommerce' );
      
    }
  4. (where ‘My Button Text’ is the new name of your “Add to cart” button)
  5. Save the changes and check your website. The new name of the button should show up now.