Are you looking for a way to change the default "add to cart" text in WooCommerce to the one of your choice like "Buy now", "Include product" or "add to bag" or anything else.
You can use this simple snippet to do this.
/**
* @snippet WooCommerce Change "add to cart " text.
* @author Yellamaddi Naveen
* @compatible WooCommerce 3.7.0
*/
add_filter('woocommerce_product_single_add_to_cart_text',
'woo_custom_cart_button_text');
function woo_custom_cart_button_text() {
return __('Book Now', 'woocommerce');
}
How to add this snippet?
You can add this snippet to your child themes functions.php , We don't recommend adding code to your main theme if its not developed by you. Otherwise you can use a simple plugin https://wordpress.org/plugins/code-snippets/
Express your views in the comment section below.