How to change Add to Cart button text in Woocommerce Website in to Buy Now

go to Dashboard > Appearance > Theme Editor > Theme Functions (functions.php)

 

past this code at the end of this file

Singal product Page :-

 

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

 

Shop page

add_filter( 'woocommerce_product_add_to_cart_text', 'woocommerce_add_to_cart_button_text_archives' );  function woocommerce_add_to_cart_button_text_archives() {return __( 'Buy Now', 'woocommerce' );}

 

 

Leave a Comment

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