diff --git a/woocommerce_template_functions.php b/woocommerce_template_functions.php index 44af23e82ec..576c3c4139f 100644 --- a/woocommerce_template_functions.php +++ b/woocommerce_template_functions.php @@ -58,7 +58,19 @@ if (!function_exists('woocommerce_template_loop_add_to_cart')) { // No price set - so no button if( $_product->get_price() === '') return; - ?>product_type) : + case "variable" : + echo apply_filters('variable_add_to_cart_text', __('Select options', 'woothemes')); + break; + case "grouped" : + echo apply_filters('grouped_add_to_cart_text', __('View options', 'woothemes')); + break; + default : + echo apply_filters('add_to_cart_text', __('Add to cart', 'woothemes')); + break; + endswitch; + ?>