How to Add Vendor-Specific Shipping Rules and Zones in WooCommerce Marketplaces
Vendor shipping in WooCommerce marketplaces: how zones, vendor methods and split shipments work in Dokan, WCFM, WC Vendors and MultiVendorX, and when custom shipping code is needed. Checked 15 November 2026.

Vendor shipping in a WooCommerce marketplace works when three things line up: WooCommerce shipping zones decide where a customer’s address lands, the marketplace plugin adds a vendor-owned shipping method to each zone, and each vendor then sets their own rates inside those zones. Dokan, WCFM Marketplace, WC Vendors and MultiVendorX all follow that pattern, with different menus and different limits. Custom code is only needed when the plugin cannot split the cart the way your business ships. We checked every setting name below against the vendors’ own documentation and the WooCommerce source on 15 November 2026.
People reach this page with searches like “woocommerce shipping rules app”, “multi-origin shipping widget for woocommerce” and “woocommerce_package_rates”. Behind those sit four practical questions: how a vendor sets a rate, how a cart with three vendors becomes three shipments, where each parcel ships from, and what to do when the plugin’s options are not enough. We answer them in that order. If you are still choosing a marketplace plugin, start with our comparison of WooCommerce multivendor and marketplace plugins and come back here once you have picked one.
This guide stays on shipping rules. Vendor sign-up and verification is covered in our guide to automating vendor onboarding, and writing a brand new rate calculator is covered in the custom WooCommerce shipping methods developer guide. We link to both rather than repeat them.
How does WooCommerce ship a cart that holds several vendors?
By default it does not. WooCommerce builds one shipping package from every item in the cart that needs shipping, calculates rates for that single package, and shows one choice list. A marketplace plugin changes that by splitting the package so each vendor gets their own shipment and their own rate list. Nothing about this is vendor-specific in WooCommerce itself, so the split is the part you are really configuring.
In the current WooCommerce source (stable tag 11.3.0 on 15 November 2026), the cart builds that default package in WC_Cart::get_shipping_packages(). The package carries the items to ship (contents), their cost (contents_cost), applied coupons, the user, the destination address and the cart subtotal. The result then passes through the woocommerce_cart_shipping_packages filter, which is where marketplace plugins and custom code add more packages. If a cart ends up with more than one package, WooCommerce names them “Shipment 1”, “Shipment 2” and so on, and the woocommerce_shipping_package_name filter lets you change those labels.
Each package then gets its rates from the shipping methods in the zone that matches the customer. WooCommerce runs the matching methods, merges their rates, and passes the result through the woocommerce_package_rates filter. The calculated rates are stored in the customer’s session against a hash of the package, so they are not recomputed until something in the package changes.
Which shipping zone does a customer match?
One zone, always. WooCommerce’s own documentation says each customer matches only one shipping zone, zones are checked from the top of the list down, and the first zone that fits wins. If nothing fits, the “Rest of the world” zone applies. The list lives at WooCommerce > Settings > Shipping > Shipping zones, and the docs recommend ordering zones from smallest region to largest, for example city or postcode first, then state, then country. From WooCommerce 11.1 the zone list also warns when a broad zone sits above a narrower one that it already covers, because the narrower zone could never be matched. Source: WooCommerce shipping zones documentation, checked 15 November 2026.
That rule matters more in a marketplace than in a single store, because vendor methods are attached to the same zones. If a vendor’s “Domestic” zone sits below a catch-all zone you created earlier, the vendor’s rates never show up and nobody gets an error.
Zone regions are countries, states and continents, optionally narrowed with postcodes. The Dokan documentation describes the zone form in exactly those terms. Cities are not a native zone field. If a vendor ships to one metro area only, express it as a postcode range, or handle it in code. WCFM’s forum staff have pointed people to a city-select add-on for city lists, with the caveat that it limits where a vendor ships but does not give city-specific rates.
Do you need a separate shipping rules app for a marketplace?
Usually not. The queries “shipping rules manager for woocommerce” and “shipping rules tool for woocommerce” suggest people look for a standalone app, but the marketplace plugins already contain the vendor-facing part: zones, methods, shipping classes and thresholds. A standalone rules plugin sees the whole cart and applies one rule set to the whole store, which is the opposite of what a marketplace needs. A vendor cannot log in to it and edit their own rates.
The case for an extra layer is narrow. Add one when you need something the marketplace plugin does not offer, such as live carrier rates from each vendor’s own account, or a rule that depends on both vendors in a cart at once. Even then, check that the add-on understands split packages. Many rules plugins were written for one package and quietly price the first shipment only.
How do Dokan, WCFM, WC Vendors and MultiVendorX handle vendor shipping?
All four let the marketplace owner define zones once and let vendors set their own prices. They differ in how much the vendor controls, which shipping types exist, and what needs a paid tier. The plugin figures below come from the WordPress.org plugin API on 15 November 2026.
Plugin | Free plugin on WordPress.org | How vendor rates work | Shipping types documented |
|---|---|---|---|
Dokan | Dokan Lite 5.3.4, 30,000+ active installs, 4.6 stars from 769 ratings, updated 5 November 2026 | Admin adds the Vendor Shipping method to a WooCommerce zone, vendor sets methods in their dashboard | Zone-wise (Pro), table rate and distance rate modules |
WCFM Marketplace | Version 3.8.4, 10,000+ active installs, 4.6 stars from 449 ratings, updated 2 November 2026 | Admin enables shipping types, adds Store shipping to a zone, vendor sets rates | Zone, country, weight, distance |
WC Vendors | Version 2.7.3, 3,000+ active installs, 4.5 stars from 188 ratings, updated 19 October 2026 | Per-product flat rates at product, store and global level, vendor overrides defaults | Flat rate national and international, with thresholds |
MultiVendorX | Version 5.0.22, 2,000+ active installs, 4.8 stars from 432 ratings, updated 10 November 2026 | Admin enables the Store Shipping module and adds it to a zone, store owner sets charges per zone | Zone-based, with other pages for per-product, weight and distance |
Dokan: zone-wise shipping with the Vendor Shipping method
Dokan’s zone-wise shipping needs Dokan Pro, according to its documentation. The admin goes to WooCommerce > Settings > Shipping > Shipping Zones, clicks Add Shipping Zone, names the zone, picks the regions, and selects “Vendor Shipping” in the Shipping Method drop-down. Without that method, the docs say vendors cannot see or configure the zone. The admin may also add Flat Rate, Local Pickup or Free Shipping directly, but those admin-added methods are hidden from vendors while customers in the zone still see them at checkout.
Vendors then open Store > Vendor Dashboard > Settings > Shipping, edit a zone, narrow it by postcode if they like, and click Add Shipping Method. Flat Rate takes a Title, a Cost for the whole cart, a Tax Status and a description. Free Shipping takes a Title and a Minimum Order Amount. Local Pickup takes a Title, Cost and Tax Status. A separate policy tab holds the shipping policy and processing time.
Shipping classes work in two steps. Only the admin creates classes, under WooCommerce > Settings > Shipping > Shipping Classes. Vendors then assign one class per product and set class costs on their Flat Rate method. Dokan lists a Calculation Type of “Per Class” (each class priced separately) or “Per Order” (the most expensive class rate applies to the whole order). If you define both a flat cost and a class cost, the docs say both apply. Dokan’s page was last updated on 12 September 2023, so confirm labels in your installed version. Source: Dokan zone-wise shipping documentation.
WCFM Marketplace: four shipping types, switched on by the admin
WCFM puts the admin in control of which shipping types vendors may use. Under the WCFM admin Settings, Shipping settings, the admin ticks “Store shipping” and then the types to offer: zone, country, weight or distance. To let vendors override the defaults, the admin also opens Capability > Shipping. The docs warn that menu labels vary between pages (“Shipping settings” and “Shipment Settings” both appear), so check your own dashboard.
- **Zone:** enable shipping by zone, create zones in WooCommerce, and select “Store shipping” as the method. The vendor edits the zone and adds Flat rate, Free shipping or Local pickup.
- **Country:** the admin sets a “Ships from” country, a default price and optional per-state rates. The vendor then prices each country.
- **Weight:** rule-based calculation or a per-unit cost such as per kg.
- **Distance:** needs a default cost, a maximum distance and a vendor location set on the map. Orders beyond the maximum distance are blocked.
Vendors turn shipping on under Vendor Dashboard > Settings > Shipping and set a processing time there. Flat rate costs accept the [qty] and [fee] placeholders. Source: WCFM store shipping documentation.
WC Vendors: per-product flat rates with three levels
WC Vendors takes a different approach. Its documented shipping system is per product, with national and international flat rates that can be set at the product, the vendor’s store and the global level. A product-level setting replaces the store default, and the store default replaces the global one. Each rate can carry a fee, a “Charge Once” override so quantity does not multiply it, “Free Shipping”, or “Disable”. Minimum, maximum and free-shipping-over thresholds work at both product and store level, and a “Shipping From” address lets a vendor ship from a warehouse that is not the store address.
The consequence is easy to miss: per-product pricing stacks. WC Vendors’ own example is a national rate of 10 across two different products from one vendor, which gives 20 in total shipping. A vendor who expects one rate per parcel has to use the store-level options or a free-shipping threshold. The global shipping type sits under WC Vendors > Settings > Forms > General > Shipping Type, and the docs say vendors can choose a different system from the global default when that option is on. The pages we read describe this shipping system as part of WC Vendors Pro. Source: WC Vendors flat rate documentation.
MultiVendorX: a Store Shipping module added to each zone
MultiVendorX follows the zone pattern with its own names. The admin enables Store Shipping under MultiVendorX > Modules (Shipping Management), turns on Zone-Based Shipping in MultiVendorX > Settings > Shipping, then uses Add Zones, which opens the WooCommerce zones page, and adds “Store Shipping” to each zone. Store owners then go to Settings > Shipping > Shipping by Zone and set charges for each admin-created zone. The admin can also open a single store (Stores > the store > Settings > Shipping) and set its methods for it.
Flat Rate takes a Base Cost, a Cost of Shipping Class and an Advanced Cost field that accepts formulas such as 10 + (2 * [qty]). Free Shipping applies at a minimum order amount or with a valid coupon. Two caveats from the docs deserve attention. Store owners can delete admin-created shipping methods in any zone, and products you add to a store from the admin side need a shipping class, otherwise customers may see no delivery options at checkout. Source: MultiVendorX shipping by zone documentation.
How do you ship each vendor’s parcel from a different origin?
A multi-origin setup means the rate depends on where each vendor ships from, not on one store address. The marketplace plugins handle this differently, and some leave it open. WC Vendors documents a “Shipping From” address per vendor. WCFM’s country shipping asks the admin for a “Ships from” country. We found no documented per-vendor origin field in the Dokan or MultiVendorX zone shipping pages we read, although WCFM’s distance option needs a vendor location set on a map.
What origin actually changes is the price, not the zone. WooCommerce zones match on the customer’s destination only. Two vendors in different countries can sit in the same zone and charge different rates because each vendor’s own method holds their prices. You only need an origin address when a live carrier rate has to be requested, and in that case the carrier plugin must support vendor addresses. Our walkthrough of multi-carrier shipping API integrations covers that side.
When does a marketplace need custom shipping code?
Reach for code in four situations:
- Your plugin does not split the cart per vendor, or splits by something other than vendor (a warehouse, a fulfilment partner, a delivery date).
- A rule needs both vendors’ data at once, for example free shipping when the whole basket passes a threshold.
- You want to rename or reorder shipments, so customers see the vendor name instead of “Shipment 2”.
- You must hide a method for one vendor’s products without touching the zone setup.
Checked on 15 November 2026: every hook, filter and class below exists in the WooCommerce 11.3.0 source, and the snippets pass a PHP 8.2 syntax check. Test them on staging before use. The meta key in the second snippet (wcd_free_shipping_min) is our own example key, not a plugin setting. The snippets assume the vendor is stored as the product author, which is how several marketplace plugins record it. Check how yours does before copying, and if your plugin already splits packages, do not add this on top.
Split the cart into one package per vendor
add_filter( 'woocommerce_cart_shipping_packages', 'wcd_split_packages_by_vendor' );
/**
* Replace the single default package with one package per vendor.
*
* @param array $packages Packages built by WooCommerce.
* @return array
*/
function wcd_split_packages_by_vendor( array $packages ): array {
$split = array();
foreach ( $packages as $package ) {
$by_vendor = array();
foreach ( $package['contents'] as $item_key => $item ) {
$vendor_id = (int) get_post_field( 'post_author', $item['product_id'] );
$by_vendor[ $vendor_id ][ $item_key ] = $item;
}
foreach ( $by_vendor as $vendor_id => $items ) {
$vendor_package = $package;
$vendor_package['contents'] = $items;
$vendor_package['contents_cost'] = array_sum( wp_list_pluck( $items, 'line_total' ) );
$vendor_package['vendor_id'] = $vendor_id;
$split[ $vendor_id ] = $vendor_package;
}
}
return $split;
}The package keeps the destination, coupons and user from the original, so zone matching works exactly as before. WooCommerce adds package_id and package_name after the filter runs. The vendor_id key is ours and travels with the package into the next filter.
Name each shipment after its vendor
add_filter( 'woocommerce_shipping_package_name', 'wcd_vendor_package_name', 10, 4 );
/**
* Show the vendor name instead of "Shipment 1".
*
* @param string $name Default package name.
* @param string $package_id Package ID.
* @param array $package The shipping package.
* @param int $total_packages Number of packages in the cart.
* @return string
*/
function wcd_vendor_package_name( $name, $package_id, $package, $total_packages ) {
if ( empty( $package['vendor_id'] ) ) {
return $name;
}
$vendor = get_userdata( (int) $package['vendor_id'] );
return $vendor ? sprintf( 'Shipped by %s', $vendor->display_name ) : $name;
}What does the woocommerce_package_rates filter do?
It is the last stop before WooCommerce stores a package’s rates. The filter receives the array of rates for one package and the package itself, and it must return an array of rates. Because it runs after every method has produced its rates, it is the right place to remove, reprice or add a rate based on the package. That is the code behind the query “woocommerce_package_rates new wc_shipping_rate” in our Search Console data. The WC_Shipping_Rate constructor takes an ID, a label, a cost, an array of taxes, a method ID and an instance ID, followed by optional tax status, description and delivery time.
The next snippet gives a vendor a free-shipping rate once their own part of the cart passes a minimum they have saved, and removes the paid rates when it does. If the saved value is empty or zero, nothing changes.
add_filter( 'woocommerce_package_rates', 'wcd_vendor_free_shipping', 20, 2 );
/**
* Offer free shipping when a vendor's items pass that vendor's own minimum.
*
* @param array $rates Rates for this package.
* @param array $package The shipping package.
* @return array
*/
function wcd_vendor_free_shipping( array $rates, array $package ): array {
if ( empty( $package['vendor_id'] ) ) {
return $rates;
}
$minimum = (float) get_user_meta( (int) $package['vendor_id'], 'wcd_free_shipping_min', true );
if ( $minimum <= 0 || $package['contents_cost'] < $minimum ) {
return $rates;
}
$free = new WC_Shipping_Rate(
'wcd_vendor_free:' . (int) $package['vendor_id'],
__( 'Free shipping', 'wcd' ),
0,
array(),
'wcd_vendor_free'
);
return array( $free->get_id() => $free );
}Two details save debugging time. WooCommerce caches rates per package, keyed by a hash of the package contents plus a shipping cache version, so a rule that depends on data outside the package (like that vendor meta value) will not refresh until the hash changes. Putting the minimum into the package inside your split filter, rather than reading user meta in the rates filter, avoids stale rates. Since WooCommerce 11.0 you can also tell WooCommerce to ignore specific package fields in that hash with woocommerce_shipping_package_hash_ignored_fields. While developing, the woocommerce_shipping_debug_mode option skips the cache, so switch it off again before launch.
Which setup fits which marketplace?
Your situation | Start with | Watch out for |
|---|---|---|
Vendors want zones and their own flat rates | Dokan Pro or MultiVendorX zone shipping | The vendor method must be added to every zone |
Vendors price by country, weight or distance | WCFM Marketplace shipping types | Admin enables each type, and vendors need the Shipping capability |
Vendors sell many small items and want per-item pricing | WC Vendors per-product flat rate | Per-product fees add up across a cart |
Vendors ship from different warehouses with live carrier rates | Marketplace plugin plus a carrier add-on that reads vendor addresses | Add-ons built for one package may price only the first shipment |
One rule must see the whole basket | A small filter on | Cached rates do not refresh when outside data changes |
A marketplace that takes payments for several vendors at once also has to split the money, not just the parcel. Our guide to split payments with Stripe Connect covers that side, so shipping fees can follow the right vendor.
Common mistakes people report
These come from vendor documentation, WooCommerce issue reports and support threads, all checked on 15 November 2026. Several threads are old, and we say so, because plugin screens change between versions.
- **The zone has no vendor method.** Vendors open their shipping settings and find nothing to configure. Dokan’s documentation says vendors cannot see a zone until “Vendor Shipping” is added to it, and the WCFM support forum answered the same problem in September 2018 and March 2019 by telling the admin to add “Store shipping” to each zone. Fix it by adding the plugin’s method to every zone.
- **Overlapping zones.** WooCommerce uses the first zone that matches, so a broad zone above a narrow one hides the narrow zone. WooCommerce’s zone documentation says to order zones from smallest to largest, and WooCommerce 11.1 added a warning in the zone list for this case.
- **A zone with no working method.** A WooCommerce issue from March 2024 reports that a zone with no shipping method showed nothing on the shortcode checkout instead of a “no shipping options” message. A September 2026 issue reports that checkout was allowed for shippable products when a store had no shipping methods at all. Both are closed, but test every vendor zone with a real address.
- **Admin-added products without a shipping class.** MultiVendorX’s documentation warns that products you add to a store from the admin side need a shipping class, or customers may see no delivery options at checkout. Set the class when you import or create products for vendors.
- **Deleting a zone to tidy up.** Dokan’s documentation says deleting a zone in admin also deletes the vendor shipping data under it. Disable a zone’s methods or move regions instead of deleting it once vendors have configured rates.
- **Expecting one rate per vendor from per-product pricing.** WC Vendors prices shipping per product, so two products from one vendor at a national rate of 10 cost 20 in shipping. If you want one fee per parcel, set it at store level or use a free-shipping threshold.
How do you test vendor shipping before launch?
Test with real addresses, not just the store country. A short routine catches most problems:
- Create one test cart with products from three vendors in three different zones, plus one vendor with free shipping over a threshold.
- Check that checkout lists one shipment per vendor and that each list shows only that vendor’s methods.
- Change the address to a country, state and postcode in each zone, then to one outside every zone, and confirm the message and the “Rest of the world” behaviour.
- Repeat on the classic shortcode checkout and the Checkout block. A WooCommerce issue from December 2024 described third-party shipping methods missing from the Checkout block while they appeared on the cart page, so confirm any custom or add-on method renders in the block.
- Place the order and confirm each vendor’s sub-order or shipping line carries the right method and price.
- Edit a vendor rate in the dashboard and reload checkout to confirm the cached rate refreshes.
Run the same checks after every marketplace plugin update. The four plugins above all released updates between 19 October and 10 November 2026, so a shipping screen you set up a year ago may not look the same today.
Frequently asked questions
Can each vendor set their own shipping zones in WooCommerce?
Not on their own. WooCommerce zones belong to the store, and vendors can only configure the zones the admin creates and attaches the plugin’s vendor method to. In Dokan, WCFM and MultiVendorX the vendor then sets methods and prices inside those zones. In WC Vendors the vendor sets flat rates at store and product level instead.
Why does my vendor see no zones in their dashboard?
The most common cause is a missing vendor method on the WooCommerce zone: Vendor Shipping in Dokan, Store shipping in WCFM, Store Shipping in MultiVendorX. In WCFM, the admin must also enable the shipping type, and in Dokan the zone-wise feature needs Dokan Pro.
How does a customer pay shipping for products from several vendors?
Each vendor’s items form their own shipment with their own rate, and the customer picks a method for each shipment. The cart shows the sum of the chosen rates. A free-shipping threshold set by one vendor applies to that vendor’s shipment only.
Does WooCommerce support shipping zones by city?
The zone form takes countries, states, continents and postcodes. We found no city field in the WooCommerce documentation we checked. Use postcode ranges where you can, and code or an add-on for true city rules.
Can I show free shipping for one vendor only?
Yes. Every plugin above has a free shipping method with a minimum order amount per vendor, except WC Vendors, which uses a free-shipping-over threshold at product or store level. Because the check runs per shipment, a customer with two vendors in the cart sees free shipping for one and a paid rate for the other.
Do I need custom code for vendor shipping?
Only when the plugin cannot do what your business needs: splitting by something other than vendor, a rule across several vendors, or custom shipment names. Most marketplaces ship fine with the plugin’s own options, set up carefully.
What should you read next?
Choose and compare plugins in our multivendor and marketplace plugin roundup. For onboarding, read the vendor onboarding guide. For payouts, read split payments with Stripe Connect. If you need live carrier rates, see multi-carrier shipping API integrations. To build a new rate method from scratch, use the custom shipping methods developer guide.
Our team builds custom marketplace shipping when the plugin options are not enough, from per-vendor package splits to carrier integrations. The honest first step is still to try the plugin’s own zones and methods, because most stores never need more.
Checked on 15 November 2026 against WooCommerce 11.3.0, Dokan Lite 5.3.4, WCFM Marketplace 3.8.4, WC Vendors 2.7.3 and MultiVendorX 5.0.22, using each vendor’s documentation and the WordPress.org plugin API.
Plugins we build and run
We maintain these ourselves, which is why we can support them on your site.
- BuddyNextThe self-hosted community engine for WordPress
- BuddyXFree community theme, Pro when you outgrow it
- ReignPremium community theme. Add pieces, build anything
- JetonomyCommunity forum and Q&A for WordPress
- EventonomyEvents and RSVPs for WordPress communities
- LearnomyCourses and learning communities on WordPress
- ListoraDirectories and listings your members can browse
- SnipShareCode sharing built for developer communities
- WB Ad ManagerAd placements that turn traffic into revenue
- WP Career BoardA job board your community actually uses
- WP Sell ServicesSell services with offers, orders, and payouts
- MediaVersePhotos, video, and media albums for members
- WB GamificationPoints, badges, and rewards that keep members active
- Product RoadmapPublic roadmaps with voting your users trust
- KanbanomyProject management with a client portal, on your own WordPress site



