
Flexible WooCommerce shipping plugin that calculates costs by weight, with free-shipping and COD control options.
Lexiata Weight Based Shipping for WooCommerce calculates the shipping cost from the total weight of the cart. Set a price for the first kilogram and a price for each additional kilogram, the same way most courier services charge.
It also lets you give free shipping above an order amount or for selected products, and show Cash on Delivery (COD) only when the order total is inside a range you choose. No tables to build and no heavy setup: add the method to a shipping zone, enter two prices and you are done.
Built for small and growing stores, and especially handy for Sri Lankan online shops that use courier rates like “Rs 350 for the first kg + Rs 100 per extra kg”.
How the shipping cost is calculated
- Cart weight 1 kg or less → you pay the first kg price.
- Cart weight above 1 kg → first kg price + additional kg price for every extra kg. Part of a kg counts as a full kg.
Example with Rs 350 for the first kg and Rs 100 per extra kg:
- 0.8 kg → Rs 350
- 1.8 kg → Rs 350 + (1 × Rs 100) = Rs 450
- 3.0 kg → Rs 350 + (2 × Rs 100) = Rs 550
Features
- Shipping by weight: cost for the first 1 kg plus cost per additional kg. Decimal prices (e.g. 350.50) are supported.
- Free shipping by order total: free shipping when the cart subtotal reaches your minimum amount.
- Free shipping per product (new in 2.1): tick “Free shipping” in Product data → Shipping. That product’s weight is not charged, and if every item in the cart is a free shipping product the customer gets Free Shipping.
- COD restriction: show Cash on Delivery only when the order total is above a minimum and/or below a maximum.
- Shipping zones: add the method to any WooCommerce shipping zone, with different prices per zone.
- Any weight unit: kg, g, lbs or oz. The store weight is converted to kg automatically.
- Cart & Checkout blocks: works with the block checkout and the classic
[woocommerce_checkout] shortcode.
- HPOS compatible: declared compatible with WooCommerce High-Performance Order Storage.
- Multi-package carts: each shipping package is rated by its own weight (useful with multi-vendor plugins).
- Lightweight: no external scripts, fonts or tracking. Only a few small PHP files.
- Developer filters:
lexiwbs_shipping_cost, lexiwbs_package_weight and lexiwbs_product_has_free_shipping.
Made by Lexiata.lk, WordPress and WooCommerce developers from Sri Lanka.
Screenshots

Shipping method settings: first kg cost, additional kg cost and free shipping minimum.

New "Free shipping" option in Product data → Shipping.

Block checkout showing the weight based rate (1.8 kg = first kg + 1 extra kg).

A product marked as free shipping gives the customer Free Shipping.

COD restriction settings in WooCommerce → Settings → Shipping → Lexiata COD Rules.

The method added to a WooCommerce shipping zone.
FAQ
How is the weight based shipping cost calculated?
The method adds up the weight of all items in the cart. Up to 1 kg costs the “first kg” price. Every extra kg (or part of a kg) adds the “additional kg” price. Example: 2.3 kg = first kg + 2 extra kg.
How do I give free shipping for one product?
Edit the product, open Product data → Shipping and tick Free shipping. Its weight is skipped in the calculation. If all products in the cart are marked this way, the checkout shows “Free Shipping”. For variable products the setting of the parent product is used.
How do I give free shipping above an order amount?
In the shipping method settings, tick Enable Free Shipping and enter the Free Shipping Minimum Total. The cart subtotal (before coupons) is compared with this amount.
Where are the COD (Cash on Delivery) restriction settings?
Go to WooCommerce → Settings → Shipping → Lexiata COD Rules. Newer WooCommerce versions show the COD payment settings as a new screen where extra fields cannot appear, so the settings live here now. Your saved values are kept.
Does it work with the WooCommerce block checkout?
Yes. Shipping rates and the COD restriction work in both the Cart/Checkout blocks and the classic shortcode checkout, including the “Pay for order” page.
My products have no weight. What happens?
If the cart weight is 0 the method does not show a rate (unless free shipping applies). Add a weight to your products in Product data → Shipping.
My store uses grams or pounds. Is that OK?
Yes. The weight is converted to kilograms using your WooCommerce weight unit before the cost is calculated.
Can I use different prices for different areas?
Yes. Create shipping zones (for example “Colombo” and “Outstation”) and add the method to each zone with its own prices.
Is it compatible with HPOS?
Yes, the plugin declares compatibility with High-Performance Order Storage.
Will updating to 2.1 change my current rates?
No. All settings are kept. The only change is a fix for a rounding error that could charge one extra kg on some exact weights (for example a 3.0 kg cart charged as 4 kg).
ChangeLog
2.1.0
- New: “Free shipping” option per product in Product data → Shipping.
- New: COD restriction settings moved to WooCommerce → Settings → Shipping → Lexiata COD Rules (they were hidden on WooCommerce 9.3+). Saved values are kept.
- New: Settings links on the Plugins screen and developer filters.
- Fixed: Rounding error that could charge one extra kg on exact weights (e.g. 3.0 kg charged as 4 kg).
- Fixed: COD restriction now works in the Cart/Checkout blocks and on the “Pay for order” page.
- Fixed: HPOS and Cart/Checkout blocks compatibility is now declared to WooCommerce.
- Fixed: Each shipping package uses its own weight (multi-vendor carts).
- Fixed: Decimal prices can be entered in the cost fields.
- Improved: Premium page no longer loads external scripts, fonts or styles.
- Improved: All texts are translatable. Tested with WordPress 7.2 and WooCommerce 11.3.
2.0.0
- Major update: codebase refactoring for performance and security.
- Integration architecture for “Lexiata Weight Based Shipping PRO”.
- Minor calculation rounding fixes.
1.0.4
- Bug fixes and minor improvements.
1.0.3
- Bug fixes and stable release.
1.0.2
- Improved prefix naming (
Lexiwbs_) for WordPress.org compliance.
- Compatibility with WooCommerce 9.0+.
1.0.1
- Fixed stable tag mismatch.
- Improved translation support.
1.0.0
- Initial release with weight based shipping, free shipping and COD restriction.