Need to rename “Add to Cart” button to be “Add to Order”
-
Hi,
I have a client site where they want the “Add to Cart” changed to “Add to Order”.
I have found some code via google that works well BUT there is a little issue. It also changes the Variable product buttons, where it used to say “Choose Options” and now says “Add to Order” on the Shop page which I don’t want to happen. Customers still need to see the “Choose OPtions” button before clicking on to choose their options in that product.
So the code nearly works right except for that bit.
Any ideas or code that other people have used that WON’T affect the “Choose Options” buttons.
I found it from this site https://www.businessbloomer.com/woocommerce-rename-add-to-cart-button-label/
/**
* @snippet Change "Add to cart" Button Label @ Woo Shop / Single
* @tutorial Get CustomizeWoo.com FREE
* @author Rodolfo Melogli
* @compatible WooCommerce 8
* @community Join https://businessbloomer.com/club/
*/
add_filter(
'woocommerce_product_single_add_to_cart_text'
,
'bbloomer_custom_add_cart_button'
, 9999 );
add_filter(
'woocommerce_product_add_to_cart_text'
,
'bbloomer_custom_add_cart_button'
, 9999 );
function
bbloomer_custom_add_cart_button() {
return
'Buy Now!'
;
}
THanks in advance
- The topic ‘Need to rename “Add to Cart” button to be “Add to Order”’ is closed to new replies.