Add to cart button text change 

Add To CartText


Add 1 step ART to change step

First, open in the WordPress admin panel, then go to Appearance> Theme Editor
Open the function.php theme file.

Add the following code to the bottom of the function.php file
Save the changes and check your website. The custom text attached to the cart button should now be viewed.


// To change add to cart text on single product page

add_filter( 'woocommerce_product_single_add_to_cart_text', 'woocommerce_custom_single_add_to_cart_text' ); 
function woocommerce_custom_single_add_to_cart_text() {
    return __( 'Buy Now', 'woocommerce' ); 
}

// To change add to cart text on product archives(Collection) page

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 Custom Text ', 'woocommerce' );
}

Add ToCart Text



I hope Everything is Don...