Add this code as a new snippet, and change “Add to Bag” to what you want the button to say:
// Change the add to cart text on single product pages
add_filter( 'woocommerce_product_single_add_to_cart_text', 'woo_custom_cart_button_text' ); // 2.1 +
function woo_custom_cart_button_text() {
return __( 'Add to Bag', 'woocommerce' );
}
//Change the add to cart text on product archives
add_filter( 'woocommerce_product_add_to_cart_text', 'woo_archive_custom_cart_button_text' ); // 2.1 +
function woo_archive_custom_cart_button_text() {
return __( 'Add to Bag', 'woocommerce' );
}
Karina Lenartowiczhttps://freshysites.com/team/karina-lenartowicz/Karina is a 2012 graduate from the State University of New York at Oswego where she received a BA in Art with Graphic Design emphasis. As a Syracuse-area native, she gained 4 years of web design agency experience before joining Freshy in early 2018 as a Web Designer. Karina has been intrigued by design ever since she designed a t-shirt for a middle school event. She loves seeing her creations “out in the wild” with no one the wiser on who designed it or how much time and thought went into it. In her free time you will find her reading, volunteering at local animal shelters, enjoying the Adirondacks and wine tasting.