Case study · Sleep technology, e-commerce
A custom store in Webflow, with Shopify behind it.
Dreamspan sells Lucid and Lucid Pro, an adaptive sleep system. They wanted full control of their store design instead of a generic Shopify theme. We built their design in Webflow and kept Shopify as the backend: batch sales with live stock, a progress bar and checkout links from our own API, and a referral code that unlocks buying.
The problem
Full design control,
Shopify checkout.
Dreamspan did not want a generic Shopify theme. They designed every page themselves and needed it built exactly, so the store had to live in Webflow while Shopify kept handling products and orders.
They also sell in batches. Batch 1, 2 and 3 have a fixed number of units, Lucid Pro has its own limit, and batch 4 has no limit. When one batch sells out, the next has to open on its own, with the right price and message on the site.
What we did
What we built
for Dreamspan.
Shopify set up for a custom front end
In Shopify we created the custom data each product needs for the design, such as images, specs, batch and badge text, so the Webflow pages can show it.
Batches that open on their own
Our code checks stock per batch. A progress bar shows how much is claimed, and when a batch sells out the next one opens with its own price and message.
Referral codes that unlock buying
Buying unlocks with a 6-digit referral code. A referral link fills the code in for the visitor, or they can type it in themselves.
Inside the build
An API between
Webflow and Shopify.
We wrote an API and hosted it on Webflow Cloud. It reads products, stock, prices and batch messages from the Shopify API and sends them to the Webflow front end, so everything on the page comes from Shopify.
For each purchase the site builds a checkout link for the open batch and the chosen product, and Shopify takes the order. When a unit sells, the batch count goes down and the progress bar moves. We also built the other pages of the site in Webflow from their design.
Screens we built
The Dreamspan store,
page by page.
Pages we built in Webflow from the Dreamspan design, live today. Click any screen to see it full size.
4 sales batches2 products6-digit invite code to unlock buying1 API on Webflow Cloud
Results
What it means for the team.
Dreamspan has a store that looks exactly like their design and still checks out through Shopify. Batches open and close on their own, prices and messages change from Shopify without touching Webflow, and referral codes control who can buy.
The team edits pages in Webflow and products in Shopify, each in the tool made for it.

Next


