Case study · Agency
B2B checkouts for distributors
Four BigCommerce checkout-js forks for B2B distributors: PO numbers, sales-rep approval, company address books and honest shipping estimates, plus Acumatica pricing through the agency's middleware.
- Role
- Software Developer
- Client
- Empire Pro · Specialty Sales · RF Venue · Craftparts
- Via
- Four13 Group2022 – 2024
- Project
- 2023 – Feb 2024
- Platforms
- BigCommerceAcumatica
- checkout-js
- React
- TypeScript
- BundleB2B
- Storefront GraphQL
- Strapi v4
- Koa
- Postgres
- Redis
- Mailgun
Context
At Four13 most clients were B2B manufacturers and distributors on BigCommerce. Their buyers
order on account, need PO numbers on everything, share company address books, and often see
customer-specific pricing from an ERP. Each of these clients had a fork of BigCommerce’s
open-source checkout-js, and I customised four of them in React + TypeScript. (The fifth fork I
worked on, DuraLabel, has its own case study.)
What I built
Empire Pro(opens in a new tab) (pro audio, B2B)
- checkout-js with BundleB2B.
- PO number shown on the confirmation page and in emails, SKUs in the order summary, and sales-rep approval messaging.
- Shipping and tax labelled “Estimated” whenever any item lacks a weight, with weights fetched through Storefront GraphQL, so buyers aren’t shown a confident number that’s wrong.
- Written notes weighing a checkout script against a full custom checkout, and explaining how to issue Storefront API tokens server-side.
// Illustrative: only call shipping "final" when every line has a weight.
const isEstimate = lines.some((line) => !line.weight || line.weight.value <= 0);
const shippingLabel = isEstimate ? "Estimated shipping" : "Shipping";
Specialty Sales(opens in a new tab)
- B2B checkout: saving new addresses disabled for company address books, a note on the billing address, and shipping details on the confirmation page.
- Theme: header, home and footer redesign, a carousel widget, and an inquiry form with reCAPTCHA.
- Acumatica customer-specific pricing reaches the store through the agency’s Tranzetta middleware.
RF Venue(opens in a new tab) (wireless audio systems)
- Locked company-address notes in billing, shipping and multi-address shipping.
- A cheque/PO payment message, and a script for the PO order confirmation.
Craftparts(opens in a new tab) (CES)
- Checkout: a checkout and confirmation redesign, per-country postal-code validation for the US, Canada and Mexico, and lint and dev-environment fixes.
- Catalog migration: TypeScript scripts for CSV cleanup, SKU mapping, and weights and dimensions, with failure logs for anything that didn’t map.
- Theme: a fix to the B2B signup address book.
Architecture & integrations
Tranzetta is the agency’s middleware: Strapi v4 on Koa, with Postgres and Redis,
deployed on CapRover. It has about 70 services behind routes like /tranzetta/:client/:service.
The team built most of it. I extended it with two services:
- Tax-exemption email: sends the buyer’s exemption certificate with the order number through Mailgun, with the file attached (used by DuraLabel’s checkout).
- Carrier accounts: stores and returns a buyer’s own shipping carrier account (Postgres + API).
Outcome
Four distributors got checkouts that handle PO numbers, company address books and honest estimates. Specialty Sales sees Acumatica pricing on the storefront through Tranzetta.
Specialty Sales is still on BigCommerce. Empire Pro, RF Venue and Craftparts have since moved to Shopify, so those links go to their current stores rather than the checkouts I built.