Beziworld Conditional Shipping Rules for WooCommerce

Description

Beziworld Conditional Shipping Rules adds a shipping method that calculates its cost from a table of rules. Add it to any shipping zone as many times as you need, for example a courier, a pallet service and a parcel locker, and give each one its own rules, free shipping threshold and texts for customers.

Everything is included. There is no paid version, no locked condition, no upsell and no tracking.

Rules that cover real shipping price lists

  • Conditions: cart value (before or after discounts, with or without tax), weight, number of items, number of cart lines, volume, largest item dimension (longest side, length, width or height), length + width + height, dimensional weight with your divisor, shipping class, product, category (subcategories included), tag, stock status, coupon (specific codes, any coupon, no coupon, free shipping coupon), user role (including guests), postcode (exact codes, wildcards such as 30-* and ranges such as 30-000…34-999), city, day of the week, time of the day (also over midnight), date range, and “always”.
  • Combine conditions with AND or OR in a rule, and reverse any condition with one click (“not”).
  • Costs: fixed cost, percentage of the cart value, any number of per unit costs (per kg, per item, per cart line, per value or volume, for every started, full or proportional unit, above a threshold), and a minimum and maximum per rule.
  • Actions: add the cost, add the cost and stop checking further rules, make the method free, or hide the method (for example above 30 kg).
  • Calculation modes: sum of all matching rules, first match, lowest or highest.
  • Calculate for the whole package, for each shipping class separately or for each cart line separately and add the results up.
  • Method level: handling fee, minimum and maximum cost, rounding (up, down or nearest, to any step such as 0.5 or 1), costs entered with or without tax, tax status, and what happens when no rule matches.

Free shipping that sells

  • Free shipping threshold per method, free shipping with a free shipping coupon, or a method shown only with such a coupon.
  • Hide all other methods, or all except local pickup, when a method is free.
  • Free shipping progress notice with a progress bar in the cart, the checkout (classic and block), the mini cart and, optionally, after adding a product. Your own texts with {remaining}, {threshold} and {method}, or the built-in translated texts.
  • The notice is calculated from the cart on every update and is never stored in the customer session, so it does not bloat the session table.

Made for the way you work

  • Rule editor on a clear screen: drag rules to reorder them (or use the move buttons with the keyboard), duplicate them, switch them off without deleting them, collapse long tables.
  • Test calculator in the editor: enter products, address, coupons and a customer role and see the cost of your unsaved rules with an explanation of every rule and condition.
  • Debug mode: store managers see in the cart and checkout (classic and block) why each rule matched or not and which values were checked. Customers never see it.
  • Description and delivery time shown under the method in the classic and block cart and checkout.
  • Every table rate method of every zone on one list, with enable, disable, duplicate, export and delete actions, and direct links from the WooCommerce zone screen.

Import, export and moving from Flexible Shipping

  • Export one or all methods as JSON (all settings and zones) or the rules as CSV for spreadsheets, and import them in another store.
  • Imports the Flexible Shipping formats: the rules table JSON from its Export or Copy button, its method export and its semicolon separated CSV.
  • Migration assistant: finds Flexible Shipping methods in your zones, even with Flexible Shipping deactivated, and copies them with rules, free shipping threshold and limits into new methods in the same zones. The copies start disabled so you can compare the results first. Conditions without an equivalent are listed.

Fast and compatible

  • Every product fact is read once per package; rules never query the database. Results are cached per package fingerprint, so the cart, the shipping calculator and the Store API calculate each package once per request.
  • Time based rules refresh the rates WooCommerce keeps in the session exactly when needed.
  • Cart and checkout blocks (Store API) and the classic shortcodes, the WooCommerce shipping calculator, multiple packages, High-Performance Order Storage.
  • Multi-currency: costs and thresholds are entered in the store currency and converted automatically with WPML WooCommerce Multilingual, Aelia Currency Switcher, FOX (WOOCS) or CURCY; any other switcher can use one filter.

For developers

Conditions, cost bases, admin tabs and services are registries filled through filters, every decision point has a filter or action (bwts/conditions, bwts/rule_matches, bwts/rule_cost, bwts/calculation_result, bwts/rate_args, bwts/free_shipping_notice, bwts/currency_rate and more) and every storefront output is a template a theme can override. See docs/developers.md in the plugin folder.

WP-CLI: wp bwts list, wp bwts add <zone>, wp bwts simulate <instance> --products=12:2 --country=PL --postcode=30-001, wp bwts export, wp bwts import <file>, wp bwts migrate [--dry-run].

REST API (manage_woocommerce): /wp-json/bwts/v1/methods, /methods/<id>, /methods/<id>/simulate, /export, /import, /conditions, /settings.

Documentation and support: https://beziworld.eu/projekty/conditional-shipping-rules

Privacy

The plugin calculates shipping costs from the cart and the shipping address (country, postcode, city) entered by the customer and from the role of a logged in customer. It does not store these data, does not set cookies and makes no external requests.

Screenshots

Installation

  1. Install and activate WooCommerce.
  2. Install and activate the plugin.
  3. Go to WooCommerce > Conditional Shipping Rules, choose a shipping zone and click “Add method”, or add “Table rate (Beziworld)” on the WooCommerce shipping zone screen.
  4. Adjust the example rules, set the free shipping threshold and save.
  5. Use the test calculator in the editor, or switch on debug mode and check the cart.

FAQ

Is anything limited or paid?

No. Every condition, cost type, the import and export, the migration and the debug mode are part of this plugin. Developers can extend it through filters, but nothing is held back.

Do the ranges include their ends?

Yes. “From 0 to 5 kg” matches 5 kg. Use 5.001 as the start of the next range, or the “first matching rule” mode, to avoid overlaps.

What happens when a cart is heavier than my last rule?

You decide: hide the method (default), show it with cost 0 plus the handling fee, or add a rule with per unit costs above a weight so no table ever runs out.

Does it work with the cart and checkout blocks?

Yes. Rates, descriptions and delivery times come through the Store API, and the free shipping notice and the debug view are shown in the cart and checkout blocks.

Can I move my Flexible Shipping rules?

Yes. Use Import and export > Move from Flexible Shipping when both plugins are in the same store, or import the rules table JSON or CSV exported from Flexible Shipping. Conditions that have no equivalent (for example custom product fields or Flexible Shipping add-on conditions) are reported and skipped.

Does the free shipping notice slow down the store?

No. It reuses the rate calculation of the cart, is computed only where it is shown and is never stored in the session.

Can I change how the notice looks?

Yes. Copy a file from the templates folder of the plugin to yourtheme/beziworld-conditional-shipping-rules/ and edit the copy, or change the –bwts-accent colour in your theme CSS.

Is it compatible with HPOS?

Yes. The plugin does not store order data and declares compatibility with High-Performance Order Storage and the cart and checkout blocks.

Reviews

There are no reviews for this plugin.

Contributors & Developers

“Beziworld Conditional Shipping Rules for WooCommerce” is open source software. The following people have contributed to this plugin.

Contributors

Changelog

1.0.0

  • First release.