Prep Meal – Meal Prep & Meal Plan Shopify Theme


Prep Meal is a Shopify Online Store 2.0 theme built for weekly meal-prep businesses: meal plans with a slot-based box builder, a weekly rotating menu, a delivery-area checker with a live map, gift cards, private-chef bookings, and a full set of editable sections.

Theme Features:
  • 31 ready JSON templates (home, meal plans, products, contact, delivery, gift cards and all Shopify system pages)
  • 85 sections and 58 snippets — every section editable in the theme editor
  • Meal plans in 5, 6, 7, 10 and 15 plate variants
  • Slot-based “Build your box” with 5-plate / 10-plate discount tiers
  • Weekly menu with hover previews, nutrition facts and meal details
  • Metaobject driven content (meal plans, FAQ, testimonials, steps, delivery zones) with block fallback
  • Delivery-area checker with town/ZIP search and Leaflet map
  • Gift card purchase flow with recipient, delivery date and message
  • Private chef experience page with enquiry form
  • Ajax cart drawer, predictive search, quick order list
  • GSAP scroll animations with reduced-motion support
  • Cart drawer, filters, localization and customer account pages included
  • Translation-ready locales, accessible markup, lazy-loaded imagery
  • Well documented

  • Created: October 22, 2026
  • Last Update: October 26, 2026
  • Version 1.3
  • By: SANI UL HASSAN
  • Email: [email protected]

Prep Meal is not a generic store theme with a meal section bolted on. The whole flow — plan, build, order, deliver — is built into the theme.

Area What you get
Meal plansDedicated landing templates for 5, 6, 7, 10 and 15 plate plans with hero facts, weekly menu, benefits, chef story, reviews, FAQ and plan switcher.
Box buildercm-build-box turns plan variants into plates. Customers fill slots to unlock 15% (5 plates) and 20% (10 plates) rates, then add the box to the cart in one request.
Weekly menuMeals with photo, sides, calories, protein, carbs and fat. Hover (desktop) or tap (mobile) to preview; “Load more” reveals the rest.
Delivery checkerTwo map styles: a styled street map and a town/ZIP checker. Both accept a town list with optional coordinates and answer any place the customer types, with the editable messages for inside, outside and not found.
Gift cardsAmount picker, recipient details, send-on date and personal message, wired to a Shopify gift card product.
MetaobjectsFive content types so a large menu, FAQ list or testimonial wall can live outside the theme editor and be reused on any page.
  • Shopify plan: Basic or higher. Online Store 2.0 themes require a plan that includes the theme editor.
  • Theme version: Online Store 2.0 (JSON templates). Do not install on a vintage 1.0 store.
  • Products: A product per meal plan (for example 5-meal-plan) whose variants are the individual meals.
  • Optional: A gift card product, and a Shopify plan that supports gift cards, for the gift card page.
  • No apps required. Every feature — box builder, delivery checker, gift card flow — ships in the theme.
  • Browser support: Chrome, Firefox, Safari, Edge (latest two versions), iOS Safari and Chrome for Android.
No coding needed. Install the theme, connect your products and metaobjects, and fill the sections in the theme editor. Code editing is only required if you change the design system itself.

The download package contains:

  1. prepmeal-shopify.zip — the installable theme (upload this in Shopify admin)
  2. documentation — this help file (open docs/index.html)
  3. CONTENT-GUIDE.md — a short, non-technical content entry guide you can hand to the client

Inside the theme the folder structure is:

  1. assets/ — CSS, JavaScript, images, icons and SVG files
  2. blocks/ — theme app blocks
  3. config/ — settings_schema.json (settings definitions) and settings_data.json (saved values)
  4. layout/ — theme.liquid and password.liquid
  5. locales/ — translation files for all storefront strings
  6. sections/ — all page sections, including the cm-* meal-prep sections
  7. snippets/ — reusable partials (cards, icons, price, media)
  8. templates/ — JSON templates for every page type

Option A — Upload the ZIP (recommended for first install):

  1. In Shopify admin go to Online Store → Themes.
  2. Click Add theme → Upload zip file and choose prepmeal-shopify.zip.
  3. Wait for the theme to upload, then click Customize to preview it.
  4. When you are happy, click Publish to make it the live theme.

Option B — Shopify CLI (recommended for development):


# Log in to the store you develop against
shopify theme dev --store your-store.myshopify.com

# Push all files to a new unpublished theme
shopify theme push --store your-store.myshopify.com --unpublished

# Later: push only the files you changed
shopify theme push --store your-store.myshopify.com --theme 123456789 --only sections/cm-build-box.liquid

After installing, do these four things in order:

  1. Upload your logo and favicon in Theme settings → Logo.
  2. Create the menus under Content → Menus (main menu, footer menu) and select them in the header and footer sections.
  3. Create your metaobject definitions and entries (see Metaobjects).
  4. Assign the meal plan templates to your pages and products (see Templates & Pages).
Keep a backup. Use Online Store → Themes → … → Duplicate before you edit the live theme, so you can always roll back.

The layout file loads the global design tokens, the font faces and the page chrome. Every content section is loaded by its own JSON template.


<!doctype html>
<html class="js" lang="{{ request.locale.iso_code }}">
<head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width,initial-scale=1">
  <link rel="canonical" href="{{ canonical_url }}">

  <!-- Fonts: body + heading -->
  <link href="https://fonts.googleapis.com/css2?family=Jost...&family=Plus+Jakarta+Sans...&display=swap" rel="stylesheet">

  <!-- Global behaviour -->
  <script src="{{ 'constants.js' | asset_url }}" defer="defer"></script>
  <script src="{{ 'pubsub.js' | asset_url }}" defer="defer"></script>
  <script src="{{ 'global.js' | asset_url }}" defer="defer"></script>
  {%- render 'gsap-animations' -%}

  {{ content_for_header }}
  {{ 'base.css' | asset_url | stylesheet_tag }}
</head>
<body class="gradient">
  {% section 'announcement-bar' %}
  {% section 'header' %}
  <main id="MainContent">{{ content_for_layout }}</main>
  {% section 'cm-footer' %}
  {% section 'cart-drawer' %}
</body>
</html>

How a page is assembled: each file in templates/ is a JSON map of sections. Shopify renders those sections in the order listed in the template, and each section renders its blocks. That means you can reorder, duplicate or remove a section on one page without touching another page.


{
  "sections": {
    "mp_page": { "type": "cm-meal-plan-page", "settings": { "plan_label": "5 Meal Plan" }, "blocks": { } }
  },
  "order": ["mp_page"]
}

Global settings live in Online Store → Themes → Customize → Theme settings (the gear icon). They are stored in config/settings_schema.json and applied in layout/theme.liquid as CSS custom properties.

Group Controls
LogoLogo image or theme asset filename, logo width, favicon.
ColorsColor schemes used by sections: background, text, button, secondary label and shadow.
TypographyHeading and body font, heading scale, body scale.
LayoutPage width in px, section spacing, grid spacing.
AnimationsScroll reveal, GSAP animations, hover effects.
Buttons / Inputs / CardsBorder thickness, corner radius, shadow for buttons, variant pills, inputs, product cards, collection cards, blog cards, text boxes, media, popups and drawers.
BadgesBadge position and radius, sale and sold-out color schemes.
Brand informationBrand headline, description, social links.
Search / Currency / CartPredictive search, currency code display, cart type (drawer or notification), cart color scheme.

Theme identity. The theme metadata block at the top of config/settings_schema.json holds the published name, version and support links. Update theme_version when you release an update:


{
  "name": "theme_info",
  "theme_name": "Prep Meal",
  "theme_version": "1.3.0",
  "theme_author": "SANI UL HASSAN",
  "theme_documentation_url": "https://prepmeal.myshopify.com/pages/documentation",
  "theme_support_url": "mailto:[email protected]"
}

By default the theme loads these Google Fonts:

  • Jost — body text (400, with bold and italic variants)
  • Plus Jakarta Sans — headings (700)

The font link is in layout/theme.liquid:


<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Jost:ital,wght@0,400;0,500;0,600;0,700;1,400&family=Plus+Jakarta+Sans:ital,wght@0,500;0,600;0,700;0,800;1,500&display=swap" rel="stylesheet">

The CSS variables that every section uses are defined in the :root block of the same file:


:root {
  --font-body-family: "Jost", sans-serif;
  --font-body-style: normal;
  --font-body-weight: 400;
  --font-body-weight-bold: 700;

  --font-heading-family: "Plus Jakarta Sans", sans-serif;
  --font-heading-style: normal;
  --font-heading-weight: 700;

  --font-body-scale: 1;
  --font-heading-scale: 1.1;
}

Important: the heading font is set directly in layout/theme.liquid. The Heading font picker in Theme settings loads the font file, but the visible heading font comes from --font-heading-family. To change headings reliably, change both — the picker for the file, and the variable for the rendered font.

To use a completely different typeface, replace the Google Fonts link, then update --font-body-family and --font-heading-family. Section CSS reads those variables through --prep-font and --prep-display in assets/prep-content.css.

