How can we improve WooCommerce?

Hide specific shipping method if free shipping is available

Make it possible in the free version to hide specific shipping methods when free shipping becomes available. Right now you can either hide all other shipping methods if free shipping is available or you can show all shipping methods. But if you want to only hide one specific shipping method when free shipping is available you can't do that.

232 votes
Vote
Sign in
(thinking…)
Sign in with: facebook google
Signed in as (Sign out)
You have left! (?) (thinking…)
Anonymous shared this idea  ·   ·  Flag idea as inappropriate…  ·  Admin →

39 comments

Sign in
(thinking…)
Sign in with: facebook google
Signed in as (Sign out)
Submitting...
  • mike commented  ·   ·  Flag as inappropriate

    we need this! i used wc hide shipping but it also hides other pick up location and only shows the first pickup location.

  • Anonymous commented  ·   ·  Flag as inappropriate

    would love to have this as an option as customers are continually selecting another shipping method even though there is free shipping over a certain money amount and I spend my time refunding them. It is confusing. Thank you.

  • Sean Poynter Smith commented  ·   ·  Flag as inappropriate

    I'd like to see this functionality considered.

    These are the rules that run during the shipping/cart/checkout process
    Shipping Method available: Free Express Service
    Hide: Express Service

    Shipping Method available: Free Standard
    Hide: Standard

    Shipping Method available: Free Economy
    Hide: Economy

    Shipping Method available: Free Plain Standard
    Hide: Plain Standard

  • Bob commented  ·   ·  Flag as inappropriate

    please make other shipping options go away when free shipping is available. thanks

  • Anonymous commented  ·   ·  Flag as inappropriate

    free shipping made automatic please!!!! enable this as an option asap. Its one of the most common selling options to increase sales. FFS

  • Anonymous commented  ·   ·  Flag as inappropriate

    Not having this is confusing to customers, but the function will need to be selective. For example, it shouldn't hide the Local Pickup option.

  • Anonymous commented  ·   ·  Flag as inappropriate

    It would be nice to have a check box that we can select that would turn off specific shipping methods when free shipping is available. It would reduce confusion for our customers. Thanks!

  • Lyndon Roeller commented  ·   ·  Flag as inappropriate

    This should be built into core and shown as a checkbox option in settings.

    Please, our functions.php file is drowning in Woo snippets ; )

  • Anonymous commented  ·   ·  Flag as inappropriate

    Yes this would be great. It IS easy to just add the snippet into your functions.php file (which is what I've done), but that gets tiresome if you update your theme and have to go back in and re-add code.

  • Anonymous commented  ·   ·  Flag as inappropriate

    I've had my store some months now and just assumed that as I had set up free shipping for orders over a certain value that no other shipping option would be shown. I have since discovered this isn't the case. Surely this is a simple fix that could easily be done in house to make things more simple for us novice shop builders.

  • Edwin Hamers commented  ·   ·  Flag as inappropriate

    /**
    * Hide shipping rates when free shipping is available.
    * Updated to support WooCommerce 2.6 Shipping Zones.
    *
    * @param array $rates Array of rates found for the package.
    * @return array
    */

    function my_hide_shipping_when_free_is_available( $rates ) {
    $free = array();
    foreach ( $rates as $rate_id => $rate ) {
    if ( 'free_shipping' === $rate->method_id ) {
    $free[ $rate_id ] = $rate;
    break;
    }
    }
    return ! empty( $free ) ? $free : $rates;
    }
    add_filter( 'woocommerce_package_rates', 'my_hide_shipping_when_free_is_available', 100 );

  • Johan commented  ·   ·  Flag as inappropriate

    Please, for the love of all that is holy, hide any radio buttons and/or other shipping options when a "Free Shipping coupon is activated"!
    Now our customers get really confused and some believe we are trying to scam them into paying shipping even though they have a valid Free Shipping coupon!

← Previous 1

WooCommerce: Category - Shipping Methods

Feedback and Knowledge Base