Cart
The cart is a storefront's editable order state: the cart page template, the drawer most themes render instead, and the line items, quantities and properties behind both. Shopify exposes it through the Cart AJAX API, so every change a shopper makes returns fresh cart JSON, and the theme is responsible for reconciling that response with what is already on the screen.
How We've Used It
The recurring problem is that the cart is written to from several places at once — a product form, a grid quick-add, an editorial block, a vendor widget — and every one of them has to leave the same state behind. Our cart work centers on one update path: mutate through the AJAX API, then re-render the drawer, the line items and the cart bubble from sections rather than patching the DOM by hand. Incentives sit on top of that: spend thresholds, gift lines and sample tiers are computed from cart totals on every render, so the messaging can never drift from the cart it describes. Bundles travel as line-item properties, because a property survives the handoff to checkout and a theme-side variable does not.
Builds Using It
- Build-your-own palette bundle on a collection template — Nudestix
- Bundle PDP: kits and build-your-own sets on a dedicated product template — Nudestix
- Cart 'Add Ons' cross-sell driven by the Product Recommendations API — Nudestix
- Cart page rebuilt around loyalty points, protected gifts and a dark order summary — Nudestix
- Threshold-driven free shipping, deluxe sampling and a first-order gift notice — Nudestix
- GA4 ecommerce dataLayer instrumentation across a Rebuy cart — Three Ships
- Size-pill variant picker and quick add-to-cart inside product grids — Three Ships
- Quiz results: a 34-rule, priority-ordered recommendation engine running client-side from metaobject data — LUS Brands
- Shoppable-video to cart bridge: Hue add-to-cart event wired into Rebuy's drawer — Three Ships
- DOM and shadow-DOM remediation layer for Yotpo, Rebuy and Recharge widgets — Three Ships
- Inline size picker on cart and PDP upsell cards — Three Ships
- Price snippet with a bundle 'value' metafield line and opt-out labelled price links — Nudestix
- Variant-aware price snippet with percentage + value savings badge — LUS Brands
24 further gated builds use it; their pages follow.