WooCommerce Free Shipping Over Amount: How to Set It Up and Hide Other Shipping Methods

WooCommerce free shipping over amount
Updated:
2026-11-25
Reading time:
12 minutes read

WooCommerce free shipping over amount gives customers free delivery once their cart reaches a minimum value. It’s one of the most common shipping promotions, but setting it up in WooCommerce involves a few choices that aren’t obvious at first: how the built-in Free Shipping method works, what happens to Flat Rate at checkout, and how to show customers how close they are to the threshold.

In this guide, you’ll find the default setup and its limits, how to hide other shipping methods once the minimum is reached, how to display the remaining amount, and how to choose a threshold that keeps you profitable. At the end, there are troubleshooting tips and answers to common questions.

Key Takeaways

  • WooCommerce has a built-in Free Shipping method with a minimum order amount, but it appears next to Flat Rate instead of replacing it.
  • If Free Shipping has a requirement, add a second method for smaller orders. Without one, customers below the minimum have no shipping option and can’t check out.
  • To show only free shipping, put the cost and the free shipping threshold in one method, for example with the free Flexible Shipping plugin, or hide paid methods with a conditional plugin or a code snippet.
  • The simplest setup is a single method in the free Flexible Shipping plugin. It also lets you add a free shipping bar that shows the remaining amount.
  • Set the threshold at least at your shipping cost divided by your gross margin. 73% of US shoppers have added items to their cart to qualify for free shipping (Ryder 2026).

What Is Free Shipping Over Amount in WooCommerce?

Free shipping over an amount, also called a free shipping threshold, means customers pay for shipping until their cart reaches a minimum value, and then shipping becomes free. It matters because shipping cost is a major reason for abandoned purchases. In Baymard’s research, 40% of US shoppers who abandon a purchase (excluding “just browsing”) cite extra costs such as shipping, taxes, and fees (Baymard Institute, 2026). A threshold also encourages bigger orders: 73% of US online shoppers have added items to their cart to qualify for free shipping (Ryder 2026).

Clearly, free shipping is by far the best tool to boost your sales and attract potential customers. Real money lies over there. Thousands of shops offering weird discounts are actually missing the key to increase the conversion rate. What is most interesting, all the research data points out an astonishing tendency. Online users would still prefer to select an item with free shipping, rather than a discounted item with shipping costs, even if the total value of the cart is still the same!

But it’s important to remember that free shipping isn’t free for you as a merchant, so treat it as part of your pricing.

How Do You Set Up WooCommerce Free Shipping Over an Amount With the Default Method?

WooCommerce includes a Free Shipping method. Add it to a shipping zone and require a minimum order amount.

First, go to WooCommerce → Settings → Shipping and edit the shipping zone where you want free shipping. New to zones? See WooCommerce Shipping Zones Explained.

WooCommerce shipping zone example

Then, click Add shipping method, select Free shipping, and click Continue.

create new WooCommerce shipping method

You’ll see Free Shipping Requires option. It differs the free shipping method in other methods: Flat rate and Local pickup.
The Free Shipping Requires dropdown offers five options:

  • No requirement: free shipping for every order in the zone.
  • A valid free shipping coupon: only customers with a coupon that has Allow free shipping ticked (Marketing → Coupons → Add coupon).
  • A minimum order amount: free shipping once the cart reaches the amount.
  • A minimum order amount OR a coupon: either condition is enough.
  • A minimum order amount AND a coupon: both are required, for example for newsletter-only offers.

default WooCommerce free shipping method requirements

In most common examples, choose A minimum order amount and enter the Minimum Order Amount, for example $200.

Set up default WooCommerce free shipping method

In this window, you can also set the method’s name. When you choose a minimum amount, WooCommerce shows an additional checkbox: Apply minimum order rule before coupon discount. If it’s unchecked, the discounted total counts. For example, with a $20 minimum, a $25 product, and a $10 coupon, the total is $15, so the customer doesn’t get free shipping. If it’s checked, the $25 before the discount counts, and they do (WooCommerce documentation).

When you have everything configured, click the Save zone and method button to confirm.

Don’t skip a second method. If Free Shipping with a minimum amount is the only method in the zone, customers below the minimum see no shipping option and can’t place an order. Add a paid method such as Flat Rate for smaller orders.

Why Does WooCommerce Show Both Free Shipping and Flat Rate?

