Flexible Shipping PRO - Disable or hide the shipping method

Case study

Let's assume you are running a shop and use the shipping cost calculation rules based on weight. The shipping company you've signed a contract with does not allow the package to exceed 70 kg. What's more you've decided not to ship your products if the number of items in the cart is equal or over 15.

How to configure such a scenario where the shipping cost is calculated based on weight and hide the shipping method if the products' total weight is higher than 70 kg or the item quantity equals or exceeds 15?

Plugin configuration

  1. Add the shipping cost calculation rules based on Weight and define their ranges and pricing. For the purposes of these guide we will create 3 new weight-based rules. Set them the way described below:

If you already have your own rules configured, please proceed straight to the step #2.

  • 1st rule:

    • When: Weight
    • to: 5
    • rule cost is: 7
  • 2nd rule:

    • When: Weight
    • is from: 5.001
    • to: 10
    • rule cost is: 15
  • 3rd rule:

    • When: Weight
    • is from: 10.001
    • rule cost is: 30
  1. Create a rule based on Weight and set:

    • When: Weight
    • is from: 70
    • Special action: Cancel
  2. Add one more rule, but based on Item this time and set:

    • When: Item
    • is from: 15
    • Special action: Cancel
  3. Move the rules you've just created in step #2 and #3 to the very top of the rules table.

Disable or hide the Flexible Shipping shipping method

Result

When your customer places an order and the summed up weight of the ordered products is less than 70 kg and the order contains 14 items or less, the shipping cost will be calculated based on weight. However, when the summed up weight of the ordered products exceeds 70 kg or the order contains 15 products or more, this shipping method will be automatically hidden, e.g.:

  1. If he orders 3 products and their summed up weight is 9 kg, the shipping cost is $15.
  2. If he orders 5 products and their summed up weight is 75 kg, this shipping method dissappears from the cart/checkout and it's unavailable to choose.
  3. If he orders 20 products this shipping method remains hidden, not being available to select as well.

Wondering how it will work live?

Test it in our DEMO or Buy the plugin

Still need help? Contact Us Contact Us