Confidential work · Shipping logic

Shipping rules that can be checked before checkout

A WooCommerce shipping plugin with weight, quantity and basket-value rules, a rate simulator and checks for gaps between configured ranges.

Illustration of a parcel routed through shipping rule gates.
Original technical illustration of the workflow. Client interfaces and data are not shown.

This is one of four plugins I built for the same confidential engagement. The other case studies cover different parts of that work.

The requirement

Some delivery policies cannot be expressed as one flat rate. A store may need to consider shipping zones, product classes, basket weight, item count and order value together. I built a configurable shipping method with tools to inspect those rules before relying on them at checkout.

What I built

  • Integrated a custom shipping method with WooCommerce shipping zones and shipping classes.
  • Built rules based on weight, item count and basket subtotal, supporting flat, per-item, weight-based and percentage charges.
  • Added ordered rule evaluation with first-match and combined-rate modes, plus rules that stop further evaluation.
  • Built an administration simulator, gap and overlap diagnostics, a setup wizard and JSON configuration import and export.

Make rule evaluation explicit

The calculation takes the package contents and evaluates the enabled rules in their configured order. Different modes allow the method to use a first matching rule or combine applicable charges. Shipping classes let the configuration account for products that need different treatment.

Those choices need to be visible to the person maintaining the store. The administration tools expose the configuration and provide debug information for inspecting how a delivery rate was assembled.

Check the boundaries, not just a typical basket

I built a simulator for checking configured scenarios without placing an order. The diagnostics inspect ranges for gaps and overlaps within the same class and condition, highlighting places where the rules may leave a basket uncovered or match more than intended.

Import and export allow a configuration to be moved or retained for later reference. These are practical administration features: the plugin handles the calculation, but the delivery policy remains something staff can inspect and maintain.

What this makes possible

The store can express a more detailed delivery policy inside WooCommerce and use the administration tools to check rates and rule coverage.

Why the detail matters

Delivery rules deserve the same attention as product prices. A useful implementation makes the order of evaluation understandable and gives administrators a way to examine unusual baskets and boundary conditions.

Other plugins I built as part of the same confidential work.

Need custom shipping logic for your WooCommerce store?

Send me the outline and any deadline. We can agree a useful first piece of work and a realistic timescale.

Talk to Adam about your project