Hi there,
Glad you reached out, happy to help.
You can use this code snippet to replace the “Add to Cart” text with “Add to Bag” on the single product pages:
function custom_single_product_add_to_cart_text() {
return __( 'Add to Bag', 'woocommerce' );
}
add_filter( 'woocommerce_product_single_add_to_cart_text', 'custom_single_product_add_to_cart_text' );
You can use this code snippet to replace the “Add to Cart” text with “Add to Bag” on the whole site:
function custom_add_to_cart_text() {
return __( 'Add to Bag', 'woocommerce' );
}
add_filter( 'woocommerce_product_add_to_cart_text', 'custom_add_to_cart_text' ); // For shop page
add_filter( 'woocommerce_product_single_add_to_cart_text', 'custom_add_to_cart_text' ); // For single product page
Here is how to add the code snippet to your website using the Code Snippets plugin:
https://www.kadencewp.com/help-center/docs/kadence-theme/how-to-add-a-custom-filter-or-function-with-code-snippets/
Watch this demo screencast of what happens when the custom filter code is added to your website:
https://share.zight.com/JruEdbz7
I hope this helps. Please let us know how we can help further.
Cheers,
Eze