By default, WooCommerce shows every shipping method that matches the customer and the cart, so Free Shipping appears next to Flat Rate. Take this setup:

  • $10 flat rate shipping
  • free shipping on orders of $200 or more

You add a Flat Rate method ($10) and a Free Shipping method (minimum $200). Below $200, customers see only the $10 flat rate, which is what you want. At $200 or more, they see both Free Shipping and the $10 Flat Rate. Hiding the paid option needs custom PHP code or a plugin, as the WooCommerce developer documentation explains.
WooCommerce checkout with both free shipping and flat rate shipping methods available

Why Should You Hide Shipping Options When Free Shipping Applies in WooCommerce?

Because showing paid options next to free shipping can confuse customers and lead them to pick a more expensive method, which adds friction at checkout. Hiding them helps in three ways:

  • Less confusion. Customers who qualify see one clear option, so they don’t wonder whether the free method is the right one or whether a paid one is faster or better.
  • A simpler checkout. Extra costs are a leading reason for abandoned purchases, as the research above shows. When the free option is the only one on screen, there’s nothing that looks like a cost to hesitate over.
  • Fewer complaints. A customer who picks a paid method by mistake and then notices free shipping was available can ask for a refund or leave a bad review.

You don’t have to hide everything. If you want to sell a paid express option next to free standard shipping, keep it visible and hide only the methods that compete with the free one.

How to Hide Other Shipping Methods When Free Shipping Is Available?

The simplest way to hide other shipping methods when free shipping is available is to put the shipping cost and the free shipping threshold in a single method, so there’s no second method to hide. The free Flexible Shipping plugin lets you do that: orders under the threshold pay your rate, and above it the same method becomes free.

Let me explain how to hide other shipping methods when free shipping is available in a few simple steps. In this example, customers pay $10 for shipping, and shipping is free from $200. I’ll be using the Flexible Shipping plugin – a free table rate plugin with 100,000+ active installations.

Flexible Shipping WooCommerce

The best Table Rate Shipping for WooCommerce. Period. Create shipping rules based on weight, order totals, or item count.

Go to WordPress.orgorDownload for free
100,000+ Active Installations
30-day money back guarantee
Last Updated: 2026-12-01
Works with WooCommerce 11.0 - 11.4.x

Step 1: Install and activate Flexible Shipping

In your WordPress dashboard, go to Plugins → Add New Plugin and search for Flexible Shipping. On WordPress.org, it’s listed as “Weight Based Shipping Table Rate for WooCommerce – Flexible Shipping”.

Install free Flexible Shipping plugin in WordPress

Click Install Now, and then Activate.

You can also download the plugin from WordPress.org and upload it under Plugins → Add New Plugin → Upload Plugin.

Step 2: Add a Flexible Shipping method to your shipping zone

Go to WooCommerce → Settings → Shipping and open the shipping zone that covers your customers, for example “United States”.

WooCommerce shipping zone example

Click Add shipping method, choose Flexible Shipping from the list, and confirm.

choose flexible shipping as a WooCommerce shipping method

The method appears in the zone’s list of methods. Check that its toggle is switched on. A zone can contain as many methods as you want, and if you’re new to zones, see WooCommerce Shipping Zones Explained.

Step 3: Open the method and set the basics

Click the method name to edit it. In Method Title, enter the name customers will see at checkout, for example “Standard shipping”. In Method Description, you can add a short note shown under the title, such as “Free for orders over $200”. You can also add a logo to your WooCommerce shipping method. Then check Tax Status: choose whether shipping is taxable, and tick the option for costs you enter including tax if that’s how you price shipping. For more, see WooCommerce shipping tax.

Flexible Shipping method - general settings

Step 4: Configure the free shipping threshold

