Skip to content
All work

Case study · Agency

DuraLabel: theme, checkout & shared mega menu

Lead developer for an industrial label and safety-signage brand: a quick-order pad, a tax-exemption checkout flow, ship-on-your-own-carrier, and one mega menu shared by BigCommerce and HubSpot.

Role
Lead developer
Client
Graphic Products / DuraLabel
Via
Four13 Group2022 – 2024
Project
2023
Platforms
BigCommerceHubSpot
  • Stencil
  • Handlebars
  • checkout-js
  • React
  • TypeScript
  • Storefront GraphQL
  • Vite
  • Netlify
  • GitHub Actions
  • Authorize.Net

Context

Graphic Products sells DuraLabel industrial label printers and safety signage, mostly to businesses. Their store runs on BigCommerce and their marketing site on HubSpot. I was the lead developer on the account at Four13, a US BigCommerce agency.

B2B buyers need things a consumer checkout doesn’t have: tax exemption, shipping on their own carrier account, and fast reordering by SKU.

What I built

Stencil theme (287 of 435 commits)

Built on the agency’s “Roots” base, which extends Cornerstone:

  • A custom mega menu (see below for how it’s shared).
  • A quick-order pad: enter SKU + quantity, the theme checks stock, then adds everything through the Cart API.
  • Storefront GraphQL helpers for variant paging and showing prices on category cards.
  • Shopper Approved ratings, and unknown URLs routed to HubSpot’s 404 page so both sites feel like one.

checkout-js fork (React + TypeScript, main author)

The checkout is a fork of BigCommerce’s open-source checkout-js, deployed to Netlify through GitHub Actions.

  • Tax-exemption flow. The buyer uploads an exemption certificate during checkout. Middleware temporarily changes the customer’s tax code, and emails the certificate along with the order number.
  • “My Own Carrier.” Buyers can ship on their own FedEx or UPS account, choosing from US and international service lists. The account is saved and reloaded next time. I changed the shipping step’s completion logic so the step counts as done when a carrier account is used.
  • Authorize.Net save-card forced on, and account creation sends buyers to B2B signup.

One mega menu, two platforms

The mega menu had to look and behave the same on the BigCommerce store and the HubSpot site. I built it as a Vite + TypeScript IIFE bundle, loaded by a plain script tag on both. The README explains why it ships as IIFE rather than ESM: loading module scripts across origins needs CORS, while a classic script tag works the same on both platforms.

// vite.config.ts: illustrative, one self-contained file any site can <script src> in.
import { defineConfig } from "vite";

export default defineConfig({
  build: {
    lib: { entry: "src/mega-menu.ts", name: "MegaMenu", formats: ["iife"] },
    rollupOptions: { output: { entryFileNames: "mega-menu.js" } },
  },
});

Architecture & integrations

  • Storefront: Stencil theme + Storefront GraphQL + Cart API.
  • Checkout: checkout-js fork on Netlify, talking to the agency middleware for tax exemption and certificate email.
  • Marketing site: HubSpot, sharing the mega menu bundle and the 404 page.

Outcome

duralabel.com still runs on BigCommerce. One menu bundle serves both sites, and the checkout handles B2B tax exemption and carrier accounts that the stock checkout can’t.