Combine shipping classes in Flexible Shipping

Learn how to combine shipping classes in Flexible Shipping plugin to use it more efficiently and make more advanced shipping scenarios.
Author Bartosz Gajewski
Updated:
2020-06-04
Reading time:
3 minutes read

Flexible Shipping plugin has a lot of useful features and allows setting up many complicated shipping scenarios. Unfortunately, sometimes it’s just not that simple. In this article, I’ll show you how to combine shipping classes in Flexible Shipping.

If you are reading this article, you are probably familiar with the Flexible Shipping plugin. Maybe you are looking for some solution for your shipping scenario or just want to know more about the plugin itself. Flexible Shipping is a useful table rate shipping plugin that allows you to set shipping costs based on weight, price, number of items, or product category.

Flexible Shipping PRO WooCommerce
99.00

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

View Details or Add to cart
100,000+ Active Installations 30-day money back guarantee
Last Updated: 2024-09-26
Works with WooCommerce 9.0 - 9.4.x

How to combine shipping classes in Flexible Shipping?

Setting shipping costs based on shipping class is the most complex one. The main issue is that, if you set two shipping classes to one rule, it will be called only when products from BOTH shipping classes will be in the cart. In other words, if you add them both to one rule it won’t work as one OR another, but one AND another. This makes it a little more complicated to set up shipping rules for different products and combinations of them.

If you want to learn more about shipping classes, you can read our complete guide about them.

Let me show you an example to make it more clear. If you set the rules like that:

Combine two shipping classes in Flexible Shipping wrong

This rule will be called only when products from BOTH shipping classes “A” and “B” will be in the cart. If it’s only one of them, it will cause the “No shipping method available” message on the checkout page.

The main rule for combining shipping classes correctly

To correctly combine shipping classes from the previous example, you should set a separate rule for each shipping class:

Combine two shipping classes in Flexible Shipping

This will work perfectly for both shipping classes separately. But what if your customer will have products from both of the shipping classes in the cart? I’ll show you how to set a shipping price in that situation. It can be a sum of both shipping costs or different values.

Shipping cost as a Sum of two shipping classes

In that case, the shipping cost will be calculated based on your Rules Calculation set-up. It can be the sum of the rules, the highest cost, or the lower cost.

Flexible Shipping - calculation types

In this example, if you set it as Sum, the shipping cost for combined shipping classes will be $20. The reason for that is, that both rules (for both shipping classes A and B) are called. Both have a $10 shipping price, so as a sum, you’ll get $20.

Different shipping cost for combined shipping classes

You can also set the shipping cost for combined shipping classes as a different value. It’s much more complicated, but still possible with Flexible Shipping. To do that you have to follow these rules:

  • Set a separate rule for each combination of the classes – it will ensure that all the combinations will be calculated correctly as you want.
  • To every rule using two or more shipping classes enable Stop checkbox – This way other rules placed below, won’t be called and the shipping cost calculation will be correct. Remember to apply this rule to only the shipping classes that you are combining. If you have other shipping classes in the shipping method, they will have to be over that stopping rule. In other case, the might be not called.
  • Put the rules in the right order. It’s like a reverse triangle – the most advanced rules (for more shipping classes) should be on the top – Shipping cost in Flexible Shipping plugin is calculated based on the rules in the order of their appearance. So the rules using the largest amount of shipping classes should be on the very top.

That’s enough of the theory. How to use it in your WooCommerce store and don’t make any mistakes in combining shipping classes in Flexible Shipping? Let’s go through a few examples of shipping scenarios.

Combining two shipping classes

First, something simple. For instance, let’s assume that shipping of product A costs $10. Product B is bigger, so shipping it costs $15. Shipping them together in one shipment costs $20.

To make it simpler, product A has a shipping class A, and product B has a shipping class B. It will be the same for all other examples and additional shipping classes. This solution will work only for shipping rules based on Shipping Class (When: Shipping Class). You can use the shipping classes with other options like weight and price, but it will work slightly differently. You can read more about it in our documentation.

An example of combining two shipping classes

Combining three shipping classes

For the second example let’s assume that shipping of product A costs $10. Product B is bigger, so shipping it costs $15. Shipping them together in one shipment costs $20. Shipping cost of product C costs $5, but shipping cost for combining it with product A or/and B will be without additional cost.

An example of combining three shipping classes

You can use one of our Ready to Use Shipping Scenarios.

Summary

Combining shipping classes in Flexible Shipping plugin is a complex case, but with additional explanation, it gets much easier. I hope that this article will be helpful and solve common issues with setting your advanced shipping scenario. Remember that certainly, the most important rule from this article is if you set two shipping classes to one rule, it will be called only when products from both shipping classes will be in the cart.

Comments
Subscribe
Notify of
guest
6 Comments
Inline Feedbacks
View all comments
HSL LAL
HSL LAL
3 years ago

My website has 2 types of products “A” and “B”
cost for shipping “A” item is 7.95$
cost for shipping “B” item is 12.95$
If a customer buys any of the items plus an additional item I want a 1$ charge to be added to the cost.
If a customer buys both “A” and “B” items then the cost should be the cost of the larger item plus 1$

summary is that
i want to add additional 1$ if the quantity is more then 1
how can i do ..

Łukasz Spryszak
Łukasz Spryszak
Reply to  HSL LAL
3 years ago

Hi HSL LAL, the scenario you’ve described can be configured with ease using our Flexible Shipping PRO plugin. Please contact us at https://octolize.com/support/ and we’ll help you with setting it up.

Wagg & Purr
Wagg & Purr
3 years ago

We sell many different products of all shapes, sizes and weights.
I have downloaded the plug in for flexible shipping and set it up based on weights.
In the cart, if 2 of the SAME products are bought, it combines the weights to calculate shipping.
If 2 DIFFERENT products are bought, then it adds the 2 weights separately, rather than combining them meaning the postage charge is too high and off putting.
Is there a way to COMBINE postage for different products please without downloading PRO?

Łukasz Spryszak
Łukasz Spryszak
Reply to  Wagg & Purr
3 years ago

Hi Wagg & Purr, if the shipping cost based on weight varies depending on the product specifics, e.g. the shipping cost based on weight is $15 for product A, but $30 for product B, it would require combining the Weight condition either with Shipping class or with Product category which are available to choose only in Flexible Shipping PRO.

Ben
Ben
2 years ago

Can we give the shipping class for weight-based shipping

Łukasz Spryszak
Łukasz Spryszak
Admin
Reply to  Ben
2 years ago

Hi Ben, sure, using our Flexible Shipping PRO plugin you can easily combine the conditions for shipping cost calculation rules according to your needs. Here you can find a dedicated guide on how to combine the different shipping cost calculation conditions with Flexible Shipping PRO: https://octolize.com/docs/article/1087-flexible-shipping-combining-the-shipping-cost-calculation-conditions

Last edited 2 years ago by Bartosz Gajewski