Are you looking for a way to change Add to Cart text in your WooCommerce store? Below are the two possible ways to change the text of the Add to Cart button to any text like Buy Now, Purchase Now, etc.
1. Custom Method
You can use the below code in the functions.php file of the active theme in your WooCommerce store.
// Function to change add to cart text on product archives pages
add_filter( 'woocommerce_product_add_to_cart_text', 'woocommerce_custom_product_add_to_cart_text' );
function woocommerce_custom_product_add_to_cart_text() {
return __( 'Buy Now', 'woocommerce' );
}
// Change add to cart text on a 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' );
}
2. Using WordPress Plugin
If you are not comfortable with the custom code, then you can use WordPress plugin WC Custom Add to Cart labels to change the text of the Add to Cart buttons in your WooCommerce store.
The plugin lets you change the label for Add to Cart button different for product archive pages and product single page based on the different product types. You can set the Add to Cart labels in the separate setting screen in WooCommerce –> Settings –> Products tab –> Add to cart button labels.