Scroll to the Free Shipping section of the method settings. Here you decide when shipping becomes free, what customers see when it does, and how you encourage them to reach the threshold.

  • Free Shipping Requires. Choose Minimum order value. Other requirements, such as a free shipping coupon, are available in the PRO version (see the differences between Flexible Shipping Free and PRO).
  • Free shipping threshold. Enter the cart total at which shipping becomes free, for example 200. Once a cart reaches it, the method becomes free and ignores the cost rules you add in the next step.
  • Free Shipping Label. Enter the text customers see when free shipping applies, for example “Free shipping”. It confirms the reward at checkout.
  • ‘Left for free shipping’ notice (LFFS). Tick Display the notice with the amount left for free shipping to tell customers how much more they need to add. The notice appears in the cart and at checkout, updates as the cart value changes, and its look depends on your theme. If you use plugins that split shipments into packages, the notice won’t be displayed.
  • LFFS notice text. Optionally, write your own message. The default is “You only need %1$s more to get free shipping!”, where the %1$s placeholder displays the amount left. Keep the placeholder in your text, for example “Add %1$s more to your cart and shipping is on us!”.
  • LFFS progress bar. Tick Display the ‘Left for free shipping’ progress bar to add a bar that shows how close customers are to the threshold.

Configure the free shipping threshold in Flexible Shipping plugin
If you use more than one Flexible Shipping method in the zone, enter the same threshold in each of them, because the notice appears regardless of the method the customer chooses. For details on the notice, including where it appears and how to customize it, see How to display the remaining amount to free shipping in WooCommerce.

Step 5: Add the shipping cost for orders under the threshold

Scroll down to the Shipping cost calculation rules table and click Add rule. In When, select Always. This applies the rule to every cart, so every order under the threshold pays the same fixed cost. In rule cost is, enter 10. Click Save changes. If you’d rather charge by weight or cart total, replace this rule with weight or price rules (see the weight-based shipping tutorial).

Shipping Cost Calculation Rules with Flat Rate

Return to the zone’s list of methods. Switch off, or delete, the old Flat Rate and the default Free Shipping methods. If you leave them, they’d still appear next to the new method, which is the problem you’re solving. If you have several zones, repeat steps 2–5 for each one, or use the Duplicate link under the method name to copy the method, with its settings, to another zone and adjust the amounts.

Step 6: Remove the old Flat Rate and Free Shipping methods

Return to the zone’s list of methods. Switch off, or delete, the old Flat Rate and the default Free Shipping methods. If you leave them, they’d still appear next to the new method, which is the problem you’re solving. If you have several zones, repeat steps 2-5 for each one, or use the Duplicate link under the method name to copy the method, with its settings, to another zone and adjust the amounts.

Step 7: Test the cart

Add a product worth less than $200 to the cart, enter an address that belongs to the zone, and open the cart and checkout. You should see one method, “Standard shipping”, at $10. Add products until the cart reaches $200: the same method now shows as free, with your label. Test a cart just below, exactly at, and just above the threshold. If you use a caching plugin, exclude the cart and checkout pages from page caching. If you enabled the notice and the progress bar, check that they appear below the threshold and update as you add products.

If the method doesn’t show as expected, enable Debug Mode in previously configured shipping zone to see why a method was or wasn’t displayed.

Prefer to watch?

Other Ways to Hide Shipping Methods

If you already have shipping methods you don’t want to rebuild, you can hide the paid ones with a conditional shipping plugin such as Conditional Shipping Methods (an Octolize plugin), or with a short code snippet that uses the woocommerce_package_rates filter, as shown in the WooCommerce developer documentation. The single-method setup above is simpler, because there’s nothing to hide in the first place.

Option Best for Cost Rebuild your methods? Free shipping bar
One method in a table rate plugin (Flexible Shipping) New or simple setups; the simplest option Free version Yes, in one method Yes, built in
Conditional Shipping Methods Existing methods, including native Free Shipping Paid No No
PHP snippet Stores with a developer Free No Needs extra code

How Do You Show Customers How Much Is Left for Free Shipping?

Add a free shipping bar: a message in the cart and checkout that tells customers exactly how much more they need to spend to get free shipping. It’s one of the easiest ways to encourage bigger orders, because customers see how close they are to the reward. The free Flexible Shipping plugin includes this option in the same method where you set the threshold. We describe how to turn it on and customize it in a separate guide: How to display the remaining amount to free shipping in WooCommerce.

How Do You Choose the Right Free Shipping Threshold?

Set it at least at your shipping cost divided by your gross margin, and ideally a little above your average order value. Below the break-even value, every free shipping order loses money before other costs. For example, $12 of shipping at a 25% margin means a break-even of $48. A threshold slightly above your average order value gives customers a reason to add one more item.

What Other Free Shipping Scenarios Can You Set Up?

A table rate plugin lets you go beyond a single threshold:

Learn more in our complete WooCommerce free shipping guide.

