It wasn’t the capital letters: two Shopify gotchas from a Mother’s Day launch
The 30-second version
On a headless store, Shopify holds the products, but the website decides which pages exist, often from its own copy of the data. When a launch page 404s, check where the website actually gets its data before you blame Shopify. Make sure that copy has caught up, and compare text the same way Shopify does. Pickup-only checkouts skip the shipping address, which is the only place Shopify asks for a phone number. “Phone number or email” as the contact method is a partial fix.
On this page
In a kitchen, the worst kind of problem is when the walk-in fridge is full but the inventory sheet says you’re out. The servers tell guests you’re out of the special. Nobody checks the fridge, because the sheet says so.
That’s what happened on a client’s Mother’s Day launch. A few days before pre-orders opened, every product on the landing page was a 404. The products existed in Shopify, and the collection was set up. But the website was reading from the sheet, not the fridge. I wanted to find out why.
This post is going to solve that mystery, plus a second gotcha from the same week: phone numbers quietly disappearing from orders.
First, some background
The client is a food business with a headless storefront.
Explain it like I’m five
Shopify is the kitchen and the till: products, prices, stock and checkout. The website is the shop window, built separately. Sanity is the manager who decides what goes in the window this week.
“Headless” means the part visitors see (the head) is a separate app from the part that runs the shop (the body). It’s the same idea as a headless WordPress site, with Shopify in place of WordPress.
The other two pieces of background are tags and automated collections.
Explain it like I’m five
A tag is a sticky note on a product. An automated collection is a rule like “every product with this sticky note goes on this shelf.” Stick the note on a product and it joins the shelf on its own.
In Shopify, an automated collection’s rule is called a condition. It has three parts: what to look at, how to compare it, and the value. This one was:
- Product tag · is equal to · Mothers Day 2026
(The other kind, a manual collection, is one where you add each product yourself.)
Mystery 1: the vanishing products
The obvious suspect: capital letters
The condition said “Mothers Day 2026”, with capitals. The products were tagged “mothers day 2026”, all lowercase.
That looked like the answer. I changed the condition to match the tags exactly and saved it, and the 404s went away. Case closed, I thought: Shopify tags are case-sensitive, and I’d remember that next time.
Why Shopify had an alibi
Except Shopify’s own help docs say the opposite: automated collection conditions are not case-sensitive. Tags aren’t either; Shopify treats “Approved” and “approved” as the same tag. Plenty of blog posts say tags are case-sensitive, which is how I’d picked up the idea.
So Shopify had matched those products all along. My change worked, but not for the reason I thought. And when a fix works and you don’t know why, you haven’t really finished.
The real culprit: a stale copy
Here’s what was actually going on. The website never asks Shopify which products are in a collection. It reads a copy of each collection, stored in Sanity.
How a product reaches the landing page
- Product is taggedIn Shopify
- Collection matches itShopify’s rule picks up the tag
- Copy saved in SanityOnly when the collection syncs
- Website checks the copyNo match means a 404
When the website builds a product page, it asks one question: is this product in an active collection, according to the copy? If not, the page doesn’t exist, and visitors get a 404. In generic code, the check looks something like this:
// Generic example: build the page only if the product is in an active collection
const active = settings.collections.filter((collection) => collection.isActive)
const isVisible = active.some((collection) => collection.productIds.includes(product.id))
if (!isVisible) return {notFound: true} // the 404The catch is when that copy refreshes. It only updates when the collection itself syncs from Shopify. Tagging a product, or editing it, doesn’t touch the collection’s copy.
So the timeline went like this:
- The collection was created.
- The products were tagged afterwards.
- Shopify added them to the collection, just as it should.
- Sanity’s copy of the collection still had the old (empty) list.
- The website checked the copy, didn’t find the products, and returned a 404 for each one.
Editing and saving the condition counted as a change to the collection, so it triggered a fresh sync. The copy caught up, and the pages appeared. Any edit would have done it. The capital letters were a coincidence.
Explain it like I’m five
Back to the kitchen. Shopify is the fridge, and Sanity’s copy is the inventory sheet. The new dishes were in the fridge, but nobody had updated the sheet, so the website told visitors they didn’t exist.
The beginner lesson
In a headless setup, find out where the website actually gets its data before you blame the source. Shopify was right the whole time. The website was reading an older copy.
Plot twist: one thing really is case-sensitive
The capital-letters theory wasn’t completely wrong. It was just aimed at the wrong place.
Besides collections, the website’s settings in Sanity also have a list of active tags. A product with an active tag shows up too. That comparison happens in the website’s code, and code compares text exactly unless you tell it not to:
// Generic example: an exact comparison
['Mothers Day 2026'].includes('mothers day 2026') // false
// Compare the way Shopify does: ignore capitals and stray spaces
const clean = (tag) => tag.trim().toLowerCase()
activeTags.map(clean).includes(clean(productTag)) // trueShopify ignores capitals. Your code might not.
If an active tag in Sanity is “Mothers Day 2026” and the products say “mothers day 2026”, Shopify is happy, but the website’s exact match isn’t. Whenever your own code compares tags, titles or handles, clean them up the same way first.
Mystery 2: the missing phone numbers
The same week, staff noticed that customers’ phone numbers had stopped appearing on order confirmations. They use them to call about pickups.
Why
These orders are pickup only. Shopify asks for a phone number as part of the shipping address, and a pickup checkout skips that step. No shipping address, no phone number.
Shopify’s docs say it plainly: if checkout skips the shipping address step, the shipping phone setting isn’t applied.
Explain it like I’m five
The phone number lives on the delivery label. A pickup order has no delivery, so there’s no label, and no phone number.
There’s no “require a phone number” box for pickup
Shopify has no setting that requires both an email and a phone number as the contact method. Making the shipping address phone number required doesn’t help either, because pickup orders don’t have a shipping address.
What I recommended
In the Shopify admin, go to Settings → Checkout, and under Customer contact method, choose Phone number or email.
It’s a partial fix, and it helps to know exactly what it does:
- The contact field takes one or the other, not both. Customers who type an email still won’t give a phone number. Customers who’d rather use a phone number now can.
- Most customers still use email, and for them nothing changes. Their confirmation arrives by email as before.
- Customers who use a phone number get a single text confirming the order, instead of an email. Shopify sends it for free in supported countries, including the US. Staff can see the phone number on the order and call.
If you need a phone number from every customer, it has to come from somewhere else. On a headless store, the website’s own cart could ask for one before checkout and pass it along with the order. That’s a code change, though, not a setting.
What could go wrong
What could go wrong
- Products are tagged after the collection is created, and the website’s copy never catches up.
- A tag is typed slightly differently on one product (“Mother’s Day” instead of “Mothers Day”, or an extra space). Shopify ignores capitals, but not apostrophes or extra words.
- The website’s own code compares text exactly, even though Shopify doesn’t.
- Pages were built and cached before the products were ready, so it takes a rebuild or a refresh for them to show up.
- Checkout is switched to pickup only, and nobody notices the phone numbers are gone until staff need one.
- You only test launch pages in preview, where things can show up that the public site hides.
How to stop it happening again
Step 1:Tag first, then create the collection
Create (or save) the collection after the products are tagged. If you have to tag more products later, open the collection and save it once more. On this kind of setup, saving the collection is what refreshes the website’s copy.
Step 2:Pick one way to write tags
For example: lowercase, hyphens instead of spaces, and the year, like mothers-day-2026. Write the rule down where the whole team can find it, and copy and paste tags instead of retyping them. Use exactly the same text anywhere else the tag appears, like an active tags list in your CMS.
Step 3:Click one product before launch
The day before launch, open the landing page in a private window and click a product. If it opens, the copy has caught up. If it’s a 404, save the collection and try again. While you’re there, place a test pickup order and check what the confirmation shows.
Step 4:The proper fix: let product updates refresh collections
The real fix is in code: when a product changes, also resync the collections it belongs to. Remember the collections it left as well (like when a tag is removed), so those copies don’t keep a product that should have gone.
// Generic example: runs when Shopify says a product changed
export async function onProductUpdate(product) {
await saveProductCopy(product)
// Collections the product is in now (asked from Shopify),
// plus the ones our copy says it was in before
const now = await getCollectionIdsFromShopify(product.id)
const before = await getCollectionIdsFromCopy(product.id)
for (const id of new Set([...now, ...before])) {
await syncCollection(id)
}
}Once that’s in place, the order you do things in stops mattering.
What I’d tell past me
Find out where the page actually gets its data. I went straight to Shopify because that’s where the products live. But the website wasn’t asking Shopify anything. It was reading a copy, and the copy was out of date. In a headless setup, that’s the first question to ask.
Check the docs before you believe the explanation. I was sure it was capital letters, and half the internet would have agreed with me. Shopify’s own help page says otherwise. Five minutes of reading saved me from writing the wrong lesson into this post.
Click one product before launch day. The cheapest test in the world: open the landing page, click a product, see if it loads.