Change WooCommerce Shop Page Button Text for Grouped Products
<p>At the moment it reads "View products" i'd like to change that to "Compare Deals" anyone know how?</p>

<p>I tried...</p>

<pre><code>add_filter( 'woocommerce_product_single_add_to_cart_text', 'custom_woocommerce_product_add_to_cart_text' );

function custom_woocommerce_product_add_to_cart_text()  {

    global $product;
    $product_type = $product-&gt; product_type;

    switch ( $product_type ) {
        case 'external':
            return __( 'Buy product', 'woocommerce' );
        break;
        case 'grouped':
            return __( 'Compare Deals', 'woocommerce' ); &lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;
        break;
        case 'simple':
            return __( 'Add to cart', 'woocommerce' );
        break;
        case 'variable':
            return __( 'Select options', 'woocommerce' );
        break;
        default:
            return __( 'Buy Now', 'woocommerce' );
    }

}
</code></pre>

<p>But it has no effect on the grouped products on the /shop page it only changes the add to cart buttons or external button links - the buttons I am trying to change on the /shop page still read "View products" these are not actual add to cart buttons these are "LoopProduct-link" buttons I am trying to change the buttons lead to the product from the shop page.</p>