Description
Sendra Shipping Rules gives you full control over shipping rates, and protects your store from orders that are placed with no shipping method.
Shipping methods (add as many instances as you need to any shipping zone)
- Rule-based shipping: unlimited rules, each with its own conditions and cost.
- Postal service: weight tariff table (enter your carrier’s current tariff).
- Local courier: one instance per courier, restricted by province, city or location group.
- Freight carrier: for carriers paid on delivery.
- Free shipping: custom title, conditions, free-shipping coupons, “first order” offers.
Conditions (combine as many as you like)
- Cart subtotal, weight, number of items, number of cart lines, total volume, longest product dimension
- Province, city, country and your own location groups
- Product, product category, product tag, shipping class (any / none / only)
- User role (including guests), payment method, applied coupon
- Customer’s first order
- Time of day and day of the week (store time)
- Optional message per availability condition, shown to the customer when the method is hidden (classic checkout and cart)
Rule actions and extras: stop calculating the following rules, hide the method when a rule matches, and an additional cost per unit of subtotal, weight, items, cart lines or volume. A “left for free shipping” notice tells customers how much more to spend.
Import from Flexible Shipping: WooCommerce > Shipping Rules > Import copies your Flexible Shipping methods (rules, conditions, additional costs, free shipping threshold) into new, disabled Shipping Rules methods. Flexible Shipping is never changed.
Flexible Shipping is a trademark of its respective owner (Octolize). Sendra Shipping Rules is an independent plugin and is not affiliated with or endorsed by it.
Cost types: fixed, formula (for example [base] + ceil([weight]) * 5000), base + extra per weight step, weight tiers (tariff table), cost per item, percentage of subtotal, free. Cap the cost with a maximum, choose cart value before/after discounts, use volumetric (DIM) weight, show a description under the method, limit a method to logged-in customers and turn on an admin-only debug mode. Add a fixed or percentage handling fee, free shipping above an amount with its own title, or mark a method as “pay on delivery”.
Stop orders without a shipping method
- Strict validation for the classic checkout and the Cart & Checkout blocks.
- Optional fallback rate when an address matches no zone.
- Any order that still arrives without shipping is flagged, gets an explanatory order note, emails the administrator and can be fixed automatically or from the Diagnostics tab.
- Configuration checks (empty zones, “rest of the world”, several selling countries, competing plugins).
- Rates are never served from the wrong cache when they depend on user role, payment method or first-order status.
Location price table: set a price per province and per city in a grid (WooCommerce > Shipping Rules > City prices) for any method.
Utilities: default product weight, packaging weight, postal weight limit, round costs up (for example to 1000), minimum purchase per method, origin province, method logo, “courier only” and “free only” modes, optional extra order statuses (sent to warehouse, packaged, handed to courier).
Iran-ready checkout
- Province list from WooCommerce and an editable starter list of cities per province.
- City dropdown in the classic checkout, cart calculator, account addresses and order editor.
- Optional single selling country (hides the country field).
- Province field before city.
- Persian and Arabic letters and digits are normalised when matching cities and numbers.
Tracking: save a carrier and tracking code on orders; shown to the customer and in emails, with an action hook for SMS plugins.
Compatibility: High-Performance Order Storage (HPOS), Cart & Checkout blocks, all Iranian WooCommerce currencies. The plugin is translation-ready (text domain sendra-shipping-rules); translations are contributed on translate.wordpress.org.
Installation
- Upload the plugin and activate it (WooCommerce must be active).
- Go to WooCommerce > Settings > Shipping, open a zone and click “Add shipping method”. Choose one of the Shipping Rules methods.
- Review WooCommerce > Shipping Rules > Settings and Diagnostics.
FAQ
Why do some orders have no shipping method?
Common causes: the customer’s address matches no shipping zone (for example a hidden or different country) so no rate exists; a payment-method, role or coupon condition removes the previously selected rate; orders created manually in the admin or by other plugins; stale cached rates. The Diagnostics tab checks your zones and lists affected orders.
Does it work with the Checkout block?
Yes. Shipping rates, validation and the fallback rate work in the block. The city dropdown is classic-checkout only; in the block the city remains a text field and the plugin matches Persian and English names.
Does it include official postal tariffs?
No. Carrier tariffs change frequently, so you enter them yourself (weight tiers) and they are always up to date.
Changelog
1.2.1
- Fix: the Flexible Shipping importer now reads the rules from the option Flexible Shipping really uses (woocommerce_flexible_shipping_{id}_settings), so methods are imported with all their rules instead of none.
- Fix: Flexible Shipping rules stored as JSON are accepted by the importer and by the file import.
- Readme: trademark notice for Flexible Shipping.
1.2.0
- New: “Count only these items” option on product, category, tag and shipping class conditions (Flexible Shipping style content filtering: weight, quantity and subtotal then refer only to the matching items).
- New: several additional costs per rule (per weight, quantity, subtotal, cart lines, volume or volumetric weight).
- New: “is between” / “is not between” operators for number conditions.
- New: longest product length, width, height, total of all dimensions and lowest stock conditions.
- New: shipping class “any class” value.
- New: free shipping can require an amount, a free shipping coupon, either, or both; custom free shipping notice text.
- New: export and import Shipping Rules methods as JSON; import Flexible Shipping JSON and CSV export files.
- New: “Default method” (pre-selected at checkout) and “Use for another shipping method” (rules calculate the cost of a flat rate or any other WooCommerce method).
- New: multi-currency support (WPML/WCML, WOOCS, Aelia and the
sendra_currency_ratefilter) and WPML / Polylang string translation of method titles, descriptions and notices. - Improved: the Flexible Shipping importer keeps every additional cost, content filtering, “any class” and the free shipping requirement.
1.1.0
- New: import methods from Flexible Shipping.
- New: product tag, number of cart lines, volume and longest dimension conditions.
- New: rule actions (stop / hide method) and additional per-unit cost on every rule.
- New: free shipping notice (amount left).
- New: email alert and the
sendra_order_without_shippingaction when an order is created without a shipping method. - Changed: internal prefix is now
sendra(settings and shipping methods of version 1.0.x are migrated automatically).
1.0.1
- Renamed the plugin.
1.0.0
- First release.
