This topic has 4 replies, 3 voices, and was last updated 7 years, 10 months ago ago by Eva Kemp
Is there a way to change the words ‘Select Options’ to ‘More Colours’?
Hello,
Please refer to Woocommerce documentation:
https://docs.woothemes.com/document/change-add-to-cart-button-text/
Regards,
Rose Tyler.
Hi, this solution changes ALL the ‘Add to Cart’ buttons, but I’m looking to only change the text for the items with multiple variations. Is there a way to do this?
Hello,
Please add this code in functions.php file:
add_filter( 'woocommerce_product_add_to_cart_text' , 'custom_woocommerce_product_add_to_cart_text' );
/**
* custom_woocommerce_template_loop_add_to_cart
*/
function custom_woocommerce_product_add_to_cart_text() {
global $product;
$product_type = $product->product_type;
switch ( $product_type ) {
case 'variable':
return __( 'More Colours', 'woocommerce' );
break;
}
}
Regards,
Eva Kemp.
You must be logged in to reply to this topic.Log in/Sign up