Store-wide colors are edited as color schemes in Theme settings → Colors. Section CSS uses the generated CSS variables (--color-background, --color-foreground, --color-button), so changing a scheme updates every section that uses it.

The meal-prep sections share their own palette, defined once at the top of assets/prep-content.css:


.prep {
  --prep-brand: #f5a623;        /* amber — buttons, badges, highlights */
  --prep-brand-dk: #e3931a;     /* amber hover */
  --prep-brand-light: #fef3df;  /* amber tint */
  --prep-ink: #111111;          /* near-black text */
  --prep-text: #1a1a1a;         /* body text */
  --prep-muted: #5a5a6a;        /* secondary text */
  --prep-cream: #fafaf8;        /* page background */
  --prep-warm: #f4f2ee;         /* soft panels */
  --prep-border: #dddae5;       /* hairlines */
  --prep-success: #00664a;
  --prep-danger: #b3200a;
  --prep-radius: 1.2rem;
  --prep-radius-pill: 999px;
}

The default color schemes shipped with the theme:

Scheme Background Text Button Typical use
scheme-1#ffffff#000000#f5a623Default light sections
scheme-2#ffffff#262626#f5a623Product and collection cards
scheme-3#c2b7ac#262626#fdfdfdWarm neutral bands
scheme-4#092a49#ffffff#ffffffDark navy hero and CTA bands
scheme-5#f5a623#111111#111111Amber highlight blocks
scheme-charcoal#141414#ffffff#f5a623Dark sections
scheme-warm#f4f2ee#1a1a1a#f5a623Soft cream sections

Custom CSS. For one-off tweaks use Theme settings → Custom CSS instead of editing the theme files. The storefront menu font size is already set there:


.header__menu-item {
  font-size: 18px;
  text-transform: uppercase;
}

Rem scale: the theme root is 62.5%, so 1rem = 10px at the default body scale. A 1.6rem body size equals 16px. When you copy pixel values from a design file, either use px directly or divide by 10 to get rem.

The header is the standard Shopify header section with an extra meal-prep layer: a hanging circular logo seal and an order button.

Menus. Create them in Content → Menus, then select them in the header/footer section settings. Menus are not stored in the theme, so they survive theme updates.

  • Main menu — supports dropdown and mega menu types
  • Footer menu — policy and secondary links
  • Mobile drawer — built automatically from the main menu

Meal-prep header options (section settings):

Setting Type Notes
Logo position / Mobile logo positionSelectTop or middle, left or center.
Menu / Menu typeMenu, SelectDropdown, mega menu or drawer.
Sticky header typeSelectNone, on scroll up, always, or reduce logo size.
CM header styleCheckboxEnables the meal-prep header treatment. On by default.
Hanging logoCheckboxRenders the round seal over the header edge.
Seal sizeRangeDiameter of the hanging seal, in px (default 108).
Order label / Order linkText / URLRight-side call to action. Link it to your main meal plan page.

Announcement bar. Add one or more messages in the announcement-bar section. Each block supports text, a link, an optional dot and an optional phone number. Use the bar for cut-off reminders such as “Order by Friday 11:59 PM for Monday delivery”.

Footer. The theme ships cm-footer (Chef Matt footer) with a call-to-action band, brand column, link columns, contact block and newsletter form. The standard Shopify footer section is also available if you prefer the classic layout.

The theme has no single “store address” field. Location data lives in several separate places on purpose: the map centre, the delivery towns, the kitchen pin, the footer address and the contact page. Change all of them when you move the business, or a customer will see one city in the footer and a different city on the map.

There are no global location settings. Nothing under Theme settings controls the address, the map or the delivery towns. Every value is a section setting, so you change it on the page that renders it.
Where location data lives
What Section Where it shows
Map centre and zoomcm-delivery-map → center_lat, center_lng, zoomDelivery map on the product template
Headquarters pincm-delivery-map → hq_lat, hq_lng, hq_addressThe “HQ” popup on that map. Also accepts hq_place.
Delivery towns (pin map)cm-meal-plan-page → delivery_townsDelivery checker on every plan page
Kitchen pin (checker)cm-meal-plan-page → delivery_kitchen_lat, delivery_kitchen_lngCentre dot and zone circle. Accepts numbers or a place name.
Delivery towns (plate map)cm-meal-plan-page → plate_townsStyled plate map and town chips
Kitchen pin (plate map)cm-meal-plan-page → the kitchen word in plate_towns, else delivery_kitchen_lat / delivery_kitchen_lngCentre of the plate map and the ring around it. The marked town wins when both are set.
Kitchen label / addresscm-meal-plan-page → plate_kitchen_label, plate_kitchen_addressUnder the plate map
Delivery towns (metaobject)Product metafield custom.delivery_area_list, falling back to the same key on the shop-level shared metafieldsHighest priority. Wins over delivery_towns and plate_towns
Customer place lookupcm-meal-plan-page → delivery_msg_lookup_yes, delivery_msg_lookup_no, delivery_msg_lookup_failThe answer when a visitor types a place you did not list. Use {place}, {distance} and {query}.
Customer lookup (plate map)cm-meal-plan-page → plate_msg_lookup_in, plate_msg_lookup_outThe same answer on the plate map
Footer addresscm-footer → Contact info block → areaSite footer
Contact pagecm-contact-page → contact_item blocksContact page panels
Step 1 — Change the kitchen position

Open the theme editor, go to any meal plan page (/pages/5-meal-plan … /pages/15-meal-plan), select the CM meal plan page section and scroll to Delivery checker: map.

Easiest way — type the place name. Put a place in Kitchen latitude or place name (delivery_kitchen_lat) and leave the longitude alone. The theme looks the place up when the page loads and puts the pin, the delivery circle and the map centre there.


delivery_kitchen_lat = Hartland, Wisconsin     ← place name is enough
delivery_kitchen_lng =                        ← leave blank

You can be as loose as a town name or as precise as a full street address. Country-aware names resolve more reliably:


Waukesha
Waukesha, Wisconsin
N64W28381 Hawthorne Rd, Hartland, WI 53029

Exact way — use coordinates. Numbers always win over a lookup and skip the network call entirely:

  1. Set delivery_kitchen_lat to your latitude.
  2. Set delivery_kitchen_lng to your longitude.
  3. Set plate_kitchen_address to the address text you want shown, for example Waukesha, Wisconsin.
  4. Leave delivery_radius_km at 0 to auto-fit the zone circle to your farthest town, or set a fixed radius in km.

Latitude and longitude are decimal degrees, not degrees/minutes/seconds. Latitude is positive north of the equator, longitude is negative west of Greenwich — so a Wisconsin address is always lat positive and lng negative.

Place names in one field, numbers in the other. The theme decides by looking for a number. If the latitude field holds a word, it treats the pair as a place name and looks it up. If it holds a number, both fields are read as coordinates. Never mix a name into the longitude field.
Optional country hint. delivery_country narrows lookups when a town name exists in several countries — for example Hartland exists in both Wisconsin and Devon, England. Set it to United States, United Kingdom and so on.
Step 2 — Change the delivery towns

Name-only rows are enough. Write one town per line. If you leave the coordinates off, the theme finds the place for you:


Hartland
Delafield
Waukesha|53186,53188,53189
Pewaukee

The format is Name|ZIP,ZIP. Everything except the name is optional:

You type What happens
WaukeshaName only. The point is looked up automatically.
Waukesha|53186Name and ZIP. Point looked up, and customers can search by postcode.
Waukesha|53186,53188Several ZIPs for one town, comma separated, no spaces.
Waukesha|43.0117|-88.2315|53186Exact coordinates. Skips the lookup and is always fastest.
  • Paste the list into Delivery towns (delivery_towns).
  • Leave the field empty to keep the packaged Hartland / Lake Country list. An empty field never means “no delivery areas” — it falls back to the built-in list.
  • delivery_initial_chips controls how many towns show as buttons before “Show all”.
  • A town that cannot be found still appears as a searchable chip and still answers “yes we deliver” — it simply gets no pin on the map. Give it coordinates if you want it plotted.
  • Names resolve near your kitchen, not worldwide. The lookup is biased to the kitchen position so that Sussex finds Sussex, Wisconsin rather than Sussex, England. If a town still lands in the wrong place, add its state to that row — Sussex, WI.

The plate map takes the same idea with its own column order:


Name|ZIP,ZIP|left%|top%|kitchen|lat|lng

  • Only the name is required. Hartland|53029|41|29|kitchen works with no coordinates at all.
  • Add the word kitchen as the fifth column on the row that marks your base.
  • lat and lng (sixth and seventh columns) are optional. Towns that already exist in the theme's built-in coordinate table work without them; any other town is looked up by name.
  • left% and top% (third and fourth columns) are optional leftovers from the older stylised plate. Pins are now placed from real coordinates, so you can leave these out on new rows.
  • plate_zone_radius is kept for compatibility with older lists. The ring now fits itself to your farthest town, so leave it at its default.

