Clever Cookie
How I rebuilt a Wisbech bakery's shop as a custom headless Shopify storefront: quick shop, build-a-box bundles, collection dates, TikTok Shop and campaigns.
How it has grown
Clever Cookie started in 2019, and the shop has changed a lot since then. It has gone through several stages:
- WooCommerce. The shop began on WooCommerce.
- Shopify. It later moved over to Shopify.
- TikTok Shop and social selling. Selling through TikTok Shop and social media came next.
- A new website and a custom admin dashboard. Most recently a new website has been developed, along with a new admin dashboard made for the business.
The dashboard is not pictured here, because it is private to the business. Custom dashboards and admin tools are something I build for other businesses too: see web apps.
A bakery that had outgrown its Shopify theme
Clever Cookie bakes cookie pies, deep dish cookies and slices in Wisbech and posts them across the UK. After the move to Shopify the shop ran on a standard theme, and as the business grew the theme began to hold it back in three ways.
It was slow. The theme took over four seconds to load on a phone. For an online shop that is a long time: people leave before they have seen a single bake.
It could not sell on TikTok properly. Clever Cookie wanted to sell through TikTok Shop as well as its own website, without keeping two separate lists of products and stock.
It did not fit how people buy cakes. Customers order several different bakes at once, by the slice or whole, often as a box and often as a gift. A theme built for general shops made all of that clumsy.
The approach: headless Shopify
I did not replace Shopify. It is very good at the parts customers never see: products, payments and orders. What I replaced was the part they do see.
This is called a headless Shopify shop. Shopify stays behind the scenes, and the website in front of it is built from scratch and talks to Shopify through its Storefront API. Payment still happens on Shopify’s own checkout.
For Clever Cookie that meant:
- Speed. The site carries only the code it needs, with none of a theme’s extras.
- Freedom. Every page is designed for a bakery, not adapted from a general template.
- Room to grow. The same system feeds TikTok Shop and runs the seasonal campaigns.
As a freelance Shopify developer I build both kinds of shop. Most small businesses are well served by a good theme, and I say so. This one needed more. There is more about how I work on shops on the online shop service page.
What I built
The storefront
The shop is built with SvelteKit and runs on Cloudflare’s network. Product pages, collection pages, search and the basket were all designed and built for Clever Cookie.
The parts that matter most to customers are shown in detail further down this page: the quick shop, the switch between a slice and a whole bake, the box builder, collection from the bakery and the basket.
TikTok Shop
Products are managed in one place and listed on both the website and TikTok Shop. Orders placed on TikTok come into the same system as website orders, and stock levels are sent to TikTok so the two stay in step.
Finding the right bake
Collection pages can be sorted and narrowed by price, by type, by how many people a bake serves and by flavour. Search covers products and flavours. Each product lists its ingredients, with allergens picked out in bold.
Extras for bigger orders
A party planner works out how much to order for a number of guests. Corporate gifting lets a business place one order that goes to many addresses. Both were built for this shop.
Campaigns
I also run the shop’s seasonal campaigns: homepage banners, a Halloween game and the emails. Those are shown towards the end of this page.
The results
- Pages load in under a second, down from more than four on the old theme
- One list of products feeds both the shop and TikTok Shop
- A shop built for a bakery: slices and whole bakes, boxes, collection and gifts all work the way customers expect
Before and after
| Measure | Before (Shopify theme) | After (headless) |
|---|---|---|
| Page load | 4.2s | 0.8s |
| Lighthouse performance score | 42 | 99 |
| Time until the page can be used | 6.1s | 1.2s |
| JavaScript sent to the browser | 847 KB | 89 KB |
| Images on an average page | 2.4 MB | 380 KB |
If your shop is on a platform that is holding it back, I can also move it across without losing your place on Google.
Want something like this? The service behind it: Shopify and e-commerce websites (From £1,495).
How the shop works, and why
A custom shop is only worth building if it makes buying easier. These are the parts of Clever Cookie's shop that were built around how people buy from a bakery, shown as they are on the live site today.
The whole range on one page
Most people who order from a bakery want several different things. On a typical shop that means opening a product, adding it, going back, and doing it again for every bake.
The quick shop puts everything on one page instead. Buttons along the top narrow it to cookie pies, deep dish cookies, slices and so on.
- Add to cart puts the bake in the basket and the page stays exactly where it is
- The button then turns into plus and minus controls, so changing a quantity is one tap
- On a computer the basket stays open beside the list; on a phone a bar at the bottom shows the number of items and the subtotal, and opens the basket
A slice or the whole thing
Cookie pies and slabs are sold two ways: by the slice, or whole. Listing each one twice would double the length of the page and make it harder to compare.
So each bake has one card with a switch on it. Flip it from slice to whole and the photo, the price and the button all change to match.
- One card per bake keeps the list short enough to scan
- Someone buying a treat and someone buying for a party use the same page
Build a box, save as you fill it
Boxes are where a bakery makes a bigger sale, so building one had to be easy. The customer picks a box size, with the saving shown on each size, then fills the spaces with the flavours they want.
The box is drawn beside the list and fills up as they choose, with a running count and the price. Auto-fill completes the rest from what is in stock, for anyone who wants a surprise.
- The button counts down what is left to choose, and only becomes an add button when the box is full
- The basket notices when loose items could make a box, and offers to turn them into one and save
Delivered, or collected from the bakery
Everything is baked in Wisbech, and local customers can collect. The basket asks one question, delivery or collection, before the checkout.
Choosing collection opens a panel with the bakery's address, its collection hours and the earliest day the order can be ready. A calendar lets them pick a later day, which matters for birthdays.
- Only days the bakery can do are offered, so nobody books a day it is closed
- The customer gets an email when the order is ready to collect
A basket that answers the questions
People hesitate at the basket when something is unclear. This one says what the order costs, how far it is from free delivery, and whether prices include VAT, before anyone reaches a payment page.
A handwritten gift note can be added here too, with a choice of card and a short message. Payment then happens on Shopify's own checkout, which customers already recognise and trust.
- A bar shows how much more to spend for free delivery, and fills as the basket grows
- Quantities can be changed and items removed without leaving the page
- A link for sending gifts to several addresses leads to corporate gifting
This is the kind of work covered by my online shop service: Shopify behind the scenes, and a storefront built around how your customers actually buy. If you are on another platform, moving across is part of the job.
On every screen
Most visitors arrive on a phone. These are fresh captures of the live site at tablet and phone size.
The phone scrolls through the page as you scroll this one.
Campaigns and marketing
The shop is only half the job. I also run Clever Cookie's seasonal campaigns: the homepage banners, a Halloween game, the emails and the cards that go in the box.
The Halloween banner
For Halloween week the homepage led with the two limited bakes. This is the real banner, running here with the same code as the shop.
Try it Move your pointer or tap around the page. The sugar eyes on the mummy blondie follow you. Scroll, and a few bats cross the screen.
On the homepage from 24 October to 1 November 2026.
The cauldron lucky draw
The banner's second button led to a game. Visitors stirred a 3D cauldron by dragging round the pot, and each turn of the spoon revealed another line of a chant, read aloud if the sound was on.
- Everyone who stirred got a code for 10% off
- They could then enter an email address to see whether their cauldron had brewed a lucky 15%: one go each, 1 in 5 won, and only 100 lucky codes existed
- A winner's code was created in the shop on the spot, worked once, and arrived by email
- A finished spell could be passed on with a share button, which sent a story card and a link but never the code
These are the game's own screens, not artwork about it. The page is switched off outside Halloween, so they were captured from its preview mode.
-
Stirring: each turn of the spoon reveals a line of the chant.
-
Everyone gets a code, then the chance to try for a better one.
-
One in five win. The code shown is from the game's preview mode.
The Bonfire Night banner
A week later the homepage switched to the S'mores cookie pie. Fireworks go off in the sky behind the slice, in six different shapes, and pass behind the bake.
Try it Press and drag on the picture to draw with a sparkler. On a phone, hold for a moment first.
On the homepage from 1 to 8 November 2026.
Email marketing
Campaign emails go out through Shopify Email. I built a small system that turns a short description of a campaign into a finished email in the house style, so a new one takes minutes and always looks like Clever Cookie.
- Seasonal campaigns, including Halloween and Bonfire Night
- Every link is tagged, so an order can be traced back to the email it came from
- The fireworks at the top of the Bonfire Night email are an animation made with the same code as the homepage banner
- Automatic emails too: a welcome with a first-order code, review requests and a birthday club
Two of the campaign emails, as sent. Scroll inside each one.
Gift cards in the box
The brand carries on when the box arrives. A customer can add a gift note in the basket: they choose a card and type a short message, and the bakery writes it out by hand and packs it with the order. These are the three A6 cards on sale now.
-
A little message, for any occasion.
-
Merry Christmas.
-
Happy Birthday.
A closer look
-
A product page: one big photo, the choices that matter and the details tucked into fold-out panels.
-
A collection page, with filters for price, servings and flavour.
-
Corporate gifting: one order, sent to many addresses.
-
The party planner works out how much to order for the number of guests.
Questions about shops like this
What is a headless Shopify shop?
Shopify still holds the products, takes the payments and manages the orders, but the website customers see is built separately and talks to Shopify behind the scenes. That removes the limits of a theme: the shop can be laid out and can behave exactly as the business needs, and it can be made much faster.
Do customers still pay through Shopify?
Yes. On Clever Cookie the basket hands over to Shopify's own checkout, so payments, order emails and refunds all work the way Shopify shops normally do.
Does every online shop need to be headless?
No. A well-chosen Shopify theme is the right answer for most small shops, and it costs far less. Headless is worth it when speed really matters, or when you need things a theme cannot do well, such as a box builder or a shop that also feeds TikTok Shop.
Can you build an online shop for a bakery or food business?
Yes. Food shops have their own needs: bakes that sell by the slice or whole, boxes and bundles, days for collection, and ingredient and allergen information. Clever Cookie's shop handles all of those, and I can build the same for other food businesses.

