From 6da3512265bbf06f3e5122b86599e10b18dedaa6 Mon Sep 17 00:00:00 2001 From: Mike Jolley Date: Mon, 12 Sep 2011 09:38:18 +0100 Subject: [PATCH] Add to cart button titles --- woocommerce_template_functions.php | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) 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; + ?>