Troubleshooting

  • Customers below the minimum can’t check out. Free Shipping with a requirement is the only method in the zone. Add a paid method.
  • Both methods show up. WooCommerce shows every matching method. Use the single-method setup above.
  • The minimum isn’t reached when a coupon is used. Check the Apply minimum order rule before coupon discount checkbox (native method).
  • The threshold doesn’t match the cart total. Check whether your store displays prices with or without tax (WooCommerce → Settings → Tax → Display prices during cart and checkout), and the Cart Calculation setting in Flexible Shipping if you sell virtual products.
  • Free shipping doesn’t appear. Check that the customer’s address matches the zone you configured, and that the zone order is correct.
  • The “Left for free shipping” notice doesn’t appear. Check that the threshold is set, and that no plugin splits the shipment into packages, because the notice isn’t displayed then.
  • No shipping method appears just below the threshold. If you use price or weight rules instead of an Always rule, make sure they cover every cart up to the threshold, with no gap (for example, a rule ending at 199.99 for a $200 threshold).

WooCommerce Free Shipping Over Amount: Frequently Asked Questions

How do I set up free shipping over an amount in WooCommerce?

Add the Free Shipping method to a shipping zone and set “Free Shipping Requires” to “A minimum order amount”. Enter the amount and save. Add a second method, such as Flat Rate, for orders below the minimum.

How do I hide Flat Rate when free shipping is available?

WooCommerce shows both by default. The simplest way is one method in the free Flexible Shipping plugin, which holds both the cost and the free shipping threshold. You can also use the Conditional Shipping Methods plugin with the action “Hide all paid shipping methods”, or a snippet that keeps only the free_shipping rate.

Why does WooCommerce show both free shipping and flat rate?

WooCommerce displays every shipping method that matches the customer and the cart. Hiding the others requires custom PHP code or a plugin.

Can I set free shipping over an amount without a plugin?

Yes. The built-in Free Shipping method supports a minimum order amount. A plugin or code is only needed to hide Flat Rate and other paid methods when free shipping applies.

How do I show customers how much is left for free shipping?

Use a free shipping bar. The free Flexible Shipping plugin includes it in the method where you set the threshold, and the setup is described in our guide on how to display the remaining amount to free shipping.

What happens if the cart is below the free shipping minimum?

The customer can only choose the other methods in the zone. If Free Shipping is the only method, they see no shipping option and can’t check out, so always add a paid method.

Does the minimum apply before or after coupon discounts?

In the native method, it depends on the Apply minimum order rule before coupon discount checkbox. Unchecked, the discounted total counts. Checked, the total before the coupon counts, and the discount is still applied.

Can I offer free shipping and a paid express option?

Yes. Keep the express option as a separate method that’s always available, for example a Flat Rate or a second Flexible Shipping method with an Always rule. If you hide paid methods with a plugin or a snippet, make sure it doesn’t hide the express option you want to keep.

Can I set different free shipping thresholds for different countries?

Yes. Create a shipping zone for each region and set a different free shipping threshold in the method of each zone. Use the Duplicate link to copy a method to another zone. For scenarios that combine other conditions or methods from other plugins, you may need Flexible Shipping PRO.

Is it possible to show free shipping and in-store pickup together?

Yes. Add pickup as a separate method, such as Local Pickup, so it’s displayed all the time, whether or not the threshold is reached. Don’t hide it with a rule that hides paid methods.

Why should I hide paid shipping methods when free shipping appears?

Because several options next to free shipping can confuse customers and lead them to pick a paid method even though they qualify for free delivery. A clear checkout also reduces hesitation and the chance of refund requests. If you want to sell a paid express option, you can keep it visible and hide only the competing methods.

Next Steps

Whichever option you choose, test the cart just below and just above your threshold, and check the checkout on mobile. If you want the simplest setup, install the free Flexible Shipping plugin and add a free shipping bar. If you already have shipping methods you don’t want to rebuild, see Conditional Shipping Methods.

Content Writer at Octolize

Bartosz Gajewski is a content and marketing specialist with a solid background in SEO, WordPress content strategy, and technical documentation for digital products. With years of hands-on experience in both in-house and freelance roles, he supports tech companies – especially in the SaaS and e-commerce space – by creating content that informs, engages, and drives results.