The plate map is a styled street map, not a drawing. It renders real OpenStreetMap tiles, so towns, roads and labels are always in the right place — you never have to eyeball a position. The map opens framed on your kitchen with the delivery ring around it, and the town chips sit alongside it.

The marked town wins over the kitchen setting. The plate map centres on delivery_kitchen_lat and delivery_kitchen_lng, but if one of your plate_towns rows carries the word kitchen, that town's position is used instead. If you move the business, update both — or remove the kitchen word from the town row and let the coordinate fields decide.
Only towns the theme can place get a pin. A row whose name is unknown to the built-in table and that has no coordinates needs a lookup to succeed. It still appears as a chip and still answers “yes we deliver” — it just has no pin until the place resolves.
How the automatic lookup works

The lookup runs in the customer's browser against two free, key-less services, in order: Photon and then OpenStreetMap Nominatim. Nothing is stored on your store, and you do not need an API key or a billing account.

  • Results are cached in the browser, so a returning visitor causes no new requests for the same place.
  • Requests are queued one at a time, so a long town list never floods the endpoint.
  • The map still renders if both services are unreachable — it falls back to any coordinates you typed.
  • Towns already known to the theme's built-in table are never looked up, so the default list costs nothing.
What a customer can type into the map

Customers are not limited to the towns on your list. Anything they type that is not one of your towns is looked up and plotted on the map, then compared with your delivery circle.

Customer types What the map does
Waukesha (one of your towns)Highlights your existing pin and shows the “we deliver” message. No lookup needed.
53186 (one of your ZIPs)Matches the town that ZIP belongs to.
Oconomowoc (not on your list)Finds the place, drops a ring on it, and reports whether it falls inside your zone.
N64W28381 Hawthorne Rd, Hartland, WIFinds the exact building, not just the town.
ChicagoFinds it, shows the distance from your kitchen, and marks it outside the zone.
asdfghReports that the place could not be found and suggests trying a town or ZIP.
  • The map previews a place while the customer is still typing — one request after a short pause, not one per keystroke.
  • The “inside” or “outside” verdict uses the real distance to your kitchen, so it stays correct after the visitor pans or zooms the map.
  • Your own towns always win. If a listed town and a stray place name match, the listed town is selected.
  • The suggestion list is keyboard operable: ↓/↑ move through towns and the lookup row, Enter selects, Esc closes it. Picking the lookup row is the same as submitting the text.
  • An “outside the zone” answer from the street-map checker also shows the Ask us about your area link, so a customer just beyond your radius still has a way to reach you. Set delivery_contact_url and delivery_contact_label, or leave the URL empty to hide the link.
  • On the plate map, a search tries ZIP first (exact, then prefix), then a town name — exact, then “starts with”, then “contains”. A listed town flies the map to its pin; anything else is geocoded and answered with plate_msg_lookup_in or plate_msg_lookup_out.
  • Submitting an empty field is answered separately — plate_msg_empty on the plate map, and a silent reset to the full zone on the street map.
All of this copy is editable. In Delivery checker: search you can rewrite the lookup messages: delivery_lookup_row (the dropdown row), delivery_lookup_loading, delivery_msg_lookup_yes, delivery_msg_lookup_no and delivery_msg_lookup_fail. Use {place} for the found place, {distance} for its distance from your kitchen, and {query} for what the customer typed. The plate map has the matching plate_msg_lookup_in, plate_msg_lookup_out and plate_msg_lookup_loading fields.
For a production store, coordinates are still best. A lookup is fast but it is a third-party call, and it can fail on a locked-down network. Once you are happy with a place, copy the coordinates from Google Maps into the field and the map stops depending on the network.
Step 3 — Change the map centre and HQ pin

On the product template, select the CM delivery map section.

  • center_lat, center_lng — where the map opens. Put this near the middle of your delivery area, not necessarily your kitchen.
  • zoom — 5 is a whole state, 14 is a few blocks. 9–11 suits a local delivery radius.
  • fit_to_pins — turn on to ignore the zoom and frame every pin automatically. Best when you add or remove towns often.
  • hq_lat, hq_lng, hq_address — the headquarters popup.
  • hq_place — a place name for the HQ instead of numbers, for example Hartland, Wisconsin. Used when the latitude or longitude is blank.
  • geo_country — optional country hint for the automatic lookups.

Each pin block is one delivery town with its own area, lat and lng. Leave the numbers blank and fill Or place name instead, and that pin is looked up automatically. Add, edit or delete blocks to change which towns appear.

Step 4 — Change the text addresses

The map is only part of it. Update these so the written copy matches:


cm-footer        → Contact info block → Delivery area / address
cm-footer        → Contact info block → Order & delivery days
cm-footer        → Contact info block → Phone, Email
cm-contact-page  → contact_item blocks (address, phone, hours)
cm-meal-plan-page → delivery_heading, delivery_text
cm-meal-plan-page → plate_kitchen_address
announcement-bar → delivery message, if one mentions a city

Step 5 — Check it
  • Type a town into the checker on each plan page — the yes message names the right town
  • Type a ZIP code that should work — it matches the ZIP column
  • Type a town you removed — you get the not-found message
  • The kitchen dot sits on your real building on the map
  • If you used a place name, the pin lands on the right town once the page finishes loading
  • Every town you listed has a pin, or its coordinates filled in when a lookup failed
  • The delivery ring covers every town you deliver to
  • Footer and contact page show the new address, not the old one
  • Announcement bar and FAQ copy do not name the old city
Plan pages are separate sections. Each plan page (5, 6, 7, 10, 15) has its own copy of the cm-meal-plan-page section, so editing the towns on the 6-meal page does not change the 15-meal page. Repeat step 1–2 on every plan page, or copy the edited JSON template over the others.

All templates are JSON files in templates/. To use a custom template on a page or product, open the resource in Shopify admin and choose the template from the Theme template dropdown.

Page templates

Template Used for Sections
index.jsonHome pageHero banner, 4-step features, image with text, parallax gallery, badge row, flavour wheel, product details, delivery areas
page.meal-plans.jsonMeal plans landingcm-meal-plan-page
page.5-meal-plan.json5 plate plancm-meal-plan-page
page.6-meal-plan.json6 plate plancm-meal-plan-page
page.7-meal-plan.json7 plate plancm-meal-plan-page
page.10-meal-plan.json10 plate plancm-build-box, cm-meal-plan-page
page.15-meal-plan.json15 plate plancm-meal-plan-page
page.about.jsonAboutChef story, why-us rows, contact CTA
page.how-it-works.jsonHow it worksHero, steps, FAQ, contact CTA
page.faqs.jsonFAQsFour collapsible content groups (ordering, products, heating, delivery)
page.delivery-areas.jsonDelivery areasDelivery areas, steps, FAQ, contact CTA
page.contact.jsonContactPage content, contact page form and details
page.gift-cards.jsonGift cardscm-gift-card
page.private-chef-experience.jsonPrivate chefcm-private-chef
page.custom-meal-plans.jsonCustom plansPage content, rich text, contact form
page.jsonDefault pagemain-page
page.burgers.json, page.burgers-light.jsonAlt menu demoFood hero, food menu, food features

Product templates

Template Used for Sections
product.jsonIndividual meals and general productsMeal details, main product form, related products, chef story, why-us, steps, delivery map, plans, contact CTA
product.5-meal-plan.json5 meal plancm-build-box (min plates 5)
product.6-meal-plan.json6 meal plancm-build-box (min plates 6)
product.7-meal-plan.json7 meal plancm-build-box (min plates 7)
product.10-meal-plan.json10 meal plancm-build-box (min plates 10)
product.15-meal-plan.json15 meal plancm-build-box (min plates 15)

System templates — 404, search, cart, collection, list-collections, blog, article, password and gift_card.liquid are included and styled to match.

Assigning a template
  1. Create the page or resource in Shopify admin (for example a page with the handle 5-meal-plan).
  2. Scroll to Theme template in the right sidebar.
  3. Pick the matching template, for example page.5-meal-plan, and save.
  4. Repeat per plan. Handles must match what the sections point to (see Meal Plan Pages).
Assigning a product template automatically

A page keeps its template forever, but products are usually assigned by a rule. Use a Shopify Flow workflow, the bulk editor, or a product metafield theme.template_suffix to set the suffix — for a product that should use product.5-meal-plan.json, the suffix is 5-meal-plan.

Every section below is available in the theme editor under Add section. All of them support blocks, and all of them respect the color scheme of the section they are dropped into.

