Shipping
Multi-Carrier Shipping System
Every order gets one clear delivery option at a fair price, and every shopper can complete checkout.
The result
After seeing the shipping cost, more shoppers complete checkout.
Client-reported5shipping modules that work together on every order
40,000+real ZIP and postal codes the system was checked against
My role
- Specification
- Design
- Code
The problem
The store sells professional equipment, from heavy items to small parts that fit in a parcel. It ships with several carriers and its own local delivery. For many shoppers the shipping price decides whether they order at all.
Shipping prices could jump far too high
A cart with one heavy item and many small parts paid the heavy-item rate for every small part.
Some shoppers couldn’t order at all
Local shoppers with a heavy item saw an empty list of shipping methods.
Some products were offered the wrong way
Heavy items that can’t travel as a parcel were still offered as parcels.
The rules had grown complex
They covered delivery zones, free shipping with specific conditions, and weight and size limits. Every mix of them still had to give exactly one delivery option, on the site and through the API.
What was built
Analysis before any code
Started by analyzing how the existing shipping modules work together, before writing any code.
Heavy-item pricing in its own module
Heavy items are priced by delivery zone and item type, with a surcharge for extra weight or a price cap, and light items ship free together with a heavy one.
Found the check that blocked local orders
Found that a heavy-item check blocked the whole local area, which left local shoppers without shipping methods, and fixed it.
Rules for remote regions
Added rules for remote regions, which the store recognizes by the shipping address.
Every combination checked
Checked every combination of the rules against a table of expected results before release, and the whole system against 40,000+ real ZIP and postal codes.
Results
After seeing the shipping cost, more shoppers complete checkout.
Client-reportedMixed carts no longer pay the heavy-item rate for every small part
Local shoppers can order heavy items
Heavy items no longer go out as parcels
Shoppers in remote regions see a forwarding warning
Card payment is off for them on the site and through the API.