His approach blends storytelling with data-driven SEO, and he’s been involved in projects ranging from rebranding and product marketing to growth experiments and copywriting for complex software tools. On the blog, he shares actionable insights from his work across marketing teams, product documentation, and online store optimization.

Comments
Subscribe
Notify of
guest
56 Comments
Rajesh Shethia
Rajesh Shethia
6 years ago

i am using flexible shipping plugin but when the order amount is above the free threshold limit despite the payment getting through it shows the message ” Security Error. Illegal access detected. Please proceed to pay again” on returning to checkout page

Łukasz Spryszak
Łukasz Spryszak
Reply to  Rajesh Shethia
6 years ago

Hi Rajesh, to be honest it’s the first time we are notified about such problem and it’s pretty odd since our Flexible Shipping plugin shouldn’t affect the payment gateway mechanisms in any terms. Please contact our support and we will try to figure out what’s wrong and what may be responsible for such behaviour.

Cor Brink
Cor Brink
6 years ago

Is it possible to have 2 free shipping scenarios based on the product category? I want to have free shipping above x spent in category a and free shipping above y spent in category b. And in mixed categories the higher value applies. Is this possible?

Łukasz Spryszak
Łukasz Spryszak
Reply to  Cor Brink
6 years ago

Hi Cor, yes, it should be possible to configure using our Flexible Shipping PRO plugin and WooCommerce shipping classes.

Elnorz International
Elnorz International
6 years ago

I need to add free shipping to orders of four or more items. How do i do this?

Łukasz Spryszak
Łukasz Spryszak
Reply to  Elnorz International
6 years ago

Hi Elnorz International, have you tried creating creating a rule based on Item quantity and simply setting its cost to 0 this way? [Image no longer available]

Danny Foo
Danny Foo
6 years ago

The snippet doesn’t seem to be working for me – WC 4.1+

Tested on 2020 theme, but still both shipping methods and showing. Hmm..

Danny Foo
Danny Foo
Reply to  Danny Foo
6 years ago

Got it working. Found a thread on StackExchange which mentioned having to do this:

Refresh the shipping caches: (required)
In a shipping zone settings, disable / save any shipping method, then enable back / save.

There’s an alternative suggestion which I haven’t tried;
WooCommerce > Status > Tools > Clear customer sessions

László Andor
László Andor
6 years ago

Hi Lukasz,

Can you help me please? I set the Free Shipping minimum amount to 20000. The rules are:
1. Price based: 1- 3500 Shipping fee 1600
2. Price based: 3501 – 19999 Shipping fee 2000

Until I get the free shipping threshold everything works fine, but when the total order amount exceeds 19999 it says there are no shipping methods. What can be wrong?

I have only Flexible Shipping method set up for one zone.

László Andor
László Andor
Reply to  László Andor
6 years ago

Ahhhh, never mind! 😀 I figured it out.
If I delete the Free Shipping minimum amount and add a new price based rule that says:
above 19999 the Shipping fee is 0, then it works fine 🙂

Satyabrata Ganguli
Satyabrata Ganguli
6 years ago

What if I need to show Flat Rate and Local Pickup option and the Flat rate becomes Free Shipping when a free shipping coupon is used?

Łukasz Spryszak
Łukasz Spryszak
Reply to  Satyabrata Ganguli
6 years ago

Hi Satyabrata, it can be easilly achieved using our Flexible Shipping PRO plugin and its Free Shipping Requires: Free shipping coupon option: [Image no longer available]

Robert Alexander
Robert Alexander
6 years ago

Thank you so much for your great writeup!!! I would love to read something like to to show a “Spend another XYS Euros to enable free shipping!!!” banner on top of the cart.

Łukasz Spryszak
Łukasz Spryszak
Reply to  Robert Alexander
6 years ago

Hi Robert, we’ve just released the update for the free version of our Flexible Shipping plugin containing exactly this feature. Once this checkbox is ticked: [Image no longer available] the notice will be displayed in the cart and on the checkout page this way: [Image no longer available]

Ivor Watkiss
Ivor Watkiss
6 years ago

Hi,
I offer a number of items as Flat Rate, but with large quantity orders sometimes the accumulated postage fee is an absurdly large amount. I can’t offer Free Shipping over any amount. I want to set and charge a maximum postage fee per order. I have done this, but both postage amounts appear in the checkout and the customer needs to click one of the radio buttons. Could you please tell me how do I get just the one valid shipping value to appear? TIA.