Section Editor name Purpose Main blocks
cm-meal-plan-pageCM meal plan pageComplete plan landing: hero, benefits, weekly menu, chef, steps, quality, gallery, delivery checker, reviews, FAQ, related plans, CTAmeal, benefit, step, quality, menu_item, review, faq, related
cm-build-boxCM build your boxSlot-based box builder that adds the selected plates to the cart— (uses plan variants)
cm-mp77 Meal PlanSingle-section plan page for the 7 plate planmeal, way_meal, feature, testimonial, step, popular, faq, favorite
cm-product-detailsProduct detailsMeal detail block with dish switcher, nutrition, accordions and plan pricingdish, accordion
prep-meal-detailsPrep meal detailsNutrition, ingredients, allergens, diet tags read from product metafields—
cm-heroCM hero + tickerHero with a scrolling ticker band and numbered chipschip
cm-stepsCM how it worksNumbered or timeline stepsstep
cm-plansCM meal plansPlan comparison cardsplan
cm-featured-planCM weekly tableWeekly menu table with stampdish
cm-uspCM why us rowsAlternating image and text rowsrow
cm-chef-storyCM chef storyChef bio with image or video and pull quote—
cm-parallax-galleryCM parallax galleryNumbered, parallax image storyitem
cm-thali-wheelThali wheelCircular photo wheel of dishesitem
cm-arc-carouselCM 3D product carouselCurved carousel of products or itemsitem
cm-delivery-areasCM delivery areasList of served towns with feature icons and plate artarea, feature
cm-delivery-mapCM delivery mapLeaflet map with pins and a name/address popuppin
cm-gift-cardCM gift cardGift card amount, recipient, date, message and checkoutfact, step, faq, review
cm-private-chefCM private chefPrivate chef landing with occasions, expectations and enquiry formperk, occasion, expect, step, field
cm-contact-pageCM contact pageContact page with details panel and contact formcontact_item
cm-contact-formCM contact formConfigurable contact form with custom fieldsfield, group_heading
cm-contact-ctaCM contact CTAClosing call to action band—
cm-footerChef Matt footerFooter with CTA band, link columns, contact and newsletterlinks, menu, contact
meal-plansMeal plansPlan card grid, Metaobject or blocksplan
faqFAQAccordion FAQ, Metaobject or blocksfaq
testimonialsTestimonialsReview grid with star ratings, Metaobject or blockstestimonial
delivery-zonesDelivery zonesZone cards with days, cut-off, fee and minimum, Metaobject or blockszone
how-it-worksHow it worksSteps list, Metaobject or blocksstep
ss-feature-1SS Feature #1Icon or animation feature gridimage
image-bannerImage bannerHero banner, includes the “Prep meal” hero styleheading, text, buttons
image-with-textImage with textTwo-column content with optional overlay cardcaption, heading, text, button
collapsible-contentCollapsible contentFAQ groups used on the FAQ pagecollapsible_row
food-hero, food-menu, food-featuresFood hero / menu / featuresAlt burger demomenu item, feature
Spacing is per section. Every meal-prep section has padding_top and padding_bottom in px, and most have a background choice of cream, warm or white. Match the surrounding sections so the page rhythm stays even.

Metaobjects let you keep a long list — 20 meals, 40 FAQs, 30 reviews — outside the theme editor, then point a section at that list. The section setting is called Content source and it always shows the field label from the section schema, for example Meal plans (Metaobject).

How the fallback works
  1. If the Metaobject list selected in the section has entries, the section renders those.
  2. If the list is empty, the section renders its blocks instead.
  3. If both are empty, a short empty-state message is shown in the editor.

Because of this, a section never breaks when you switch modes — the blocks act as the built-in demo content.

Create a definition
  1. Go to Content → Metaobjects → Add definition.
  2. Set the Type to the exact name in the table below (for example meal_plan). The type cannot be changed later.
  3. Add each field with the exact field name and type shown below. Field names become the template accessors, so Short description must be named short_description.
  4. Enable the storefront access for each field you display.
  5. Add entries, set their status to Active, then select the list in the section.
Supported metaobject types
Type Used by Fields
meal_plan meal-plans name, image, short_description, meals_per_week, calories_per_meal, protein, carbs, fat, tags, badge, linked_product
faq_item faq question, answer, category, sort_order
testimonial testimonials customer_name, photo, review, rating, plan_name
how_it_works_step how-it-works step_number, title, description, icon
delivery_zone delivery-zones area_name, postcodes, delivery_days, cut_off_time, delivery_fee, minimum_order
Types used by the meal plan pages. The meal plan pages read four further types that no other part of the theme uses. Create these only if you are filling plan content from Admin:

delivery_area — name, postcodes, map_x, map_y, is_kitchen, latitude, longitude. This is the type that lets you add a delivery town by typing only its name; see Delivery Areas & Map.
stat_item — value, label. The stats strip, the “Ghar Ka Khana” numbers and the closing facts all reuse it.
feature_card — title, text, image. The two story cards beside the chef photos.
meal — one record per dish, linked to a variant, when a meal needs its own photo or macros. Optional: one variant per meal is enough without it.

Do not create a second definition with a near-miss name. The same record is reused across the site, so a testimonial you add once appears wherever testimonials render. The type string must match exactly, and it cannot be renamed after creation.
Example: meal plan entry

name:                Lean 5-Day
image:               lean-5-day.jpg          (800 x 800)
short_description:   Five calorie-counted meals for the working week.
meals_per_week:      5
calories_per_meal:   540
protein:             42
carbs:               48
fat:                 16
tags:                High Protein, Gluten Free
badge:               Best Seller
linked_product:      5-meal-plan

The card snippet renders these fields in a fixed order: image, badge, name, description, tags, nutrition row, price from the linked product, and a “View plan” button. Price always comes from the product — never type a price into the metaobject.

Field names are contractual. Snippets read plan.short_description, zone.area_name, step.step_number and so on. If a field is named differently, the value silently renders empty.

Individual meals are ordinary Shopify products. Nutrition and ingredient data comes from product metafields in the custom namespace, so the same numbers appear on the product page, the plan page and the box builder.

Create them in Settings → Custom data → Products → Add definition:

Metafield Type Shown as
custom.caloriesIntegerCalorie badge / nutrition cell
custom.proteinIntegerProtein, grams
custom.carbsIntegerCarbs, grams
custom.fatIntegerFat, grams
custom.ingredientsMulti-line textIngredients tab / accordion
custom.allergensList of single line textAllergen list
custom.diet_tagsList of single line textDiet badges and filters
custom.reheat_instructionsMulti-line textReheat instructions

Fallback order. The meal detail snippet uses the block value first, then the metafield, then the section default. That means a meal can be fully driven by its product, and the block is only a fallback for demo content.


{%- assign pd_cal = product.metafields.custom.calories.value | default: section.settings.cal -%}
{%- assign pd_protein = product.metafields.custom.protein.value | default: section.settings.protein -%}
{%- assign pd_carbs = product.metafields.custom.carbs.value | default: section.settings.carbs -%}
{%- assign pd_fat = product.metafields.custom.fat.value | default: section.settings.fat -%}

Health information must be accurate. Allergen and nutrition values are safety information for the customer. Keep them current for every meal, and never publish placeholder numbers on a live store.

Each plan page is one section, cm-meal-plan-page, with everything editable from the sidebar — or, more powerfully, from the plan product's metafields in Admin. The plan and the meal catalogue are connected by three product picker settings.

These settings hold product objects, not handles. All three are declared "type": "product", so Liquid receives a real product and .metafields, .variants and .price work on them directly. The template JSON shows a handle ("plan_product": "6-meal-plan") but that is only how it is stored.

Never wrap one in all_products. all_products takes a handle string; given a product object it returns nil. That silently kills the meals, the order-box price and every metafield on the page at once. If a plan page ever loses all its Admin content together, check this first.
Page template Page handle content_product plan_product meals_product picker_count
page.5-meal-plan5-meal-planblank5-meal-plan5-meal-plan5
page.6-meal-plan6-meal-planblank6-meal-plan6-meal-plan6
page.7-meal-plan7-meal-planblank7-meal-plan7-meal-plan7
page.10-meal-plan10-meal-planblank10-meal-plan10-meal-plan10
page.15-meal-plan15-meal-planblank15-meal-plan15-meal-plan15

content_product is the highest-priority source and is blank in every packaged template. When it is blank the section falls back to plan_product, then meals_product — so the shipped configuration works with nothing filled in. Set content_product only when a page must read a product other than the one the order box charges.

To duplicate a plan page for a new plate count:

  1. Duplicate the JSON template, for example page.5-meal-plan.json to page.8-meal-plan.json.
  2. Set plan_product, meals_product and picker_count inside the section settings. Pick the products from the picker — do not type a handle.
  3. Update the copy: plan label, heading, text, hero facts and CTA labels.
  4. Create the page with a matching handle and assign the new template.
  5. Add the plan product in Shopify admin.
Filling plan content from Admin. The plan pages can take their copy, meals and macros from the plan product's custom.* metafields instead of these section settings, which then act as the fallback. That full schema — every key, its fallback chain and its Admin location — is documented separately in docs/PLAN-PRODUCT-CONTENT.md. Read that file before authoring a new plan; this table only covers the theme-editor layer.

Key settings on this section:

