Octolize shipping plugins for every scenario

Shipping illustration Explore plugins

WooCommerce Cart-Based Shipping – How to Set Up

WooCommerce Cart Based Shipping
Updated:
2025-09-12
Reading time:
3 minutes read
Category:
Blog

Introduction

When WooCommerce’s built‑in methods (Flat Rate, Free Shipping, Local Pickup) aren’t flexible enough, cart‑based shipping can step in. This article shows, step by step, how to set it up with the Flexible Shipping plugin—building rules by weight and order value (free), by item and cart line counts (PRO), and even by location with the Flexible Shipping Locations add‑on—so you can fine‑tune delivery rates to match your store’s real costs.

Cart-Based Shipping – the basics

Out of the box, in WooCommerce, you can configure some simple shipping methods, including flat rate, free or local shipping. They are very basic and allow you to set up a fixed fee for shipping, and that’s it.

However, most shops need more options based on cart contents, for example:

  • weight-based shipping,
  • totals based shipping,
  • item-based shipping (number of products or cart line items),
  • and finally, location-based shipping.

This is not possible with the shipping methods built into WooCommerce.

How to configure shipping costs based on cart contents

When you need any of the above shipping rules, our Flexible Shipping plugin comes in handy. First of all, in the free version, you will be able to configure shipping costs based on weight and totals.

Furthermore, in the PRO version, you will also get rules based on the number of items or cart line items. And finally, when you extend it with Flexible Shipping Locations, you will be able to set advanced rules based on locations, including zip codes.

Flexible Shipping Locations WooCommerce
$39.00

Extend Flexible Shipping with custom locations and create shipping costs based on weight, order totals or item count.

View Details or Add to cart
Plugins used by 245,738+ shops
30-day money back guarantee
Last Updated: 2025-08-11
Works with WooCommerce 9.7 - 10.2.x

As a result, you get a complete tool for creating advanced shipping in WooCommerce. Let me show you in the screenshot below:

What Flexible Shipping rules can be based on
Flexible Shipping PRO rules configuration

Shipping rules can be based on (When):

  • Always – select for a fixed fee.
  • Price – based on cart total. If a shipping class is assigned to this rule cart total will apply only to products from this class.
  • Weight – based on the total weight of the cart contents.
  • PRO Item – based on the number of items in the cart,
  • PRO Cart line item – based on the number of cart line items.
  • PRO Shipping Class – based on the shipping class assigned to the product.

Examples:

  • Product A: 10 items, weight 1 kg, price $1
  • Product B: 2 items, weight 2 kg, price $2

Check out our video about one of the main features of Flexible Shipping – Weight-Based Shipping.

 

Conclusion

WooCommerce shipping is very basic out of the box; therefore, you can use a plugin to extend its options. You will find a complete configuration guide of the Flexible Shipping plugin in our docs. You will be able to create shipping rules based on weight, price (free) and number of products, cart line items or shipping classes (PRO).

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: 2025-08-27
Works with WooCommerce 9.7 - 10.2.x

FAQ

What is cart‑based shipping in WooCommerce?

  • It’s calculating shipping from what’s in the cart—like weight, order total, item quantity, or location—instead of using a single flat fee.

Does WooCommerce support this natively?

  • Not fully. Core WooCommerce only offers simple methods (e.g., flat rate, free, local), so advanced cart‑driven rules require a plugin.

Which plugin does the article recommend?

  • The article uses Octolize’s Flexible Shipping (table‑rate style) to build cart‑based rules.

What can I do with the free vs. PRO version?

  • Free handles rules based on weight and order total; PRO adds conditions for item count, cart line items, and shipping class.

Can I target rates to a specific shipping class?

  • Yes—assign a shipping class and price condition to the rule; then a price applies only to products in that class.

How do I set ZIP/postcode‑based or regional rates?

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
0 Comments
Inline Feedbacks
View all comments