How to Change “View Products” Button Text for Grouped Products in WooCommerce

In WooCommerce, grouped products display a “View products” button on shop and archive pages instead of the standard “Add to cart” button. This happens because grouped products contain multiple related items that must be selected individually on the product page.

However, in some cases, you may want to change the “View products” button text to something more suitable for your store like “View Bundle”, “Choose Options” or “See Options”.

By default, WooCommerce does not provide a built-in setting to change this text but it can be easily customized using a simple PHP snippet.

Snippet: Change “View products” Button Text on Shop & Archive/Category Pages

Use the following snippet to change the View products button text for grouped products on the shop and product archive/category pages:

// Change "View products" Button Text for Grouped Products in Shop & Archive Pages
add_filter( 'woocommerce_product_add_to_cart_text', 'shez_change_grouped_view_products_text', 9999, 2 );
function shez_change_grouped_view_products_text( $text, $product ) {
    if ( $product->is_type( 'grouped' ) ) {
        return esc_html__( 'View Bundle', 'woocommerce' );
    }
    return $text;
}

Where to add this custom code?

Add this code to your child theme’s functions.php file or via a plugin that allows custom functions to be added, such as the Code snippets plugin.

Related Snippets:

Related Content