Skip to main content

Container One · Shipping Containers · Industrial B2B Ecommerce

Custom B2B pricing on Shopify: wrong at 24 of 32 locations, and nothing in the system said so

Your Shopify store prices by a rule, not a tag: which depot holds the stock, how far the truck drives, what is on sale where. That rule lives in software somebody else wrote, and the first you hear of a wrong price is a customer. Container One's rule put 24 of 32 locations on the wrong price, and nothing in the system said so. Here is what we found, the dates we fixed it, and what nobody measured.

CO-casestudy
Commerce engineeringScoped pieces, Mar to Sep 2026Read the case study
In the inherited app, 2 Apr to 5 Jun 2026
3price faults fixed
Seeded in the new pricing service, at 14 Sep 2026
40depots
On the new service, 27 Apr to 14 Sep 2026
167changes
Run on every change, from a codebase with none
26test files
After a reviewer's comment, same window
12changes rewritten
No purchase path on the tested product, 5 Jun 2026
About 10 of 39locations

What was in the way

Container One sells shipping containers and portable storage across the United States, out of Canfield, Ohio. A container is heavy freight. It leaves a named depot, the yard holding the stock, and the truck trip is most of what the buyer pays. So the store takes a ZIP code, finds a depot with that product, works out the driving distance and quotes a delivered price: the container plus the trip.

Get that sum wrong and you lose the sale or lose money on it. Nothing tells you. A customer does.

That sum lived in an application an earlier vendor wrote in PHP years before. It ran the business every day, and it deserves that credit. What it lacked was a record. The first entry in its history is dated 4 March 2026, the day we put it under version control, the log that keeps every change and who made it. Before that, nobody could see who had changed what. There were no tests and nothing that told you when a job had failed.

The prices lived in a Google Sheet. One sheet held pricing for the whole network, anyone with edit access could break it, and the sync, the job that pushes sheet prices into Shopify, was triggered by hand.

More from this build

A custom B2B price on Shopify is a sum, not a number on a tag

A wrong price costs you twice: the order you sold under, and the hours somebody spends checking a sheet by hand once they stop trusting it. Autonomous Technologies is a Shopify systems agency, and stores come to us when a pricing rule nobody can see is quietly costing them both.

Container One's rule is distance. The buyer pays for the box plus the truck trip from the depot, so one product carries a different price at every location. Shopify's catalogue cannot hold that rule on its own. A separate service has to work it out, and for years that service was software nobody could see into.

Silence is not health. Two of three price faults reached us as a person describing a symptom, not the system reporting one. A job that reports success while discarding the reply is worse than one that crashes.

The first thing we shipped was a written description of the system

Before any code changed we wrote a systems audit: a plain map of what the software actually does. It covered the application, the link to Shopify, the link to the CRM (the customer list) and the way code reached the server. A second pass tested every finding again against the server, the live store data and the code. That pass found our own map wrong in three places.

Seven investigations were logged between March and June 2026, each dated and filed in Container One's own GitHub account. Two found no fault: the abandoned-cart report was counting bots, not buyers. Source: the seven investigation notes, dated March to June 2026.

We fixed the old app while its replacement was being built

A rewrite does not excuse anyone from fixing today's bug in the app still taking today's orders. In April a sale discount was being applied at locations holding no sale stock. That put 24 of 32 locations on the wrong price: Newark showed $7,670 where $7,770 was correct. Merged 2 April 2026. It is a price-correctness figure, not a revenue figure. Source: the fix record, pull request 2, which lists the Newark figures.

In June we chased the silent sync. Shopify had moved a field inside its product request. The old code sent it in the old place, looked for the rejection in the wrong part of the reply, then threw the reply away and deleted the retry note. The error log was empty: 0 bytes. We proved it on a draft product shoppers never see: four attempts failed, the corrected one went through. Merged 5 June 2026, production healthy on 7 June. Source: the investigation note of 5 June 2026. A root cause, here and in the stats above, means the one fault behind the symptom, written down with dates.

One finished fix sat unshipped, on purpose. In June 2026 we confirmed a root cause and reproduced it live, then held the patch until the client approved the direction. Read only by default is the rule on a system you inherited.

The new pricing service had to match the old one before it replaced anything

Parity is the plain word: the same inputs give the same answer. The new pricing hub is a Python service holding the depot list, the stock and the ZIP lookups. It remembers answers it has already worked out rather than paying to ask again.

Before any customer request moved, both systems ran side by side, product by product. The new code matched the old one on 41 of 41 products tested. That was the gate, not a promise about every quote. Source: the new service's pricing document, read 20 September 2026.

A small piece of software in front of the store decides which system answers each request, so pages cross one at a time.

March 2026 against the record of 14 September 2026: four rows moved, three say not measured.

Inherited app, March 2026Position, September 2026
Pricing codeNo history, no tests, no checks26 test files, run on every change
A failed price pushReported success, dropped the dataSorted into outage, bad data or breakage
Depots with their own ratesIn one shared sheet40 seeded in the new service
The inherited appRan everythingPartly retired, the move still going
Locations with no purchase pathAbout 10 of 39, one productNot measured again
Quote errors reaching customersNot measuredNot measured
Hours spent checking pricesNot measuredNot measured

What six months changed, and what nobody measured

Three rows say not measured and they stay in. The checkout half is a Shopify Function, small code that runs inside Shopify's own checkout. It was built and tested in a sandbox, a private copy of the store, and as of 10 September 2026 it was not switched on. This was a run of scoped pieces agreed one at a time, not a retainer.

This is for you if your price is a rule, not a tag

You will recognise this if your store prices from a rule: distance, weight, depot, install window, a contract. That rule sits in software somebody else wrote, and it has never once told you when it failed.

It is not for you if Shopify sets your prices from the catalogue, or if you want one switch-over weekend. Moving a page at a time takes longer, and it is why the old app kept selling whatever had not moved.

What we would do differently: put an alarm on a dropped record on day one, before writing any map. The same method runs through a four-year platform partnership and work delivered under a partner's name.

Work out what a wrong price is costing you this week

The money is the order you sold $100 under, times every location the fault reached, times every week nobody spotted it. At Container One that was 24 of 32 locations, and it ran until 2 April 2026. Nobody had costed it, because nobody could see it.

You can cost yours in an afternoon. Take one product, check what your store quotes at five delivery addresses, and compare each against your own sheet. Every gap is money already given away. Tell us which price your team trusts least and you get a written root cause with dates, before anyone touches your code.

Questions and answers

Can Shopify handle prices that change with the customer's location?

Not from the catalogue alone. The price turns on the product, the stock on hand and the trip from a depot, so a separate service works it out and the store asks it.

Is the old application gone?

No. As of 10 September 2026 it was partly retired and the move was still going.

How do you know the new prices are right?

Both systems ran on the same products and the answers were compared. The new code matched the old on 41 of 41 products tested, before any traffic moved. No parity, no move.

Did this increase revenue?

We cannot show that and will not claim it. No revenue, order-volume or quote-error figure exists for this account, so this page carries dated fixes only.