Group Settings
Heroplan_label, heading, text, three label/value fact pairs, two buttons, two hero images, badge value and label
Benefitsben_line_1..3, ben_note
Weekly menumenu_eyebrow, menu_heading, menu_text, explore_heading, load_more_label, detail_note, meal_price, total_label, picker_count, content_product, plan_product, meals_product
Chefchef_eyebrow, chef_heading, chef_text, chef_image_1, chef_image_2
Stepssteps_eyebrow, steps_heading
Qualityquality_eyebrow, quality_heading, quality_text, quality_button
Thali platethali_show, thali_image, thali_chips, thali_tickets, thali_steps, thali_towns, and the surrounding headings
Galleryshow_gallery, gallery_eyebrow, gallery_heading
Deliverydelivery_style, delivery_checker, eyebrow, heading and text, town lists for both map styles, kitchen coordinates and radius, country hint, all messages and legends
Reviews / FAQ / Related / CTAEyebrow and heading for each, plus CTA text, label and link
The 10 plate page is special. page.10-meal-plan.json carries both cm-build-box and cm-meal-plan-page. The build box anchors to #build-box; the plan buttons use that anchor, so keep the build box section first and do not change the section ID.
The plate labels — why one tag looks missing

The thali plate shows up to four floating tags, one in each corner. Their corners are assigned by position, not by name: the 1st line goes top-left, the 2nd top-right, the 3rd bottom-left, the 4th bottom-right.

Line in thali_chips Corner Tilt
1stTop left−4°
2ndTop right+3°
3rdBottom left+3°
4thBottom right−3°
If only three tags appear, you have three lines. This is the most common confusion with this section — nothing is broken. The layout is a fixed four-corner arrangement, so a missing line simply leaves one corner empty. Count the lines in Plate labels and add the fourth.

Where the labels come from, in priority order:

  1. custom.thali_chips — a metafield list on the plan product, one entry per label.
  2. Plate labels (thali_chips) in the theme editor — one label per line.
  3. The packaged default: Homestyle Sabzi, 2 Soft Rotis, Authentic Curries, Fluffy Portion of Rice.

// Plate labels — one per line, four fills all four corners
Homestyle Sabzi
2 Soft Rotis
Authentic Curries
Fluffy Portion of Rice

  • Keep them short. Two to three words fit the plate. Long lines wrap and can overlap the food.
  • Four is the practical maximum. Only four corners are styled. A fifth line still renders, but it has no corner assigned and lands loose on top of the plate, which looks broken. Delete extra lines.
  • Blank and whitespace-only lines are skipped, so they do not hold a corner. A blank line in the middle shifts every tag after it up one corner — do not try to use one to leave a corner empty. To show only three tags, accept that the fourth corner is the one that stays empty.
  • Turning the whole plate off: untick thali_show. That removes the plate, the tags and the statistics strip together.

The plate image itself follows the usual cascade — custom.thali_image, then Plate image (thali_image) in the editor, then the packaged four-items-plate.webp.

Images on this page

Every picture on a plan page resolves through the same three steps. The product metafield is checked first, so a single product can deviate from the theme default without a new template:

Picture 1st — product metafield 2nd — theme editor 3rd — packaged
Hero (both images)custom.hero_image_1, custom.hero_image_2 — then the shop-level copyhero_image_1, hero_image_2Bundled photo
Chef story (two photos)custom.chef_image_1, custom.chef_image_2 — then the shop-level copychef_image_1, chef_image_2Bundled photos
Thali platecustom.thali_imagethali_imagefour-items-plate.webp
Meal cardThe meal metaobject image, if that meal has its own record—The selected variant's image → the plan's featured image → mp-food-N.jpg
Reviewer phototestimonial → photo—Nothing rendered — the card simply shows no avatar
CTA backgroundcustom.cta_image — then the shop-level copycta_imageBundled photo
Related plan cardmeal_plan → image—The linked product's featured image
Clearing a metafield brings the theme image back. Delete the metafield value rather than uploading a placeholder, and the next source in the chain renders again. A blank metafield is treated as “not set”, not as “show nothing”.

cm-build-box turns the variants of one plan product into plates. Customers add plates to fill slots; when the slot requirement is met, the box is added to the cart as a single Ajax request.

How it works
  1. Each variant of the plan product becomes a meal card, using the variant title as the meal name and the variant image (or a packaged food image) as the photo.
  2. Every plate costs the variant price. Quantity controls appear once a plate is added.
  3. The box shows a running subtotal, the box discount, and the total.
  4. The checkout button stays locked until Plates needed before checkout (min_plates) is reached.
  5. Adding to the cart posts each selected variant with a Plan line-item property and opens the cart drawer.
Settings
Setting Default Notes
headingPlan titlePage heading, for example “10 Meal Plan”.
ledeDiscount explanationOne or two sentences above the grid.
product10-meal-planOn a product template the current product is used automatically.
min_plates5Plates needed before the button unlocks.
Discount tiers

The box displays two tiers, and both are display only — the cart charges the variant price:

Plates in the box Displayed rate Message
1 – 4—“N more plates to unlock 15% off.”
5 – 915%“15% unlocked. N more for 20% off.”
10 or more20%“You’ve unlocked the best rate: 20% off every plate.”
Wording matters. The theme does not apply a cart-level discount. If you advertise the 15% / 20% rates, configure an automatic discount in Shopify (Discounts → Create discount → Amount off order) with a minimum quantity, or reword the copy so it only describes the per-plate menu price. Never promise a discount that the cart does not apply.
Nutrition figures

The build box reads nutrition from a packaged list in sections/cm-build-box.liquid (assign nutrition = '...'), one entry per plate in variant order, formatted cal|protein|carbs|fat. Update that list when the menu changes, or set the same numbers as product metafields and switch the section to read them.


{%- assign nutrition = '633|38|37|37,684|62|37|32,676|55|42|32' | split: ',' -%}
{%- assign stat = nutrition[meal_i] | split: '|' -%}
<ul class="byb__facts">
  <li><b>{{ stat[0] }}</b><span>cal</span></li>
  <li><b>{{ stat[1] }}g</b><span>protein</span></li>
</ul>

Keep the list length aligned. Entry n belongs to variant n. If you add a variant without adding a nutrition entry, that card shows no facts.
Requirement per plan

Set min_plates in each product template so the button matches the plan you sold — 5 for the 5 plate plan, 6 for the 6 plate plan, 7 for the 7 plate plan, 10 for the 10 plate plan and 15 for the 15 plate plan. The section detects the plan automatically for the handles listed in plan_handles:


assign plan_handles = '5-meal-plan,6-meal-plan,7-meal-plan,10-meal-plan,15-meal-plan' | split: ','


{
  "sections": {
    "build_box": {
      "type": "cm-build-box",
      "settings": {
        "heading": "15 Meal Plan",
        "lede": "Pick fifteen dishes and fill your box.",
        "product": "15-meal-plan",
        "min_plates": 15
      }
    }
  },
  "order": ["build_box"]
}

There are two kinds of product in this theme, and they behave differently: meal products (one dish) and plan products (5, 6, 7, 10 or 15 plates). A meal product feeds the menu lists and the cart lines. A plan product is the container the box builder or the plan page charges through.

Two kinds of product
Kind Example Template What it does
Mealperi-peri-chickenproduct (default)One dish. Carries nutrition metafields and the photo used in menus.
Plan6-meal-planproduct.6-meal-planContainer. Its variants are the ten dish names; its price is what the cart charges per plate.
Plan variants are dish names, not sizes. Every plan product has a single option called Meal whose values are the dish names. That is how the plan page turns each dropdown choice into a cart property such as Meal 1 = Butter Chicken…. Do not rename the option or convert it to S/M/L.
Add a new meal
  1. Products → Add product. Give it a name customers would say, for example Peri Peri Chicken with Roasted Potatoes & Carrots.
  2. Set Product type to Meal and the price to the per-plate price.
  3. Leave the template as product — only plan products use a suffixed template.
  4. Upload the dish photo. Crop it square (900 × 900); it is used as the menu card and the round plate.
  5. Fill the nutrition metafields: custom.calories, protein, carbs, fat, plus ingredients, allergens, diet_tags, reheat_instructions (see Product Metafields).
  6. Add it to whatever collection you use for browsing — the default theme links to meal-plans. Note this does not put the dish into the plan page dropdowns; those come from the plan product's variants.
  7. Publish it to the Online Store sales channel. A product saved as Active but not published is invisible on the storefront.

To also show the new dish as a block in a plan page menu list, open the plan page in the editor, select CM meal plan page, and add a Menu item block with the same Meal name as the plan variant. The name is the join key — if the block name and the variant title differ, that dish adds nothing to the cart.

Add a new dish to a plan's dropdowns

The dropdowns on a plan page are built from the plan product's variants, so adding a dish means adding a variant:

  1. Open the plan product, for example 6-meal-plan.
  2. In the Meal option, add the dish name exactly as written on the meal product.
  3. Set the variant price to the per-plate price.
  4. Save. Every plan page that points at this product picks up the new option in all of its dropdowns.

