WooCommerce: Disable Grouped Product Price Range $$$-$$$

You may want to disable the Grouped product price range on the Shop and Single Product page. This usually looks like $100-$999. With this snippet you will be able to display “From: ” in front of the minimum price, or otherwise completely hide it ๐Ÿ™‚

Change the display of price range for Grouped Products

PHP Snippet #1: Change WooCommerce Grouped Product Price Range Format $$$-$$$

 * @snippet       Change Grouped Product Price Range
 * @how-to        Get CustomizeWoo.com FREE
 * @author        Rodolfo Melogli
 * @testedwith    WooCommerce 8
 * @community     https://businessbloomer.com/club/

add_filter( 'woocommerce_grouped_price_html', 'bbloomer_grouped_price_range_from', 10, 3 );

function bbloomer_grouped_price_range_from( $price, $product, $child_prices ) {
   $prices = array( min( $child_prices ), max( $child_prices ) );
   $price = $prices[0] !== $prices[1] ? sprintf( __( 'From: %1$s', 'woocommerce' ), wc_price( $prices[0] ) ) : wc_price( $prices[0] );
return $price;

PHP Snippet #2: Remove WooCommerce Grouped Product Price Range Entirely $$$-$$$

 * @snippet       Remove Grouped Product Price Range
 * @how-to        Get CustomizeWoo.com FREE
 * @author        Rodolfo Melogli
 * @testedwith    WooCommerce 8
 * @community     https://businessbloomer.com/club/

add_filter( 'woocommerce_grouped_price_html', 'bbloomer_grouped_price_range_delete', 10, 3 );

function bbloomer_grouped_price_range_delete( $price, $product, $child_prices ) {
   $price = '';
   return $price;

Advanced Plugin: WooCommerce Variation Prices

If youโ€™d rather not edit code, then I found a high quality plugin that lets you achieve the same result.

WooCommerce Variation Prices (don’t get put off by the plugin name!) lets you disable the grouped product price range and replace it with your own custom price format. For example, you can display the cost of the lowest or highest priced child product, list the price of every product together, and add extra text to appear with your grouped product price.

Where to add custom code?

You should place custom PHP in functions.php and custom CSS in style.css of your child theme: where to place WooCommerce customization?

This code still works, unless you report otherwise. To exclude conflicts, temporarily switch to the Storefront theme, disable all plugins except WooCommerce, and test the snippet again: WooCommerce troubleshooting 101

Related content

  • WooCommerce: Custom Add to Cart URLs – The Ultimate Guide
    In WooCommerce you can add a product to the cart via a custom link. You just need to use the “add-to-cart” URL parameter followed by the product ID. This tutorial will show you how to create custom URLs to add simple, variable and grouped products to the cart – as well as defining the add […]
  • WooCommerce Visual Hook Guide: Single Product Page
    Here’s a visual hook guide for the WooCommerce Single Product Page. This is part of my “Visual Hook Guide Series“, through which you can find WooCommerce hooks quickly and easily by seeing their actual locations (and you can copy/paste). If you like this guide and it’s helpful to you, let me know in the comments! […]
  • WooCommerce: Disable Variable Product Price Range $$$-$$$
    You may want to disable the WooCommerce variable product price range which usually looks like $100-$999 when variations have different prices (min $100 and max $999 in this case). With this snippet you will be able to hide the highest price, and add a “From: ” prefix in front of the minimum price. At the […]
  • WooCommerce: Hide Price & Add to Cart for Logged Out Users
    You may want to force users to login in order to see prices and add products to cart. That means you must hide add to cart buttons and prices on the Shop and Single Product pages when a user is logged out. All you need is pasting the following code in your functions.php (please note: […]
  • WooCommerce: Hide Prices on the Shop & Category Pages
    Interesting WooCommerce customization here. A client of mine asked me to hide/remove prices from the shop page and category pages as she wanted to drive more customers to the single product pages (i.e. increasing the click-through rate). As usual, a simple PHP snippet does the trick. I never recommend to use CSS to “hide” prices, […]

Rodolfo Melogli

Business Bloomer Founder

Author, WooCommerce expert and WordCamp speaker, Rodolfo has worked as an independent WooCommerce freelancer since 2011. His goal is to help entrepreneurs and developers overcome their WooCommerce nightmares. Rodolfo loves travelling, chasing tennis & soccer balls and, of course, wood fired oven pizza. Follow @rmelogli

57 thoughts on “WooCommerce: Disable Grouped Product Price Range $$$-$$$

  1. Guess I should have save my name. Awesome work you’ve done here. Is there a way to handle product short descriptions on a grouped product? I am pulling in grouped products on a simple product page, and would like to show the product short description for each? Thanks in advance!

    1. Hi Aaron, thanks so much for your comment! Yes, this is definitely possible, but I’m afraid it’s custom work. If you’d like to get a quote, feel free to contact me here. Thanks a lot for your understanding!

  2. OOps — ignore previous comment from me.
    My old eyes read a period as a comma.
    It’s working great as written. Thanks again for all you do, Big R !!

  3. I am trying this on the latest WordPress and it does not seem to work direct copy

    1. Weird. Tried even with a different theme and no other plugins active but Woo?

      1. add_filter( 'woocommerce_grouped_price_html', 'bbloomer_grouped_price_range_delete', 10, 3 );
        function bbloomer_grouped_price_range_delete( $price, $product, $child_prices ) {
        $price = '';
        return $price;

        I get an error on line 4 Cannot redeclare function bbloomer_grouped_price_range_delete.

        1. Sounds like you’ve also added the same snippet somewhere else?

      2. This worked perfectly for me using the “Snippets” plugin, not directly editing the theme files. Thanks for sharing!

  4. Hi Rodolfo,

    I’m using $price_excl_tax and $price_inc_tax for pricing on our new website. Do you know how I could adjust the snippet to get it to work?

    Thanks in advance and hope you’re keeping well ๐Ÿ™‚


    1. Hi Dom, thanks so much for your comment! Yes, this is definitely possible, but I’m afraid it’s custom work. If you’d like to get a quote, feel free to contact me here. Thanks a lot for your understanding!

  5. Hi Rodolfo,
    I’m trying to do something a little different,
    I have mostly Simple Products & a few Variable Products.
    Most of my Simple products have other price options which are coming in from a plugin, so these all just show 1 price.
    the Variable ones obviously show the price range.
    I am wanting all products on the shop page to just show 1 price (the lowest) as: “From: $xxx.xxx
    I tried your snippet and it stopped almost all the products o my site from displaying on the shop page, for now I have just done this:

    add_action( 'woocommerce_after_shop_loop_item_title', 'falz_from_price', 5 );
    function falz_from_price() {
    echo"<h3><b> From: </b></h3>";

    But this is not exactly what I want as it drops the price to a new line & my few variable products will still clearly say
    $xxx.xxx – $xxx-xxx”

    Any tips on this?



    1. I found one of your other blog posts (https://businessbloomer.com/woocommerce-add-prefix-suffix-product-prices/) and looks to have done the job for me ๐Ÿ™‚

      1. Nice!

  6. For me, it’s working for logged-in users, but not for logged-out.

    1. Sounds like a cache issue?

  7. It worked for me. thanks!

    1. Cheers!

  8. this code providing price after discount (if exist), how to get regular price?

    1. Hi Paul, thanks so much for your comment! Yes, this is definitely possible, but I’m afraid it’s custom work. If you’d like to get a quote, feel free to contact me here. Thanks a lot for your understanding!

  9. I’m on WooCommerce 3.4.2 / WP 4.9.6 and PHP 7 โ€“ it doesn’t work for me. May someone confirm?

    1. Still works Fabio ๐Ÿ™‚

  10. Hi,
    Is this tested with 3.4.1 ?

    1. Yep Rojo, just tried it on WooCommerce 3.4.1 and it still works ๐Ÿ™‚

  11. its not working

    1. Hey Dante, thank you so much for your comment! I’m afraid it does work on WooCommerce 3.3.4 so you must have some other problem. Let me know ๐Ÿ™‚

  12. Hello

    Thanks for the snippet. Could you get Woocommerce to show “to price” instead of “from price” ? Just to display the highest price.


    1. Hey Ken, thank you so much for your comment! Yes, sure, you just need to slightly edit this snippet ๐Ÿ™‚

  13. Hi

    Not working now after Woo update to 3.3.1. Tried with TwentyFifteen them too and no joy !


    1. Not sure Danny ๐Ÿ™

  14. Seems broken now with latest Woo

    1. Hey Danny, thanks for your comment! I just tested this again with 3.3.1 and it works perfectly. Maybe your theme (or another plugin) is messing/conflicting with my snippet?

      Also, take a look at this tutorial to see how to troubleshoot: https://businessbloomer.com/woocommerce-troubleshooting-mistakes-to-avoid/

      Finally, can you try switching temporarily to “Twentyseventeen” or “Storefront” theme and let me know if it works?

      Hope this helps!


    2. Hi Rodolfo just had some time to revisit this now. I think its probably to do with the fact that I’m using a divi theme shop module and so the code does not apply – I suspect the ‘woocommerce_grouped_price_html’ bit !! ๐Ÿ™‚

      Is there a way of altering the code to apply to this page/template? Your help much appreciated

      Many thanks ๐Ÿ™‚

      1. Hey Danny, thanks so much for your comment! If my snippet work with another theme, then yes, it might be Divi or another plugin that are causing problems. Did you ask Divi for support?

  15. Hi Sir,

    How to work this in product page only, do have any code snippet for this? ๐Ÿ™‚

    Thank you!

  16. Worked for me. Thank you.

  17. Works perfectly !! Thanks

    1. Thank you Miki ๐Ÿ™‚

  18. Hi
    This is working but i want to remove only First Price like ($$$-$$$) in this i want only first price not all.
    thanks for help

    1. Sorry Malik, this is not clear to me. Can you link to a screenshot so I can understand if this is a bug or not? Cheers

  19. thank you, Rodolfo

    the code worked like a charm for me. pasted the code in functions.php in child theme

    1. Excellent, thank you Jagan!

  20. Thank you!

    1. No… thank YOU! ๐Ÿ™‚

  21. This is not working for me, but I have no grouped products, I am using variable products, so I tweaked the snippet, but now the prices show as โ‚ฌ0!!! When I select all the options/variables of the product it gives me a final price, but I would like it to show “from โ‚ฌxxx” xxx being the minimum possible spend…

      1. Thank you so much!! ๐Ÿ™‚ However it still removes the prices on everything that has variable pricing, until selecting the variables and then only shows a small price near “add to cart” button… ?

        1. Hey Reese, is this referring to the variable snippet? If yes please re-post the comment there ๐Ÿ™‚

  22. Hi Rodolo – this is nearly exactly what I’m after. I only want to show the price of the FIRST of the child products on single and category pages. This will also be the

    max( $child_prices ) 

    . Have tried to hack your code but without any luck – do you know if this is possible. Am working localhost so can’t show.

    1. Renee, thanks so much for your comment! Yes, this is possible – but unfortunately this is custom work and I cannot provide a complementary solution here on the blog. I would recommend taking a look at what’s inside $child_prices to see if you can grab the first element of the array ๐Ÿ™‚ Thanks a lot! ~R

  23. Hi Rodolfo,

    Thanks for the article. It’s also not working for me sadly, I have tried both snippets in my functions.php file in my child theme and it nothing changes. The price just show the samething on both the product page and any other page you can view the product (e.g. search, homepage etc..). Price remains the same format like this: “$8.59 โ€“ $9.82”

    Any ideas? Thanks

    1. John, thanks for your comment! It works on my Storefront test website, so maybe this is something related to your theme and/or plugins. If you disable everything but WooCommerce and switch theme, does this work?

  24. this snippet (nr1) doesnt work for me ๐Ÿ™

    1. Thanks for your comment Demian! What doesn’t work – do you get an error? Can you provide a screenshot? Cheers ๐Ÿ™‚

Questions? Feedback? Customization? Leave your comment now!

If you are writing code, please wrap it like so: [php]code_here[/php]. Failure to complying with this, as well as going off topic or not using the English language will result in comment disapproval. You should expect a reply in about 2 weeks - this is a popular blog but I need to get paid work done first. Please consider joining the Business Bloomer Club to get quick WooCommerce support. Thank you!

Your email address will not be published. Required fields are marked *