Case study · Industrial distribution
Option prices for every configured system, kept in one workbook
Who this is for For a manufacturer or distributor on Adobe Commerce or Magento Open Source that sells configured products, whose option prices live in a spreadsheet and reach the store by hand.
Hundreds of configurable systems drew on the same parts, and part prices reached the store through a spreadsheet, a script and an import run by hand. We tied each part to every system that offers it, then connected the store to a workbook in the client's Microsoft 365, so an edit there reaches every system on the site in 10 to 15 minutes.
Home / Case studies / Option prices for every configured system, kept in one workbook
The situation
- An industrial computer distributor sold a few hundred configurable systems, built from a few thousand parts.
- The same memory module or drive was offered in many systems, and manufacturers re-released parts under new part numbers, so one change had to reach every system that offered the part.
- Part prices were kept in a master spreadsheet. A script turned it into an import file, and the import was run by hand.
What we connected
- 1Their team to Excel workbook: price, name, sort order, option IDs
- 2Excel workbook to Our sync: an edit, once the file is still
- 3Our sync to Magento Open Source: applied whole, or not at all
- 4Their team to Spreadsheet: prices edited offline (before, now gone)
- 5Spreadsheet to Magento Open Source: imported by hand (before, now gone)
What changed
- One part, every systemA part's Global Option IDs place it in every system that offers that option, rebuilt every night
- Price changesTyped into a shared workbook and applied to the store 10 to 15 minutes later, with no import
- Edits in two placesA cell changed in both the workbook and the admin is refused, never guessed, so a stale sheet can't undo an admin edit
- A bad rowA workbook with one error changes nothing, and the notice names the sheet and the row
- Emptied optionsA nightly job that could silently empty a system's options was fixed; on a copy of production it put back 157 of 158
- Price historyEvery saved version of the workbook stays in Microsoft 365, so an earlier price list can be looked up
How we built it
A Global Option ID for each kind of part
Each part carries one or more Global Option IDs, and each option of a configurable system names the IDs it draws from. A nightly job rebuilds every system's selections from those IDs, so a new memory module given the right ID appears in every system that offers that memory, in the right order.
The workbook, written by the store
Every night the store writes the workbook into the client's Microsoft 365: one sheet per component, such as memory, storage, graphics and power, with each part's number, name, price, sort order and Global Option IDs. Anyone with edit rights changes it in Excel for the web.
Read once it is still
Every five minutes the store asks whether the file changed. Once it has been still for five minutes, the store reads it and compares every cell three ways: the sheet, the catalog and the last export. Only cells changed in the sheet are applied. A cell changed in both places stops the whole set, so nothing is guessed.
All or nothing, and said out loud
A change set is applied whole, in one transaction. Then every system's selections are rebuilt and prices reindexed. Each apply or refusal posts a notice in the admin and sends an email naming what changed, or the sheet and row to fix.
The job that could empty a system
Disabling a part dropped it out of a price-index join, and the nightly job then deleted every selection it could no longer see, with nothing logged. 158 options across 136 systems were empty. We fixed it in four layers, added a cleanup command, and wrote tests that fail on the old code.
The whole story
A catalog built from shared parts
Most of this company's systems were built to order: pick the computer, then its memory, storage, graphics, power and network cards. The same parts showed up in many systems. When a part's price changed, or a manufacturer re-released it under a new part number, every system that offered it had to follow.
Early on we gave each kind of part a Global Option ID. A system's options name the IDs they draw from, and a nightly job fills them in, so one part reaches every system that offers it.
Prices in a spreadsheet
The prices themselves still lived in the team's master spreadsheet. Getting them onto the site meant a script that turned the spreadsheet into an import file, and an import run by hand.
The store writes the workbook, the team edits it
So we turned it around. The store writes the workbook into the client's own Microsoft 365 every night, and watches it. When someone saves a change and the file has been still for five minutes, the store reads it, checks every cell against the catalog and the last export, and applies the changes in one go. A price typed in Excel reaches the site 10 to 15 minutes later.
Nothing is applied halfway. If one row has a price with a currency sign in it, or a part number the catalog doesn't know, the whole set waits, and the notice says which sheet and which row.
Fixing what had broken
Along the way we found why some systems had options nobody could edit. Disabling a part made the nightly job see an empty option, so it removed everything in it. We fixed the job so it can no longer empty an option, and on a copy of production it put back 157 of the 158 it had emptied.