Rebuy

Rebuy is a Shopify personalization platform for recommendations, upsells and a smart cart. It renders widgets into containers a theme provides, and it can change the cart itself, which makes it both a rendering surface the theme places and a source of cart state the theme has to stay in step with.

Documented at https://www.rebuyengine.com/.

How We've Used It

Two jobs recur. Placement: template-scoped slots that decide where a widget may appear, rather than letting a page accept one wherever an anchor happens to exist. And synchronization, which is the harder half — when the vendor's cart changes the cart, our code re-reads cart state and refreshes what depends on it: the drawer, the cart count, the buy box on the page the shopper is standing on. It runs in the other direction too, so our own grid and editorial add-to-cart paths announce what they did and both sides end up describing the same cart.

Builds Using It

6 further gated builds use it; their pages follow.

Related Entities

Our Role

Integration and coexistence. We provide the slots and keep theme state in step with the vendor's; the recommendation logic is the vendor's.

Builds

GA4 ecommerce dataLayer instrumentation across a Rebuy cart

A client-side event layer that hangs off the network rather than off the DOM: a `fetch` wrapper that recognizes a cart add, a diff against the previous cart so the event reports what changed, and item taxonomy read from a block the product page already renders.

Three Ships

Size-pill variant picker and quick add-to-cart inside product grids

One click handler, registered once on `document` in the capture phase, turns any grid card with a size-pill row into a variant selector and an add to cart — including cards that did not exist when the page loaded.

Three Ships

Shoppable-video to cart bridge: Hue add-to-cart event wired into Rebuy's drawer

A document-level listener that turns a shoppable-video app's add-to-cart intent into a real `cart/add.js` call with the cart sections rendered in the same response, then dispatches the theme's own cart events so the drawer, the count badge and every other subscriber update at once.

Three Ships

Subscription bundle grid with tiered unlock progress

Two custom elements on the subscription landing page: a card whose two-step button reveals a frequency choice and then posts the variant with that `selling_plan` to the cart, and a wrapper that fetches the live cart after every add and drives a merchandiser-defined tier bar from what it finds there.

Three Ships

DOM and shadow-DOM remediation layer for Yotpo, Rebuy and Recharge widgets

Corrections applied to markup the theme didn't write: `MutationObserver` routines that re-level a review widget's headings, demote headings inside a cart drawer, re-anchor a subscription add-to-cart control, and append a stylesheet inside a subscription widget's shadow root — every one re-entrant, so the fix converges instead of looping.

Three Ships