How to change add to cart button text in woocommerce shop page?

The woocommerce shop page in change add to cart button text show/display for product single page, if you want to change add to cart text button change on product page each product in the WooCommerce shop page.

Woocommerce for button text add to cart change in category and archive shop pages

Always use child theme any wordpress website and copy below code and add this code in your function.php for single product page.
Use this below shortcode for 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' );
}

Post a Comment

0 Comments