If a plan page uses Menu item blocks rather than variants, add a matching block instead. The plan page prefers the variant list when the Meals product setting is filled, and falls back to blocks when it is empty.

Update a product
Change Where Watch out for
Price per plateProduct → Variants → PriceChange it on the plan product; that is the number the cart charges. The meal product price only shows in the menu list.
Dish nameProduct title or variant titleRenaming a variant breaks any Menu item block that matched the old name — update both.
PhotoProduct → MediaReplace, do not just add: the first image is the one used. Square crop, 900 × 900.
NutritionProduct → MetafieldsNutrition is safety information. Update calories and allergens together.
Menu orderPlan product → Options → drag valuesDropdown order follows option value order, not alphabetical.
DescriptionProduct → DescriptionPlan page cards use the block text, not the product description. Change the block too.
Remove a product
  1. Remove the variant or block first. Deleting a product that a plan page still references leaves a dropdown option that cannot be added to the cart.
  2. Check the plan pages: open each one and confirm the dish is gone from every dropdown.
  3. Remove it from the collection, then archive or delete the product in Products.
  4. If the product is referenced by an image or a link in a section, clear that link so it does not 404.
Archive before deleting. Set the product to Draft or Archived for a week first. Orders and reports keep pointing at the product ID, and an archived product can be restored if the dish comes back next season. Deleting is permanent.
Remove a whole plan

Removing a plan (for example retiring the 5-meal plan) touches more than the product:

  • Delete or unpublish the plan product.
  • Delete the plan page in Online Store → Pages.
  • Remove the plan card from cm-plans and from the Related plans blocks on the other plan pages.
  • Remove it from the header menu and the footer links.
  • Delete templates/page.N-meal-plan.json and templates/product.N-meal-plan.json if you are not bringing it back.
  • Drop the handle from plan_handles in sections/cm-build-box.liquid if you remove a box-builder plan.
Verify a product change
  • The product is Active and published to the Online Store
  • Handle matches every link that points at it
  • Template suffix is correct — blank for a meal, N-meal-plan for a plan
  • Photo is square and shows in the menu card
  • Calories, protein, carbs, fat are filled
  • Allergens and diet tags are filled
  • The dish appears in the plan page dropdowns
  • Adding it to the cart produces a line with the right price
  • Removing it leaves no broken dropdown option behind

product.json combines three layers:

  1. prep-meal-details — nutrition, ingredients, allergens, diet tags and reheat instructions, read from product metafields.
  2. main-product — the standard Shopify product form: media gallery, variant picker, price, quantity and buy buttons.
  3. cm-product-details — a meal detail showcase with a dish switcher, nutrition bar and accordions, plus plan pricing.
Section settings worth knowing
Setting Purpose
product, product_10, product_customPlan products used for the 5, 10 and custom meal buttons.
heading, eyebrow, badge, textMeal copy. The heading falls back to the product title.
chip_1..3Short reassurance chips, for example “Fresh, never frozen”.
noteDelivery or minimum-order note under the button.
cal, protein, carbs, fatFallback nutrition when the product has no metafields.
Dish blocks (dish)Name, image, description and nutrition per switchable dish.
Accordion blocks (accordion)“What’s included”, “Reheating”, “Storage & allergens” — open state configurable.
Do not type prices into copy. Prices come from the product or variant through {{ price | money }}. A typed price goes stale the moment you change a variant.

Three different tools ship with the theme — pick the one that fits the page. The Delivery style setting (delivery_style) on cm-meal-plan-page chooses between them, and the packaged plan templates all ship set to Plate map.

Adding a delivery town by name only

You do not need coordinates, percentages or ZIP codes to add an area. Type the town name and the theme geocodes it in the browser, then draws the pin, the chip and the delivery zone from that result.

There are two ways in. The metaobject is the better one:

Where Format When to use it
Content → Metaobjects → delivery_area list, selected in Delivery areas One entry per town. Fill name and nothing else. Recommended. Every field is a labelled input, so there are no pipes to count.
Theme editor → Plate map → plate_towns One town per line. Name alone on the line. Fast one-off edits. Fine for a handful of towns.

// plate_towns — a name on its own is a complete row
Hartland
Delafield
Waukesha
Dousman

// add a region when a name is ambiguous
Sussex, WI

The metaobject entry, field by field. Add one entry per town under the delivery_area definition:

Field Required What to put in it
nameYesThe town name, for example Hartland. This alone is a working entry.
postcodesNoOne or more ZIPs, comma separated. Lets customers search by ZIP as well as name.
is_kitchenNotrue on exactly one entry — the town your kitchen sits in. Drives the kitchen pin and the ring.
latitude, longitudeNoDecimal degrees. Leave blank to let the theme look the town up. Filling them removes the lookup and is faster.
map_x, map_yNoNo longer read. Held for backwards compatibility only. Pins are placed from real coordinates, so new entries can leave these blank.
Names are looked up near your kitchen, not worldwide. Every geocode request is biased to the kitchen coordinates, because a bare town name is ambiguous: “Sussex” alone resolves to Sussex, England, and “Wales” to Wales, New York. With the bias applied, the same names resolve to the towns next door. Measured on the packaged town list, 8 of 8 names resolved correctly with the bias and only 4 of 8 without it.

If a name still lands in the wrong place, add the state or country to that one row — Sussex, WI — which removes the ambiguity entirely.

What is still manual:

  • The kitchen. Tick is_kitchen on exactly one delivery_area entry, or set delivery_kitchen_lat/_lng. Nothing can guess which branch cooks the food.
  • Postcodes, only if you want them. postcodes lets a visitor find a town by ZIP. Name search works with it blank.
  • Nothing else. map_x/map_y are accepted for backwards compatibility but no longer read — pin placement comes from geocoding or from latitude/longitude.

The first visitor to a page pays for the lookups: unknown towns are fetched one at a time, spaced to stay polite to the free service. Results are cached in the visitor's browser, so repeat views are instant. To remove the delay entirely, fill latitude/longitude on the delivery_area entries once.

Which town list actually renders

All four delivery styles read one resolved list. The theme stops at the first source that produces at least one town, so an empty list never blanks the map:

  1. delivery_area_list — the metaobject list on the plan product, else the shop-level shared copy.
  2. delivery_towns — the older pipe-delimited product metafield list.
  3. plate_towns / delivery_towns — the theme editor newline list.
  4. The packaged Hartland / Lake Country default list.
An all-empty metaobject list will not shadow your editor list. Entries with a blank name are dropped before the count is checked, so a half-built list falls through to the next source rather than rendering an empty map.
1. Delivery checker (inside the meal plan page)

Set Delivery style to Interactive street map. Customers type a town or ZIP code, or tap a town chip, and get a yes/no answer plus a map. The extra delivery_checker checkbox must also be on — it is off by default, and without it the section falls back to the plain Google Maps block even when the street map is selected.

How the theme picks a style. It checks delivery_style first: plate renders the plate map. If the style is anything else, a ticked delivery_checker renders the street-map checker; with it unticked you get the plain embed. So Plate map always wins, and setting the style to Google Maps embed with the checkbox on still gives you the checker.

One town per line. Coordinates and ZIPs are both optional — a bare name is geocoded automatically, so you can type places instead of numbers. Leave the field empty to use the packaged default list for Hartland and Lake Country.


Hartland
Delafield
Waukesha
Pewaukee|43.0806|-88.2612|53072      ← exact coordinates still work

Kitchen position and radius are set with delivery_kitchen_lat, delivery_kitchen_lng and delivery_radius_km. Either kitchen field also accepts a place name such as Hartland, Wisconsin. See Change the Location for the full walkthrough. Messages for a hit, a miss, and the contact fallback are all editable:

Setting Purpose
delivery_placeholder, delivery_buttonSearch field prompt and action label.
delivery_msg_yes, delivery_msg_yes_subInside the zone.
delivery_msg_no, delivery_contact_url, delivery_contact_labelOutside the zone, plus a “ask us” link.
delivery_show_all, delivery_show_less, delivery_initial_chipsHow many town chips show before “show all”.
delivery_lookup_row, delivery_lookup_loading, delivery_msg_lookup_yes, delivery_msg_lookup_no, delivery_msg_lookup_failThe suggestion row and the answers for a place that is not on your town list. See Change the Location.
delivery_countryCountry hint for automatic place lookups.
delivery_legend_kitchen, delivery_legend_areas, delivery_legend_zone, delivery_reset_labelLegend wording and the “show the whole zone again” button.
2. Plate map (the packaged default)

Set Delivery style to Plate map + area checker — the default on every plan template. It renders a styled OpenStreetMap map with a town-chip list beside it and the same postal-code search. Its own town list is plate_towns, which uses a different column order; see Change the Location for the format and the full walkthrough.