Łukasz Spryszak
Łukasz Spryszak
Reply to  Ivor Watkiss
6 years ago

Hi Ivor, I believe in your case instead of using two separate WooCommerce default shipping methods (Flat Rate & Free Shipping) you should replace them with one shipping method handled by our Flexible Shipping plugin. Then, you will be able to define not only the shipping cost calculation rules based on Item quantity, but the maximum postage fee per order using the Maximum Cost option as well.

[Image no longer available]

Ivor Watkiss
Ivor Watkiss
Reply to  Łukasz Spryszak
6 years ago

Thank you for confirming.

Sandis
Sandis
6 years ago

What about different currencies? £200 and 200 rupees is way big difference.

Łukasz Spryszak
Łukasz Spryszak
Reply to  Sandis
6 years ago

Hi Sandis, if you are using the currency switcher in your shop I suppose you should add some additinal conditioning resulting in using the proper shipping method with free shipping threshold set depending on which currency is currently active.

Julian
Julian
6 years ago

Hi There,

I am trialling your pro plugin and trying to replicate the following scenario:

For a specific shipping class:

if cart total equals $69.00 and weighs less than 5kg = Free shipping and/or
if cart total equals $89.00 and weighs less than 10kg = Free Shipping

otherwise
0-2kg $4.50
2-5kg $6.00
5-10kg $8.50

Can I achieve this in with the pro plugin? I have tried a lot of different options but don’t seem to be able to get it to work…..

Łukasz Spryszak
Łukasz Spryszak
Reply to  Julian
6 years ago

Hi Julian, yes I believe our Flexible Shipping PRO plugin should be able to handle such scenario. In order to configure it, you will need to split the whole scenario into 3 separate shipping methods and set so called ‘filtering rules’ hiding the other methods if the specific condition has not been met.

Kiran Wicksteed
Kiran Wicksteed
5 years ago

Is it possible to exclude certain products from the amount threshold? I have a certain category of products that I don’t want to offer free shipping for. Prices of these products should be subtracted from the total. Any idea if this is doable?

Łukasz Spryszak
Łukasz Spryszak
Reply to  Kiran Wicksteed
5 years ago

Hi Kiran, I believe in such case your free shipping should come from the rule’s calculation cost ($0), not from Free shipping option. If it comes from the rule, you will be able to set which products should be included and which not. If you set e.g. such rule granting the free shipping above $200 for all the products with shipping class assigned and add the second one as on the screenshot below:

[Image no longer available]

the $0 will be applied only for the products with the shipping class. The ones without the shipping class assigned (Shipping Class: None) won’t be considered during the shipping cost calculation and will be excluded.

Ryan Schofield
Ryan Schofield
5 years ago

Hi, say I have free shipping for orders over £50. I also have a 20% off coupon. so say somebody has ordered products to total 58, they the use the coupon taking it down to 48.40 (roughly!) I want it to give the free shipping as original cost was over 50.

I set up an additional rule saying ‘if cost is minimum of 40 AND a coupon is used, give free shipping. the trouble is, it gives both free shipping options at checkout.

I believe woocommerce v4.0 and above includes this as an option but i cannot upgrade woocommerce for the life of me.

PLEASE HELP!!

Łukasz Spryszak
Łukasz Spryszak
Reply to  Ryan Schofield
5 years ago

Hi Ryan, I believe this option available in our Flexible Shipping PRO plugin might be the exact solution you are looking for: [Image no longer available]

MC
MC
5 years ago

if i have 2 delivery options, all shipping to the same country, option 1 charges flat rate as $10, but free if order amount over $200; option 2 charges flat rate as $15, but free if order amount over $300; can this plugin “Flexible Shipping ” help? Thanks

Łukasz Spryszak
Łukasz Spryszak
Reply to  MC
5 years ago

Hi MC, yes, I confirm, our Flexible Shipping plugin should handle such scenarion with ease.

Paul G
Paul G
5 years ago

Hi there,

How about if you want to have free shipping plus expedite shipping available too?

I tried different scenarios and couldn’t figure it out. Do I need the paid version for that to work?

The flat rate and free shipping works but I also want my customer to have the option to pay for expedite shipping.

Thoughts?

Thanks – Paul G

Łukasz Spryszak
Łukasz Spryszak
Reply to  Paul G
5 years ago

