Variants don't show on live site
Variants work in the canvas but don't appear on your published site. Here's how to fix it.
Canvas vs live site
Canvas: Shows designVariants from the CMS snapshot (static labels for layout).
Live site: Fetches real variants from Swell API (with availability).
If variants show in canvas but not on the live site, the issue is with the runtime fetch.
Common causes
1. Credentials not injected
The published site can't fetch from Swell without credentials.
Fix:
Open TGC plugin in Framer
Verify you're connected to Swell
Republish your site
2. Product has no variants in Swell
The product exists but has no variant options configured.
Check:
Go to Swell dashboard
Open the product
Look for Variants or Options section
Verify variants exist (Size, Color, etc.)
Fix: Add variants in Swell, then re-sync.
3. swellId mismatch
The CMS has an old or incorrect swellId.
Fix:
Re-sync your products
The correct
swellIdwill be updated
4. Runtime not loading
Check:
Open published site
Open dev tools (F12) → Console
Type:
window.__tgcShould return an object, not
undefined
Fix:
Check for JavaScript errors
Ensure TGC components are on the page
Republish
5. API errors
Check:
Open dev tools → Network tab
Filter by "swell"
Look for failed requests (red)
Check the response for error messages
Debugging checklist
Canvas shows variants, live doesn't
This specific scenario usually means:
Credentials issue — Republish your site
Swell API error — Check Network tab for errors
Product deleted in Swell — The CMS still has old data; re-sync