Setting Purpose
plate_areas_titleHeading above the town chips, for example “We deliver to”.
plate_visible, plate_more_label, plate_less_labelHow many chips show before “show all”, and the two labels. {count} in the show-all label becomes the total.
plate_kitchen_label, plate_kitchen_address, plate_maps_url, plate_maps_labelThe card under the map: name, address and an optional “Open in Maps” link.
plate_map_label, plate_legend_kitchen, plate_legend_area, plate_legend_zoneAccessible map label and legend wording.
plate_msg_yes, plate_msg_no, plate_msg_emptyAnswers for a listed town, for a miss, and for an empty submit.
plate_msg_lookup_in, plate_msg_lookup_out, plate_msg_lookup_loadingAnswers for a place that is not on your list.
3. Plain Google Maps block

Set Delivery style to Google Maps embed and leave Use the street-map checker (delivery_checker) off. This is a static iframe plus a list of areas — no search, no pins, no JavaScript. It is the simplest option when you only need a picture of where you deliver.

A checked checker wins over the Embed style. The theme picks the plate map first, then the street-map checker, and only then the plain block. So turning delivery_checker on while the style is Google Maps embed still renders the street-map checker, not the embed. To get the embed, the checkbox has to be off.
  • delivery_areas — comma-separated list of places, shown with pin icons.
  • delivery_button_label, delivery_button_link — the call to action under the list.
  • map_query — the address Google Maps searches for when no embed URL is set.
  • map_embed_url — paste the full src from Google Maps → Share → Embed a map to override the search.
  • map_title — the caption under the map, also used as the iframe title.
4. Delivery map section

cm-delivery-map renders a Leaflet map with one pin per block. Set the map centre, zoom level, height and the headquarters popup, then add pin blocks:


Pin block:
  area:  Pewaukee
  lat:   43.0806
  lng:   -88.2612

Or, with no numbers at all:
  area:  Pewaukee
  place: Pewaukee, Wisconsin     ← looked up automatically

If a pin has no coordinates, the theme looks the Or place name field up when the map loads. The same applies to the HQ popup through hq_place. The section also has show_labels to keep every area name visible, map_height for the frame height, a footer pair under the map (foot_1_*, foot_2_*) and geo_country for the lookups.

Leaflet is loaded on demand from unpkg the first time a map appears, so pages without a map pay no cost. Keep fit_to_pins on to frame all pins automatically; leave it off to respect center_lat, center_lng and zoom.

5. Delivery zones list

delivery-zones lists service areas with delivery days, cut-off time, fee and minimum order. It has the same Metaobject/blocks switch as the other content sections — type delivery_zone for the Metaobject mode.

Keep delivery promises in one place. If you change the cut-off day or delivery window, update it in the announcement bar, the FAQ page and the delivery section together so customers never see two different answers.

cm-gift-card is a complete purchase form. It adds a Shopify gift card product to the cart with recipient details attached as line-item properties, which Shopify uses to issue the card.

Setup
  1. Create a gift card product with one variant per amount (for example $25, $50, $100).
  2. Assign page.gift-cards.json to a page, or add the cm-gift-card section to any page.
  3. Select the product in Gift card product and set Default amount to the variant you want preselected.
  4. Edit the fallback amount list, hints and fine print as needed.
Fields collected
Field Setting
Amountdefault_amount, fallback_amounts
Recipient name / emailrecipient_name_label, recipient_email_label
Send on datesend_on_label
Sender name / messagesender_name_label, message_label, message_placeholder
Button and confirmationbutton_label, added_text, fine_print

The section also ships optional facts, how-it-works steps, FAQ and review blocks, so the page is complete without extra sections. A ticker strip (strip_text, strip_speed) spans the top.

All forms use native Shopify forms, so submissions appear in Customers (newsletter) or are emailed to the store address (contact). No third-party service is required.

Contact forms
  • cm-contact-page — the full contact page: details panel, ticket-style form and privacy note.
  • cm-contact-form — a reusable form you can drop on any page, with configurable field blocks.
  • cm-private-chef — enquiry form with occasion and date fields.
  • contact-form — the standard Shopify contact section.

Field labels, placeholders, required state and half-width layout are set per field block:


Field block:
  label:       Phone
  type:        tel
  placeholder: Best number to reach you
  required:    true
  half_width:  true

Change the success message in the section setting success_message. Contact notifications go to the store email set in Settings → Store details; add more recipients in Settings → Notifications → Contact form.

Newsletter

The footer (cm-footer) and the newsletter / email-signup-banner sections use {% form 'customer' %}. Subscribe a customer list in your email app through a Shopify integration if you need marketing automation — the theme itself only stores the subscription.

Spam protection. Shopify filters contact spam automatically. Do not add CAPTCHA scripts to the theme; they break the native form post.

Every content section can be filled in two ways. Choose per section:

Mode Use when Where you edit
BlocksSmall lists, 3–6 itemsCustomize → select the section
MetaobjectLarge or frequently changing lists, 7+ itemsContent → Metaobjects, then select the list in the section

Order of precedence: a selected Metaobject list wins; an empty or unselected list falls back to blocks.

Image sizes
Use Size Format
Hero / banner1800 × 800 (mobile crop 1000 × 1000)JPG / WebP
Meal & plan cards900 × 900JPG / WebP
Box plate photos480 × 480JPG / WebP
Icons / featuresSVG, or 200 × 200 PNGSVG / PNG
Testimonial photo200 × 200JPG
Gift card card art1200 × 800JPG / PNG

Keep logos and favicons either uploaded in Theme settings or referenced from assets/ with logo_asset / favicon_asset — never both, or the upload wins and the asset is ignored.

Copy rules
  • Write the meal name the way the customer would say it, then put sides in the description.
  • Keep plan benefits to one line each; three benefits read better than six.
  • Every image needs alt text describing the dish or the scene.
  • Never write a price in body copy — link the product instead.
  • Allergen and nutrition data must be verified before publishing.
Pre-publish checklist
  • All Metaobject entries are Active
  • Each section has the correct content source selected
  • Plan pages point to existing product handles
  • Nutrition and allergens verified for every meal
  • Delivery towns, ZIP codes and cut-off time are current
  • Every button link tested
  • Every image has alt text
  • Checked on mobile preview at 375px and 430px
  • Cart and checkout tested with a real order

A shorter, non-technical version of this section is available in docs/CONTENT-GUIDE.md for handing to the client.

The theme is vanilla JavaScript — no jQuery, no build step. Scripts are deferred and scoped to their section, so a page only loads the behaviour it uses.

Global scripts (layout/theme.liquid)

<script src="{{ 'constants.js' | asset_url }}" defer="defer"></script>
<script src="{{ 'pubsub.js' | asset_url }}" defer="defer"></script>
<script src="{{ 'global.js' | asset_url }}" defer="defer"></script>
<script src="{{ 'details-disclosure.js' | asset_url }}" defer="defer"></script>
<script src="{{ 'details-modal.js' | asset_url }}" defer="defer"></script>
<script src="{{ 'search-form.js' | asset_url }}" defer="defer"></script>
<script src="{{ 'localization-form.js' | asset_url }}" defer="defer"></script>
<script src="{{ 'predictive-search.js' | asset_url }}" defer="defer"></script>
<script src="{{ 'cart-drawer.js' | asset_url }}" defer="defer"></script>

Section scripts
File Drives
cm-build-box.jsSlot filling, discount tiers, Ajax add to cart
cm-meal-plan-page.jsWeekly menu hover preview, load more, plan switcher, gallery
cm-delivery-checker.jsStreet-map checker: town/ZIP search, suggestion list, chips, customer place lookup, result messaging
cm-geocode.jsPlace-name to coordinates lookup shared by every delivery map
cm-da.js, cm-da-map.jsDelivery areas layout and map
cm-delivery-map.js, cm-delivery-map-legacy.jsLeaflet map with pins
cm-gift-card.jsAmount picker, recipient fields, add to cart
cm-mp7.js7 plate plan tabs and interactions
cm-product-details.jsDish switcher and plan pricing
cm-thali-wheel.js, cm-arc-carousel.jsWheel and curved carousel
cm-hiw-timeline.js, cm-ticker.jsSteps timeline, ticker loop
food-page.jsAlt burger demo interactions
GSAP animations

snippets/gsap-animations.liquid loads GSAP, ScrollTrigger, ScrollSmoother and SplitText only when Theme settings → Animations → GSAP animations is on. It also respects prefers-reduced-motion: when a visitor asks for reduced motion, the animation class is never added and content renders immediately.


{%- if settings.animations_gsap -%}
  <script>
    if (!window.matchMedia('(prefers-reduced-motion: reduce)').matches) {
      document.documentElement.classList.add('gsap-pending');
    }
  </script>
  {{ 'gsap-animations.css' | asset_url | stylesheet_tag }}
  <script src="{{ 'gsap.min.js' | asset_url }}" defer="defer"></script>
  <script src="{{ 'gsap-animations.js' | asset_url }}" defer="defer"></script>
{%- endif -%}

A safe timeout is built in. If the animation script fails to load, a 2.5-second fallback removes the gsap-pending class so content is never left hidden.