Hi Paul G, it sounds like simply having the two separate shipping methods running simultaneously should do the job.

Paul G
Paul G
Reply to  Łukasz Spryszak
5 years ago

Hi there (coudnl’t tag your username),

I tried that but the free shipping option goes away and the customer is force to do the expedite shipping only.

Not sure why but I created two separate shipping methods. two different flexible shipping methods and also one flexible and one regular (from woo) and still same issue.

Thanks for any help in advance.

Best,

Paul G

Łukasz Spryszak
Łukasz Spryszak
Reply to  Paul G
5 years ago

Paul G, could you please describe how exactly these two methods should depend on each other? The standard shipping should become free e.g. after reaching the defined order total price and the expedite shipping should be always available to pick, they should be hidden or should it be handled another way?

Paul G
Paul G
Reply to  Łukasz Spryszak
5 years ago

Hi there,

I figured it out.

Paul G
Paul G
Reply to  Paul G
5 years ago

I think I figured it out. I had to put the conditions on flexible shipping to be “always” = $5.99 rather than ‘price’. I thought price was for the overall order and not the price of the product. I think that was the issue.

Thanks it works now.

Łukasz Spryszak
Łukasz Spryszak
Reply to  Paul G
5 years ago

Hi Paul G, I’m glad to hear you were able to solve this out. The Price condition refers always to value of the products in the cart or the specific products’ shipping classes if used.

Paul G
Paul G
Reply to  Łukasz Spryszak
5 years ago

Thank you!

ALYAARI ADNAN
ALYAARI ADNAN
5 years ago

thanks alot.

Fx Resources
Fx Resources
5 years ago

Neither the snipet nor the plugin worked. The screen above is nowhere to be found when I downloaded the plugin

Łukasz Spryszak
Łukasz Spryszak
Reply to  Fx Resources
5 years ago

Hi Fx Resources, could you please clarify which settings’ screen exactly you weren’t able to localize? Knowing this I believe I will be able to help you and provide you with the proper information where to find it.

Giovanni Caridi
Giovanni Caridi
5 years ago

Hello,
I created 10 shipping classes and I want assign a free shipping threshold logic for each one.
For example: if customer’s cart amount for shipping class n°1 is above the threshold the shipping rate will be free and if in the cart there are also products of class n°2 with an amount below the threshold the shipping cost will be 6€.
Can I set this rule with one of your plug in?

Thanks for support,
Giovanni

Łukasz Spryszak
Łukasz Spryszak
Reply to  Giovanni Caridi
5 years ago

Hi Giovanni, yes, I confirm that our Flexible Shipping PRO plugin should be able to handle the scenario you’ve described.

Kathleen
Kathleen
5 years ago

Can I add another method to show still if over an amount in addition to Free Shipping to include an “in store pick-up option”? Using the functions.php code edit option?

Łukasz Spryszak
Łukasz Spryszak
Reply to  Kathleen
5 years ago

Hi Kathleen, I believe that it can be achieved simply by adding one more shipping method handled e.g. by WooCommerce default Flat Rate or Flexible Shipping which will be displayed simultaneously all the time, no matter if the free shipping threshold was reached.

miri
miri
5 years ago

I want to use the code you gave,
But after I insert it into the function file
He writes me such a note:
It is not possible to communicate with the site to check for serious errors, so the change in PHP was canceled and the code was restored. The PHP file should be uploaded with the changes by other means, such as using SFTP.

what can be done?

Łukasz Spryszak
Łukasz Spryszak
Reply to  miri
5 years ago

Hi Miri, have you checked if the snippet was added to the functions.php file properly, without the opening <php? code fragment at the beginning? If not and if it the opening code fragment was pasted by mistake as well it might result in php syntax errors you’ve mentioned. If removing it won’t solve the problem you can also try adding the snippet above via Code Snippets plugin or similar one.

Sarah
Sarah
5 years ago

Hi! Is the “left to free shipping notice” and the “hide paid shipping” applicable for minimum spent rules for different countries?

Here is the example:

  1. UK & EU buyers will get Free Shipping for orders above $99,
  2. US & AU buyers will get Free Shipping for orders above $59,
  3. Free shipping for Asia with no minimum order.

Will subscribing to Flexible Shipping PRO enough to get me these features? Or do I need to subscribe to the bundle?

Looking forward to your response. Thank you.

