WooCommerce hide zero value on zero cost shipping methods


  1. That’s the only place I found this solution, huge thanks.

    1. No problem, glad we could help!

  2. Jan

    Is there any way if there are more shipping methods and someany of them has value 0,00 that you can hide the complet shipping method includes the radio button?


    (Rb) shipping 1: 7,00$
    (Rb) shipping 2: 0.00$ (<— hide the complet shipping method)

    1. Hi Jan, I’m not sure without looking deeper into your code. Can you share a link we could take a look at?

  3. Unfortunately this does not work for me. Is it outdated or theme depending? Or do I need to do anything else besides just copy/paste to child theme functions.php?


    1. Hi Lizzy. I just checked and it’s still working for us – with both WooCommerce and WordPress fully updated. So I’m assuming the code is still working.

      Are you testing this locally or in a live production environment. Is there any chance the site could be caching/displaying old files?

  4. Thank you, this saved me a lot of time!

Leave a Reply

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