All storefront strings live in locales/. en.default.json holds storefront strings and en.default.schema.json holds theme-editor labels; both are required.

  • The package includes translations for the standard Shopify languages (de, es, fr, it, ja, nl, pt-BR, and more).
  • Only en.default.* is complete for the meal-prep strings. Other locales fall back to English for any missing key.
  • Add a language in Settings → Languages, then translate the missing keys in Apps and sales channels → Translate & Adapt.

Meal-prep labels are grouped under sections.prep:


{
  "sections": {
    "prep": {
      "meals_per_week": "Meals / week",
      "calories": "Calories",
      "protein": "Protein",
      "carbs_fat": "Carbs / Fat",
      "view_plan": "View plan",
      "delivery_days": "Delivery days",
      "cut_off": "Order by",
      "areas": "Areas",
      "free": "Free",
      "empty_state": "Add content in the theme editor, or select a Metaobject list."
    }
  }
}

The country and language selectors in the header and footer are enabled per section (enable_country_selector, enable_language_selector). Turn them off if you sell in one market only.

Performance
  • Images render through image_url + image_tag with explicit widths and sizes, so the browser downloads the smallest usable file.
  • Everything below the fold is lazy-loaded; hero imagery is eager with fetchpriority="high".
  • Scripts are deferred and section-scoped. Maps, carousels and the wheel load only on pages that contain them.
  • Fonts are preloaded and use display=swap.
  • No app scripts, no jQuery, no third-party tracking by default.
Accessibility
  • Semantic landmarks and heading order on every template.
  • Accordions use native <details> / <summary>, so they work with a keyboard out of the box.
  • Visible focus rings (:focus-visible) on buttons, links and form fields.
  • Live regions announce cart and delivery-checker results.
  • Decorative images are hidden from screen readers; content images require alt text.
  • Reduced-motion preference disables scroll animation.
Before launch: run Lighthouse on the home page, one plan page and one product page. Replace demo images with compressed WebP/JPG under 300 KB, and keep the hero at one image rather than a slideshow.
Problem Cause Fix
A section shows no contentMetaobject list selected but entries are draftsSet each entry to Active, or clear the list to fall back to blocks
Metaobject list is missing from the pickerDefinition type does not matchUse the exact type names: meal_plan, faq_item, testimonial, how_it_works_step, delivery_zone
Card fields are blankField named differently to the snippetRename the field to the exact key (for example short_description)
Build box shows no mealsProduct has only a “Default Title” variantAdd one variant per meal
Build box button never unlocksmin_plates higher than available variantsLower min_plates or add variants
Box discount not applied at checkoutDiscounts are display-only in this themeCreate an automatic order discount in Shopify, or reword the copy
Meal photos missing in the boxVariant has no imageAssign per-variant images, or keep the packaged mp-food-*.jpg fallback
Delivery checker rejects a valid townTown list misspelled, ZIP missing, or the row is in the wrong column orderEdit delivery_towns using Name|ZIP,ZIP or Name|lat|lng|ZIP. A town in the wrong column order is read as coordinates and lands at 0,0.
A town has no pin on the mapThe name is unknown to the built-in table and the lookup failedAdd lat and lng to that row. The chip still works without a pin.
Plate map opens in the wrong placeA kitchen row in plate_towns overrides delivery_kitchen_latMove the kitchen word to the correct row, or remove it and set the coordinate fields
Map is blankLeaflet or its tiles are blockedAllow cdnjs.cloudflare.com and unpkg.com for the script, and tile.openstreetmap.org / basemaps.cartocdn.com for the tiles. The checker can also fall back to the plain Google Maps style.
Delivery section shows the wrong layoutdelivery_style and delivery_checker disagreeThe theme picks the plate map first, then a checked delivery_checker, then the embed. Set delivery_checker off to get the Google Maps embed.
Gift card button does nothingNo gift card product selectedSelect the product, and confirm its variants match the amount list
Contact email never arrivesStore email or notification recipient missingCheck Settings → Store details and Settings → Notifications
Headings use the wrong fontFont picker changed but CSS variable notUpdate --font-heading-family in layout/theme.liquid
Text is much larger than designedPixel value written as remRemember 1rem = 10px; use px or divide by 10
Old content still showsBrowser or CDN cacheHard refresh, then republish the theme
Changes vanished after savingTheme editor rewrote a JSON templateReapply in the editor; avoid hand-editing live JSON templates
Version Date Changes
1.3.0 October 26, 2026
  • The plate map is now a real street map. The stylised SVG plate was replaced by a styled Leaflet map with OpenStreetMap tiles, so pins sit on their true coordinates. Town chips, the kitchen card, the legend and the postal-code search are unchanged.
  • The left% and top% columns in plate_towns are now unused. Existing lists keep working; the columns are simply ignored.
  • plate_zone_radius no longer sizes the ring. The plate map fits the circle to your farthest town automatically, matching the checker.
  • Documentation: new section on how Delivery style chooses between the plate map, the street-map checker and the Google Maps embed, plus a full settings table for each style.
  • Documentation: the plate map's kitchen row is now documented as overriding delivery_kitchen_lat — the most common cause of a map opening in the wrong town.
  • Documentation: new troubleshooting rows for a missing pin, a map in the wrong place, blocked tiles and a layout that does not match the chosen style.
1.2.0 October 26, 2026
  • Customers can now look up any place themselves. Typing a town, ZIP, street address or landmark that is not on your delivery list geocodes it, drops a ring on the map and reports whether it falls inside your zone, with the distance from your kitchen.
  • The suggestion list ends with a Look up “…” on the map row, so the lookup is discoverable from the keyboard as well as on submit.
  • The map previews a place while the visitor is still typing, debounced to one request per pause rather than one per keystroke.
  • The plate map (5/6/7/15 plate pages) gains the same customer lookup, sharing the checker's distance verdict.
  • cm-geocode.js: results are now ranked by place type and name match instead of taking the first hit. A city wins over a shop of the same name, a street address resolves to the building, and a fuzzy town no longer answers for an address.
  • cm-geocode.js: the country hint is only applied when the visitor names no region of their own, and a match hundreds of kilometres away is retried inside the configured country. Hartland no longer resolves to New Brunswick.
  • Nominatim requests use countrycodes for a precise country filter, and Photon results are cross-checked against Nominatim when nothing better than a landmark comes back.
  • New editable copy: delivery_lookup_row, delivery_lookup_loading, delivery_msg_lookup_yes, delivery_msg_lookup_no, delivery_msg_lookup_fail, plus plate_msg_lookup_in, plate_msg_lookup_out and plate_msg_lookup_loading.
  • Documentation: new “What a customer can type into the map” table under Change the Location.
1.1.0 October 24, 2026
  • Delivery maps now accept place names instead of coordinates. Type Waukesha, Waukesha, Wisconsin or a full street address and the pin, map centre and delivery circle are resolved automatically.
  • New shared asset assets/cm-geocode.js with browser caching, request queuing and a two-service fallback (Photon, then OpenStreetMap Nominatim).
  • Delivery checker town list accepts name-only rows: Name|ZIP,ZIP.
  • Plate map town list accepts name-only rows and resolves unknown towns automatically.
  • cm-delivery-map gains hq_place, a per-pin Or place name field and a geo_country hint.
  • cm-meal-plan-page gains delivery_country.
  • Documentation: rewrote the location chapter around place-name lookup.
1.0.0 October 24, 2026
  • Added 5, 6, 7, 10 and 15 plate plan pages and product templates.
  • cm-build-box: added min_plates, plan handle detection for 5/6/7/10/15 plate plans.
  • Enlarged box plates and matched the “Your box” panel typography to the design.
  • Weekly menu: the all-meals photo now stays visible after hover until another meal is hovered.
1.0.0 October 22, 2026
  • Initial release: meal plan templates, box builder, weekly menu, delivery checker, gift cards, private chef, Metaobject content system.

Google Fonts:
Jost
Plus Jakarta Sans

Libraries:
Shopify Online Store 2.0
GSAP — ScrollTrigger, ScrollSmoother and SplitText. Redistributing Club GreenSock plugins requires an appropriate GreenSock licence.
Leaflet — delivery maps, loaded on demand from unpkg and cdnjs.
OpenStreetMap — map tiles and place data.
CARTO — basemap tiles for the delivery checker.
Photon — place-name lookup for the delivery maps.

Icons: the icon set in assets/ is included with the theme. Check each icon licence before redistributing it outside the theme package.

Thank you for using Prep Meal!

If you have questions about the theme, contact the developer directly:
[email protected]

We aim to answer within 24–48 hours on business days.

Email: [email protected]

Support includes: answering questions about using the theme, fixing reported bugs in the original files, and helping with the topics covered in this documentation.

Support does not include: custom development, third-party app setup, product or menu data entry, or migrating an existing store.

When you ask for help, include: the theme version, the page or template name, the Shopify store URL (or a preview link), and a screenshot of the issue. That usually turns a two-day exchange into a single reply.