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]
Theme Features
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 plans | Dedicated 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 builder | cm-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 menu | Meals with photo, sides, calories, protein, carbs and fat. Hover (desktop) or tap (mobile) to preview; “Load more” reveals the rest. |
| Delivery checker | Two 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 cards | Amount picker, recipient details, send-on date and personal message, wired to a Shopify gift card product. |
| Metaobjects | Five content types so a large menu, FAQ list or testimonial wall can live outside the theme editor and be reused on any page. |
Requirements
- 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.
Package Contents
The download package contains:
- prepmeal-shopify.zip — the installable theme (upload this in Shopify admin)
- documentation — this help file (open
docs/index.html) - CONTENT-GUIDE.md — a short, non-technical content entry guide you can hand to the client
Inside the theme the folder structure is:
- assets/ — CSS, JavaScript, images, icons and SVG files
- blocks/ — theme app blocks
- config/ —
settings_schema.json(settings definitions) andsettings_data.json(saved values) - layout/ —
theme.liquidandpassword.liquid - locales/ — translation files for all storefront strings
- sections/ — all page sections, including the
cm-*meal-prep sections - snippets/ — reusable partials (cards, icons, price, media)
- templates/ — JSON templates for every page type
Theme Installation
Option A — Upload the ZIP (recommended for first install):
- In Shopify admin go to Online Store → Themes.
- Click Add theme → Upload zip file and choose
prepmeal-shopify.zip. - Wait for the theme to upload, then click Customize to preview it.
- 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:
- Upload your logo and favicon in Theme settings → Logo.
- Create the menus under Content → Menus (main menu, footer menu) and select them in the header and footer sections.
- Create your metaobject definitions and entries (see Metaobjects).
- Assign the meal plan templates to your pages and products (see Templates & Pages).
Theme Structure
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"]
}
Theme Settings
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 |
|---|---|
| Logo | Logo image or theme asset filename, logo width, favicon. |
| Colors | Color schemes used by sections: background, text, button, secondary label and shadow. |
| Typography | Heading and body font, heading scale, body scale. |
| Layout | Page width in px, section spacing, grid spacing. |
| Animations | Scroll reveal, GSAP animations, hover effects. |
| Buttons / Inputs / Cards | Border thickness, corner radius, shadow for buttons, variant pills, inputs, product cards, collection cards, blog cards, text boxes, media, popups and drawers. |
| Badges | Badge position and radius, sale and sold-out color schemes. |
| Brand information | Brand headline, description, social links. |
| Search / Currency / Cart | Predictive 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]"
}
Fonts Used
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;
}
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.
Theme Colors
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 | #f5a623 | Default light sections |
scheme-2 | #ffffff | #262626 | #f5a623 | Product and collection cards |
scheme-3 | #c2b7ac | #262626 | #fdfdfd | Warm neutral bands |
scheme-4 | #092a49 | #ffffff | #ffffff | Dark navy hero and CTA bands |
scheme-5 | #f5a623 | #111111 | #111111 | Amber highlight blocks |
scheme-charcoal | #141414 | #ffffff | #f5a623 | Dark sections |
scheme-warm | #f4f2ee | #1a1a1a | #f5a623 | Soft 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;
}
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.
Change the Location
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.
Where location data lives
| What | Section | Where it shows |
|---|---|---|
| Map centre and zoom | cm-delivery-map → center_lat, center_lng, zoom | Delivery map on the product template |
| Headquarters pin | cm-delivery-map → hq_lat, hq_lng, hq_address | The “HQ” popup on that map. Also accepts hq_place. |
| Delivery towns (pin map) | cm-meal-plan-page → delivery_towns | Delivery checker on every plan page |
| Kitchen pin (checker) | cm-meal-plan-page → delivery_kitchen_lat, delivery_kitchen_lng | Centre dot and zone circle. Accepts numbers or a place name. |
| Delivery towns (plate map) | cm-meal-plan-page → plate_towns | Styled 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_lng | Centre of the plate map and the ring around it. The marked town wins when both are set. |
| Kitchen label / address | cm-meal-plan-page → plate_kitchen_label, plate_kitchen_address | Under the plate map |
| Delivery towns (metaobject) | Product metafield custom.delivery_area_list, falling back to the same key on the shop-level shared metafields | Highest priority. Wins over delivery_towns and plate_towns |
| Customer place lookup | cm-meal-plan-page → delivery_msg_lookup_yes, delivery_msg_lookup_no, delivery_msg_lookup_fail | The 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_out | The same answer on the plate map |
| Footer address | cm-footer → Contact info block → area | Site footer |
| Contact page | cm-contact-page → contact_item blocks | Contact 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:
- Set
delivery_kitchen_latto your latitude. - Set
delivery_kitchen_lngto your longitude. - Set
plate_kitchen_addressto the address text you want shown, for exampleWaukesha, Wisconsin. - Leave
delivery_radius_kmat0to 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.
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 |
|---|---|
Waukesha | Name only. The point is looked up automatically. |
Waukesha|53186 | Name and ZIP. Point looked up, and customers can search by postcode. |
Waukesha|53186,53188 | Several ZIPs for one town, comma separated, no spaces. |
Waukesha|43.0117|-88.2315|53186 | Exact 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_chipscontrols 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|kitchenworks with no coordinates at all. - Add the word
kitchenas the fifth column on the row that marks your base. latandlng(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%andtop%(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_radiusis 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.
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.
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, WI | Finds the exact building, not just the town. |
Chicago | Finds it, shows the distance from your kitchen, and marks it outside the zone. |
asdfgh | Reports 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_urlanddelivery_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_inorplate_msg_lookup_out. - Submitting an empty field is answered separately —
plate_msg_emptyon the plate map, and a silent reset to the full zone on the street map.
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.
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 exampleHartland, 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
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.
Templates & Pages
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.json | Home page | Hero banner, 4-step features, image with text, parallax gallery, badge row, flavour wheel, product details, delivery areas |
page.meal-plans.json | Meal plans landing | cm-meal-plan-page |
page.5-meal-plan.json | 5 plate plan | cm-meal-plan-page |
page.6-meal-plan.json | 6 plate plan | cm-meal-plan-page |
page.7-meal-plan.json | 7 plate plan | cm-meal-plan-page |
page.10-meal-plan.json | 10 plate plan | cm-build-box, cm-meal-plan-page |
page.15-meal-plan.json | 15 plate plan | cm-meal-plan-page |
page.about.json | About | Chef story, why-us rows, contact CTA |
page.how-it-works.json | How it works | Hero, steps, FAQ, contact CTA |
page.faqs.json | FAQs | Four collapsible content groups (ordering, products, heating, delivery) |
page.delivery-areas.json | Delivery areas | Delivery areas, steps, FAQ, contact CTA |
page.contact.json | Contact | Page content, contact page form and details |
page.gift-cards.json | Gift cards | cm-gift-card |
page.private-chef-experience.json | Private chef | cm-private-chef |
page.custom-meal-plans.json | Custom plans | Page content, rich text, contact form |
page.json | Default page | main-page |
page.burgers.json, page.burgers-light.json | Alt menu demo | Food hero, food menu, food features |
Product templates
| Template | Used for | Sections |
|---|---|---|
product.json | Individual meals and general products | Meal details, main product form, related products, chef story, why-us, steps, delivery map, plans, contact CTA |
product.5-meal-plan.json | 5 meal plan | cm-build-box (min plates 5) |
product.6-meal-plan.json | 6 meal plan | cm-build-box (min plates 6) |
product.7-meal-plan.json | 7 meal plan | cm-build-box (min plates 7) |
product.10-meal-plan.json | 10 meal plan | cm-build-box (min plates 10) |
product.15-meal-plan.json | 15 meal plan | cm-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
- Create the page or resource in Shopify admin (for example a page with the handle
5-meal-plan). - Scroll to Theme template in the right sidebar.
- Pick the matching template, for example
page.5-meal-plan, and save. - 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.
Sections Reference
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-page | CM meal plan page | Complete plan landing: hero, benefits, weekly menu, chef, steps, quality, gallery, delivery checker, reviews, FAQ, related plans, CTA | meal, benefit, step, quality, menu_item, review, faq, related |
cm-build-box | CM build your box | Slot-based box builder that adds the selected plates to the cart | — (uses plan variants) |
cm-mp7 | 7 Meal Plan | Single-section plan page for the 7 plate plan | meal, way_meal, feature, testimonial, step, popular, faq, favorite |
cm-product-details | Product details | Meal detail block with dish switcher, nutrition, accordions and plan pricing | dish, accordion |
prep-meal-details | Prep meal details | Nutrition, ingredients, allergens, diet tags read from product metafields | — |
cm-hero | CM hero + ticker | Hero with a scrolling ticker band and numbered chips | chip |
cm-steps | CM how it works | Numbered or timeline steps | step |
cm-plans | CM meal plans | Plan comparison cards | plan |
cm-featured-plan | CM weekly table | Weekly menu table with stamp | dish |
cm-usp | CM why us rows | Alternating image and text rows | row |
cm-chef-story | CM chef story | Chef bio with image or video and pull quote | — |
cm-parallax-gallery | CM parallax gallery | Numbered, parallax image story | item |
cm-thali-wheel | Thali wheel | Circular photo wheel of dishes | item |
cm-arc-carousel | CM 3D product carousel | Curved carousel of products or items | item |
cm-delivery-areas | CM delivery areas | List of served towns with feature icons and plate art | area, feature |
cm-delivery-map | CM delivery map | Leaflet map with pins and a name/address popup | pin |
cm-gift-card | CM gift card | Gift card amount, recipient, date, message and checkout | fact, step, faq, review |
cm-private-chef | CM private chef | Private chef landing with occasions, expectations and enquiry form | perk, occasion, expect, step, field |
cm-contact-page | CM contact page | Contact page with details panel and contact form | contact_item |
cm-contact-form | CM contact form | Configurable contact form with custom fields | field, group_heading |
cm-contact-cta | CM contact CTA | Closing call to action band | — |
cm-footer | Chef Matt footer | Footer with CTA band, link columns, contact and newsletter | links, menu, contact |
meal-plans | Meal plans | Plan card grid, Metaobject or blocks | plan |
faq | FAQ | Accordion FAQ, Metaobject or blocks | faq |
testimonials | Testimonials | Review grid with star ratings, Metaobject or blocks | testimonial |
delivery-zones | Delivery zones | Zone cards with days, cut-off, fee and minimum, Metaobject or blocks | zone |
how-it-works | How it works | Steps list, Metaobject or blocks | step |
ss-feature-1 | SS Feature #1 | Icon or animation feature grid | image |
image-banner | Image banner | Hero banner, includes the “Prep meal” hero style | heading, text, buttons |
image-with-text | Image with text | Two-column content with optional overlay card | caption, heading, text, button |
collapsible-content | Collapsible content | FAQ groups used on the FAQ page | collapsible_row |
food-hero, food-menu, food-features | Food hero / menu / features | Alt burger demo | menu item, feature |
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
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
- If the Metaobject list selected in the section has entries, the section renders those.
- If the list is empty, the section renders its blocks instead.
- 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
- Go to Content → Metaobjects → Add definition.
- Set the Type to the exact name in the table below (for example
meal_plan). The type cannot be changed later. - Add each field with the exact field name and type shown below. Field names become the template accessors, so
Short descriptionmust be namedshort_description. - Enable the storefront access for each field you display.
- 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 |
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.
plan.short_description, zone.area_name, step.step_number and so on. If a field is named differently, the value silently renders empty.
Product Metafields
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.calories | Integer | Calorie badge / nutrition cell |
custom.protein | Integer | Protein, grams |
custom.carbs | Integer | Carbs, grams |
custom.fat | Integer | Fat, grams |
custom.ingredients | Multi-line text | Ingredients tab / accordion |
custom.allergens | List of single line text | Allergen list |
custom.diet_tags | List of single line text | Diet badges and filters |
custom.reheat_instructions | Multi-line text | Reheat 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 -%}
Meal Plan Pages
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.
"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-plan | 5-meal-plan | blank | 5-meal-plan | 5-meal-plan | 5 |
page.6-meal-plan | 6-meal-plan | blank | 6-meal-plan | 6-meal-plan | 6 |
page.7-meal-plan | 7-meal-plan | blank | 7-meal-plan | 7-meal-plan | 7 |
page.10-meal-plan | 10-meal-plan | blank | 10-meal-plan | 10-meal-plan | 10 |
page.15-meal-plan | 15-meal-plan | blank | 15-meal-plan | 15-meal-plan | 15 |
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:
- Duplicate the JSON template, for example
page.5-meal-plan.jsontopage.8-meal-plan.json. - Set
plan_product,meals_productandpicker_countinside the section settings. Pick the products from the picker — do not type a handle. - Update the copy: plan label, heading, text, hero facts and CTA labels.
- Create the page with a matching handle and assign the new template.
- Add the plan product in Shopify admin.
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 |
|---|---|
| Hero | plan_label, heading, text, three label/value fact pairs, two buttons, two hero images, badge value and label |
| Benefits | ben_line_1..3, ben_note |
| Weekly menu | menu_eyebrow, menu_heading, menu_text, explore_heading, load_more_label, detail_note, meal_price, total_label, picker_count, content_product, plan_product, meals_product |
| Chef | chef_eyebrow, chef_heading, chef_text, chef_image_1, chef_image_2 |
| Steps | steps_eyebrow, steps_heading |
| Quality | quality_eyebrow, quality_heading, quality_text, quality_button |
| Thali plate | thali_show, thali_image, thali_chips, thali_tickets, thali_steps, thali_towns, and the surrounding headings |
| Gallery | show_gallery, gallery_eyebrow, gallery_heading |
| Delivery | delivery_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 / CTA | Eyebrow and heading for each, plus CTA text, label and link |
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 |
|---|---|---|
| 1st | Top left | −4° |
| 2nd | Top right | +3° |
| 3rd | Bottom left | +3° |
| 4th | Bottom right | −3° |
Where the labels come from, in priority order:
custom.thali_chips— a metafield list on the plan product, one entry per label.- Plate labels (
thali_chips) in the theme editor — one label per line. - 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 copy | hero_image_1, hero_image_2 | Bundled photo |
| Chef story (two photos) | custom.chef_image_1, custom.chef_image_2 — then the shop-level copy | chef_image_1, chef_image_2 | Bundled photos |
| Thali plate | custom.thali_image | thali_image | four-items-plate.webp |
| Meal card | The 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 photo | testimonial → photo | — | Nothing rendered — the card simply shows no avatar |
| CTA background | custom.cta_image — then the shop-level copy | cta_image | Bundled photo |
| Related plan card | meal_plan → image | — | The linked product's featured image |
Build Your Box
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
- 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.
- Every plate costs the variant price. Quantity controls appear once a plate is added.
- The box shows a running subtotal, the box discount, and the total.
- The checkout button stays locked until Plates needed before checkout (
min_plates) is reached. - Adding to the cart posts each selected variant with a
Planline-item property and opens the cart drawer.
Settings
| Setting | Default | Notes |
|---|---|---|
heading | Plan title | Page heading, for example “10 Meal Plan”. |
lede | Discount explanation | One or two sentences above the grid. |
product | 10-meal-plan | On a product template the current product is used automatically. |
min_plates | 5 | Plates 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 – 9 | 15% | “15% unlocked. N more for 20% off.” |
| 10 or more | 20% | “You’ve unlocked the best rate: 20% off every plate.” |
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>
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"]
}
Add, Update or Remove a Product
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 |
|---|---|---|---|
| Meal | peri-peri-chicken | product (default) | One dish. Carries nutrition metafields and the photo used in menus. |
| Plan | 6-meal-plan | product.6-meal-plan | Container. Its variants are the ten dish names; its price is what the cart charges per plate. |
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
- Products → Add product. Give it a name customers would say, for example
Peri Peri Chicken with Roasted Potatoes & Carrots. - Set Product type to
Mealand the price to the per-plate price. - Leave the template as
product— only plan products use a suffixed template. - Upload the dish photo. Crop it square (900 × 900); it is used as the menu card and the round plate.
- Fill the nutrition metafields:
custom.calories,protein,carbs,fat, plusingredients,allergens,diet_tags,reheat_instructions(see Product Metafields). - 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. - 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:
- Open the plan product, for example
6-meal-plan. - In the
Mealoption, add the dish name exactly as written on the meal product. - Set the variant price to the per-plate price.
- 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 plate | Product → Variants → Price | Change it on the plan product; that is the number the cart charges. The meal product price only shows in the menu list. |
| Dish name | Product title or variant title | Renaming a variant breaks any Menu item block that matched the old name — update both. |
| Photo | Product → Media | Replace, do not just add: the first image is the one used. Square crop, 900 × 900. |
| Nutrition | Product → Metafields | Nutrition is safety information. Update calories and allergens together. |
| Menu order | Plan product → Options → drag values | Dropdown order follows option value order, not alphabetical. |
| Description | Product → Description | Plan page cards use the block text, not the product description. Change the block too. |
Remove a product
- 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.
- Check the plan pages: open each one and confirm the dish is gone from every dropdown.
- Remove it from the collection, then archive or delete the product in Products.
- If the product is referenced by an image or a link in a section, clear that link so it does not 404.
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-plansand 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.jsonandtemplates/product.N-meal-plan.jsonif you are not bringing it back. - Drop the handle from
plan_handlesinsections/cm-build-box.liquidif 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-planfor 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 & Meal Details
product.json combines three layers:
prep-meal-details— nutrition, ingredients, allergens, diet tags and reheat instructions, read from product metafields.main-product— the standard Shopify product form: media gallery, variant picker, price, quantity and buy buttons.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_custom | Plan products used for the 5, 10 and custom meal buttons. |
heading, eyebrow, badge, text | Meal copy. The heading falls back to the product title. |
chip_1..3 | Short reassurance chips, for example “Fresh, never frozen”. |
note | Delivery or minimum-order note under the button. |
cal, protein, carbs, fat | Fallback 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. |
{{ price | money }}. A typed price goes stale the moment you change a variant.
Delivery Areas & Map
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 |
|---|---|---|
name | Yes | The town name, for example Hartland. This alone is a working entry. |
postcodes | No | One or more ZIPs, comma separated. Lets customers search by ZIP as well as name. |
is_kitchen | No | true on exactly one entry — the town your kitchen sits in. Drives the kitchen pin and the ring. |
latitude, longitude | No | Decimal degrees. Leave blank to let the theme look the town up. Filling them removes the lookup and is faster. |
map_x, map_y | No | No longer read. Held for backwards compatibility only. Pins are placed from real coordinates, so new entries can leave these blank. |
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_kitchenon exactly onedelivery_areaentry, or setdelivery_kitchen_lat/_lng. Nothing can guess which branch cooks the food. - Postcodes, only if you want them.
postcodeslets a visitor find a town by ZIP. Name search works with it blank. - Nothing else.
map_x/map_yare accepted for backwards compatibility but no longer read — pin placement comes from geocoding or fromlatitude/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:
delivery_area_list— the metaobject list on the plan product, else the shop-level shared copy.delivery_towns— the older pipe-delimited product metafield list.plate_towns/delivery_towns— the theme editor newline list.- The packaged Hartland / Lake Country default list.
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.
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_button | Search field prompt and action label. |
delivery_msg_yes, delivery_msg_yes_sub | Inside the zone. |
delivery_msg_no, delivery_contact_url, delivery_contact_label | Outside the zone, plus a “ask us” link. |
delivery_show_all, delivery_show_less, delivery_initial_chips | How many town chips show before “show all”. |
delivery_lookup_row, delivery_lookup_loading, delivery_msg_lookup_yes, delivery_msg_lookup_no, delivery_msg_lookup_fail | The suggestion row and the answers for a place that is not on your town list. See Change the Location. |
delivery_country | Country hint for automatic place lookups. |
delivery_legend_kitchen, delivery_legend_areas, delivery_legend_zone, delivery_reset_label | Legend 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_title | Heading above the town chips, for example “We deliver to”. |
plate_visible, plate_more_label, plate_less_label | How 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_label | The card under the map: name, address and an optional “Open in Maps” link. |
plate_map_label, plate_legend_kitchen, plate_legend_area, plate_legend_zone | Accessible map label and legend wording. |
plate_msg_yes, plate_msg_no, plate_msg_empty | Answers for a listed town, for a miss, and for an empty submit. |
plate_msg_lookup_in, plate_msg_lookup_out, plate_msg_lookup_loading | Answers 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.
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 fullsrcfrom 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.
Gift Cards
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
- Create a gift card product with one variant per amount (for example $25, $50, $100).
- Assign
page.gift-cards.jsonto a page, or add thecm-gift-cardsection to any page. - Select the product in Gift card product and set Default amount to the variant you want preselected.
- Edit the fallback amount list, hints and fine print as needed.
Fields collected
| Field | Setting |
|---|---|
| Amount | default_amount, fallback_amounts |
| Recipient name / email | recipient_name_label, recipient_email_label |
| Send on date | send_on_label |
| Sender name / message | sender_name_label, message_label, message_placeholder |
| Button and confirmation | button_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.
Contact & Newsletter
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.
Content Input Guide
Every content section can be filled in two ways. Choose per section:
| Mode | Use when | Where you edit |
|---|---|---|
| Blocks | Small lists, 3–6 items | Customize → select the section |
| Metaobject | Large or frequently changing lists, 7+ items | Content → 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 / banner | 1800 × 800 (mobile crop 1000 × 1000) | JPG / WebP |
| Meal & plan cards | 900 × 900 | JPG / WebP |
| Box plate photos | 480 × 480 | JPG / WebP |
| Icons / features | SVG, or 200 × 200 PNG | SVG / PNG |
| Testimonial photo | 200 × 200 | JPG |
| Gift card card art | 1200 × 800 | JPG / 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.
JavaScript & Animation
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.js | Slot filling, discount tiers, Ajax add to cart |
cm-meal-plan-page.js | Weekly menu hover preview, load more, plan switcher, gallery |
cm-delivery-checker.js | Street-map checker: town/ZIP search, suggestion list, chips, customer place lookup, result messaging |
cm-geocode.js | Place-name to coordinates lookup shared by every delivery map |
cm-da.js, cm-da-map.js | Delivery areas layout and map |
cm-delivery-map.js, cm-delivery-map-legacy.js | Leaflet map with pins |
cm-gift-card.js | Amount picker, recipient fields, add to cart |
cm-mp7.js | 7 plate plan tabs and interactions |
cm-product-details.js | Dish switcher and plan pricing |
cm-thali-wheel.js, cm-arc-carousel.js | Wheel and curved carousel |
cm-hiw-timeline.js, cm-ticker.js | Steps timeline, ticker loop |
food-page.js | Alt 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 -%}
gsap-pending class so content is never left hidden.
Localization
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 & Accessibility
Performance
- Images render through
image_url+image_tagwith explicitwidthsandsizes, 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.
Troubleshooting
| Problem | Cause | Fix |
|---|---|---|
| A section shows no content | Metaobject list selected but entries are drafts | Set each entry to Active, or clear the list to fall back to blocks |
| Metaobject list is missing from the picker | Definition type does not match | Use the exact type names: meal_plan, faq_item, testimonial, how_it_works_step, delivery_zone |
| Card fields are blank | Field named differently to the snippet | Rename the field to the exact key (for example short_description) |
| Build box shows no meals | Product has only a “Default Title” variant | Add one variant per meal |
| Build box button never unlocks | min_plates higher than available variants | Lower min_plates or add variants |
| Box discount not applied at checkout | Discounts are display-only in this theme | Create an automatic order discount in Shopify, or reword the copy |
| Meal photos missing in the box | Variant has no image | Assign per-variant images, or keep the packaged mp-food-*.jpg fallback |
| Delivery checker rejects a valid town | Town list misspelled, ZIP missing, or the row is in the wrong column order | Edit 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 map | The name is unknown to the built-in table and the lookup failed | Add lat and lng to that row. The chip still works without a pin. |
| Plate map opens in the wrong place | A kitchen row in plate_towns overrides delivery_kitchen_lat | Move the kitchen word to the correct row, or remove it and set the coordinate fields |
| Map is blank | Leaflet or its tiles are blocked | Allow 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 layout | delivery_style and delivery_checker disagree | The 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 nothing | No gift card product selected | Select the product, and confirm its variants match the amount list |
| Contact email never arrives | Store email or notification recipient missing | Check Settings → Store details and Settings → Notifications |
| Headings use the wrong font | Font picker changed but CSS variable not | Update --font-heading-family in layout/theme.liquid |
| Text is much larger than designed | Pixel value written as rem | Remember 1rem = 10px; use px or divide by 10 |
| Old content still shows | Browser or CDN cache | Hard refresh, then republish the theme |
| Changes vanished after saving | Theme editor rewrote a JSON template | Reapply in the editor; avoid hand-editing live JSON templates |
Changelog
| Version | Date | Changes |
|---|---|---|
| 1.3.0 | October 26, 2026 |
|
| 1.2.0 | October 26, 2026 |
|
| 1.1.0 | October 24, 2026 |
|
| 1.0.0 | October 24, 2026 |
|
| 1.0.0 | October 22, 2026 |
|
Credits
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.
Support
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.