Łukasz Spryszak
Łukasz Spryszak
Reply to  Sarah
5 years ago

Hi Sarah, the scenario you’ve described should be possible to configure either with the Flexible Shipping PRO plugin only if all of the shipping methods in your shop are handled by Flexible Shipping or with Flexible Shipping PRO combined with Conditional Shipping Methods if you are also using other shipping methods, e.g. WooCommerce defaults or the ones coming from 3rd party plugins and want them to be hidden as well once the free shipping threshold is reached.

Last edited 4 years ago by Bartosz Gajewski
Mariah
Mariah
5 years ago

First, thanks a million for this article. I got “free shipping” to hide for orders under $30, but once the order hits 30 both shipping options appear. Website is http://www.pandantealeaf.com.

Łukasz Spryszak
Łukasz Spryszak
Reply to  Mariah
5 years ago

Hi Mariah, that’s because you are using 2 WooCommerce default shipping methods to handle this scenario – Flat rate and Free shipping. Unfortunately, the Flat rate cannot be hidden by default under specific circumstances since it doesn’t have such functionality in-built. I believe that the better option here, instead of using 2 separate shipping methods, would be configuring it all with only one Flexible Shipping method with $30 free shipping threshold set. If configured this way, it will work the same way as the Flat rate before and the shipping cost will be $3, but once the cart value reaches the $30 the shipping will become free. All handled by only one Flexible Shipping method and using only its free version available to download here: https://wordpress.org/plugins/flexible-shipping/.

simon barclay
simon barclay
5 years ago

Perfect! thankyou! its great to find copy and paste solutions, saves a lot of thinking and trial and error, love programming in WordPress but very time consuming…..

Hatul
Hatul
4 years ago

Thanks, Your code is helped me.

Łukasz Spryszak
Łukasz Spryszak
Reply to  Hatul
4 years ago

Hi Hatul, you’re welcome. We’re glad to hear it was helpful in your case.

Istvan
Istvan
4 years ago

Hi there,

I really appreciate this code snippet! I’ve checked quite a lot pages to find the real solution for my problem. I’ve also made a little modification in order to include in the modified list the local_pickup possibility as well:

/**
 * 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();
	
	$is_free_available = false;


	foreach ( $rates as $rate_id => $rate ) {
		if ( 'free_shipping' === $rate->method_id ) {
		    $is_free_available = true;
		}
	}
	
	if ( $is_free_available === true ) {
	
    	foreach ( $rates as $rate_id => $rate ) {
    		if ( 'free_shipping' === $rate->method_id || 'local_pickup' === $rate->method_id )  {
    			$free[ $rate_id ] = $rate;
    		}
    	}
	}


	return ! empty( $free ) ? $free : $rates;
}


add_filter( 'woocommerce_package_rates', 'my_hide_shipping_when_free_is_available', 100 );
Łukasz Spryszak
Łukasz Spryszak
Admin
Reply to  Istvan
4 years ago

Hi Istvan, it’s great to hear that it turn out to be helpful in your case and thank you very much for your contribution : )

Amogh Gupta
Amogh Gupta
2 years ago

Just wow but thing I am stuck for is I want either my customer can get free ship on certain cart value or they can get coupon discount at whatever cost not both at same time as I want to disable one for another simply but how can I do that? Please help.

Łukasz Spryszak
Łukasz Spryszak
Admin
Reply to  Amogh Gupta
2 years ago

Hi Amogh, just to make sure if I got everything right – you want to offer your customers the free shipping automatically once they reach a certain cart value threshold but they should also have the free shipping granted when they apply the free shipping coupon, even when their cart value is below the threshold – is that correct?

Amogh
Amogh
Reply to  Łukasz Spryszak
2 years ago

Thanks for the reply, will check on it surely

Check out our case studies

Kurzgesagt x Octolize Shipping Rates Rules & Zones Shopify app case study
Kurzgesagt

Learn how Octolize helped Kurzgesagt, the online shop behind one of YouTube’s most popular science channels, set up conditional courier rules using the Shopify Shipping Rates Rules & Zones app.

Castle Sefton Press featured image
Castle Sefton Press

Learn how Octolize solutions helped WooCommerce store based in the United Kingdom set up shipping scenarios.

Case study Metuchen
Metuchen Mower

Learn how Octolize helped Shopify store based in the USA set up distance based rates with a usage of Octolize Distance Based Rates.