Hi there,
Im also trying to change the “Add to shopping bag” button on the product page to: “Add to shopping cart”.
I’ve placed the below bit of code at the bottom of ourr function file but no change. What have I done wrong?
Thanks,
Dan
add_filter( 'add_to_cart_text', 'woo_custom_cart_button_text' ); // < 2.1
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 shopping cart', 'woocommerce' );
}