One Stencil theme for several stores

After a US store chain moved from Shopify to BigCommerce, its stores lost everything that depended on Liquid, metafields and metaobjects. I extended one Stencil theme so it brings that back for several brands, each with its own look and its original URLs.

BigCommerce

Results

One Stencil theme runs several BigCommerce stores, each looking like its old Shopify store.

Problem

FAQs on products and categories, collection sliders, editable deal blocks, review widgets, product inserts in blog posts and generated menus all had to return. The stores had to look like before and keep their SEO, and the content had to stay editable in the admin. Several brands had to share one codebase.

Solution

One theme in one repository, with a branch per store. Migrated data lives in BigCommerce metafields with storefront access, as handles or JSON. The theme reads it in the browser through the Storefront GraphQL API, turns each handle into a catalogue entity with a route query, in batches that respect the API's complexity limit, and renders FAQ accordions, sliders, banners and breadcrumbs.

Key decisions

  1. Chose one branch per store in a single repository

    Why Shared fixes move between stores without duplicate code, while each store's config points at its own store.

  2. Chose to keep Shopify handles in metafields, not BigCommerce IDs

    Why Values stay readable and editable in the metafields manager, and the mapping happens on the storefront.

  3. Chose to split storefront queries into batches

    Why Twelve categories in one query exceeded the complexity limit, and the collection slider vanished from the page.

  4. Chose to keep Shopify's URL structure

    Why It protects SEO and outside links. I removed the early script redirects once the URLs matched, because crawlers do not run them anyway.

Have a similar task?

Send a link and a few lines about what you need. I reply within 1 business day with questions or a fixed estimate.

Get a fixed estimate
  • The estimate is the priceHours and total agreed before work starts. No re-estimates.
  • No prepayment on small projectsProjects up to 20 hours usually need none.
  • 30-day warrantyCritical bugs from my work get fixed free, even after that.

My gift: start a Shopify store for €1 for your first month

Open your store through my partner link and try Shopify for yourself. When you need a theme, an app or a migration, I'm one message away.

Claim the €1 month (opens in a new tab)

Affiliate link: I may earn a commission if you sign up. The offer is set by Shopify and may vary by region.