We should build it. Most of the builder page already exists as our own theme code: about 80 to 90% of the builder UI can be reused. Foxsell holds the bundle settings, does the pricing and groups the cart behind it. New work is the settings (admin app), the pricing logic (a Shopify Function), the cart grouping and moving the builder into an app block.
We use one Foxsell feature, the Dynamic Add-on bundle ("Quantity as an option"). Everything the shopper sees is our own theme code.
| Part | Today (Xmas box 2026) | Who does it |
|---|---|---|
| Builder page | xmas-box template: hero, builder, info and the store's standard FAQ section. Tier pick (2 or 4, switches automatically as items are added), category tabs (e.g. "Vitamlsky & další doplňky"), slots, progress bar, price summary, mobile bottom sheet. Sold-out variants hidden. | Our theme |
| Bundle settings | Tiers 2 and 4 at 20% / 25%, eligible products and variants, categories. Stored by Foxsell in metafield app--67872686081.dynamic_add_ons_bundle; the builder reads the % from there. | Foxsell |
| Parent product | "Vánoční balíček" with one variant per tier. Two Foxsell bundles: CZ and SK (vianocny-balicek, unlisted). None for PL / ES. | Foxsell + admin |
| Gift box | Free box product per tier (box-of-2 / box-of-4, CZ and SK variants), linked by variant metafield custom.bundle and added as an add-on. Our builder picks the right box; Foxsell does not check it. | Our theme + admin |
| Cart | One parent line per box with __foxsell properties and _box_no. Foxsell's Cart Transform expands it into item lines with _Bundle. | Foxsell |
| Discount | Foxsell applies it on the CZK base price. In SK it is converted at the daily rate, so the charged price differs from what we show, in both directions (most combos cheaper, some more expensive). Foxsell confirmed fixed market prices are not on their roadmap. | Foxsell |
| Warehouse (Supply.do) | Since 24 Nov every item in a box has Box: Box N. "+" on a box in the cart adds a new box, remove takes out the whole box. Our theme sets the label; Foxsell's Cart Transform copies it onto the order lines. Supply.do (Jan) has not yet confirmed they read it. | Our theme + Foxsell |
| Markets | CZ live since 16 Nov. SK on hold commercially. PL and ES not offered. | Our theme + admin |
v1 = needed to switch off Foxsell. later = after launch.
| Requirement | |
|---|---|
| v1 | Several bundles (each new offer is its own bundle on its own product), each with name, status (draft / active / paused), optional start and end dates. |
| v1 | Tiers per bundle: box size (2, 3, 4…) and % off per size, or a fixed amount off. |
| v1 | Eligible products by product, variant or collection. Categories (tabs) with name and order. |
| v1 | Markets per bundle (CZ, SK, PL, ES) with the eligible variant per market, because the store uses separate market variants. |
| v1 | Gift box per tier and per market, added free and automatically. |
| v1 | Rules: same product more than once yes/no, max per product, sold-out items hidden or greyed. |
| v1 | Discount combinations: shipping discounts only. The box discount does not combine with 2+1 offers or with product or order codes. |
| later | Report: boxes sold, revenue, most picked products per market and month (needs order access). |
| later | Duplicate a bundle (e.g. copy last year's Xmas box). Gift note per box (built once, removed at the client's request). |
| Requirement | |
|---|---|
| v1 | Builder as an app block (theme app extension). It works on any Online Store 2.0 theme, and theme updates don't break it. After a switch to a new theme, the block is added again in the theme editor. |
| v1 | Starts from the approved Xmas builder UI: tier picker, tabs, product cards with + / −, slots, progress bar, summary (was / discount / now), mobile bottom sheet. Built so any design the client asks for can be applied. |
| v1 | Prices in the shopper's market currency, matching checkout to the cent (SK fixed EUR included). |
| v1 | Texts in CS, SK, PL, ES, EN. Fixed UI texts ship with the app (we change them). Headings, banners, colours and images are block settings in the theme editor. Whether Translate & Adapt picks up app block settings is not documented; we test it on the dev store. |
| v1 | "Not available in your country" message for markets without the bundle. |
| v1 | Fast on mobile (no call to our server), keyboard and screen reader friendly, add-to-cart and purchase analytics events. |
| Requirement | |
|---|---|
| v1 | "Add box" puts the whole box in the cart in one go, with a unique hidden box id (_bundle_id, not shown to customers) and Box: Box N (shown in cart and checkout, as today). |
| v1 | Discount applied by Shopify through our Function, only for complete boxes. The Function re-checks every box (size, eligible variants, market) and trusts nothing sent from the browser. |
| v1 | Cart drawer and cart page show the box as a group: "+" adds a new box, remove takes out the whole box, item quantities inside a box are locked. The drawer is theme code, so this part is redone if the theme changes. |
| v1 | Orders keep Box: Box N on each line for Supply.do, plus an order tag (via Shopify Flow, included in Plus). |
| v1 | Defined behaviour when an item sells out while in the cart, when the shopper switches market with a full cart, and for express checkout (Shop Pay, Apple Pay). |
| v1 | Stock, shipping profiles and invoicing work as today, since items stay real product variants. |
The design keeps our server out of the shopper's path. Bundle settings are saved inside Shopify, the builder reads them on the page, and the price is calculated by Shopify itself.
Box: Box N.Shopify offers two ways to price the box. Both run on Shopify, and the rest of the plan is the same.
| A. Discount Function | B. Cart Transform (what Foxsell uses) | |
|---|---|---|
| Cart / checkout | Separate lines per item, discount on each | One "Box" line that expands to its items |
| SK fixed EUR price | Exact: confirmed in Shopify's docs | Likely exact, to be proven in the test |
| Cart drawer work | More: our own grouping, locked quantities | Less: one line per box, "+" and remove are native |
| Order shape for Supply.do | Normal lines with Box N | Same shape as today |
| Needs | Nothing extra | A parent "Box" variant per tier and market (these exist today); Foxsell's transform removed first |
Plan: a 1-day test on the dev store (SK EUR price, Box N on the order, a Supply.do test order). If B passes, we use B; if not, A, which is proven. The ETA below covers A, the larger of the two.
Tech: Shopify app template (React Router, the successor of the Remix template Stockline uses), Shopify Functions in Rust or JS, theme app extension. The store is on Shopify Plus, which is required for a custom app with Functions.
The storefront starts from the look the client approved for the Xmas box. Design stays flexible, so a new client design can be applied later. Step 2 shows it properly.
| Item | Why / detail |
|---|---|
| Google Cloud project | A project with billing on, Owner or Editor access for me, and a budget alert owner. |
| Foxsell plan and renewal date | To time the switch-off after Christmas and know the saving. |
| Supply.do (Jan) | Confirm they read Box: Box N from order lines (not confirmed yet), and whether they also use the cart note Box_of_2 / Box_of_4 that the cart drawer writes today. |
| Item | Decision |
|---|---|
| GitHub org | Grow-with-CRO. We already have access. |
| Dev store | We have one. |
| New offers | Bundles work as in Foxsell. A new offer is a new bundle on a new product; nothing is tied to a season. |
| Design | Flexible: whatever design the client asks for, we can apply it. The builder starts from the Xmas UI, and texts, colours and images are theme editor settings. A new layout from the client is a design change on the app block, quoted per request. |
| Discount combinations | The box has its own offer price, so it combines only with shipping discounts. No 2+1, no product or order discount codes on box items. |
Working days, one developer. The clock pauses while we wait for answers or approvals. Estimates were reviewed independently against the current theme code.
| Step / task | Days | Output |
|---|---|---|
| Step 1. Requirements doc: 1 to 2 days | ||
| Draft (this doc) + revision after your answers | 1–2 | Final requirements |
| Step 2. Front-end mockup: about 3 days | ||
| Storefront builder, desktop + mobile, cart drawer | 1.5–2 | Static HTML/CSS, local |
| Admin screens: bundle list + editor | 1 | Static HTML/CSS |
| Step 3. Full build: about 37 days + 15–20% buffer | ||
| Repo, app scaffold, Google Cloud project, CI/CD, secrets, session storage; Discount vs Cart Transform test (1 day) | 4 | App installs on dev store; approach decided |
| Metaobject definitions, access scopes | 1 | Data model |
| Admin: bundle list and editor | 4 | Team can create bundles |
| Admin: per-market variants and gift box per tier per market | 2 | Market mapping |
| Sync settings to the automatic discount on save | 1.5 | Function config in place |
| Function + automated tests | 3.5 | Correct % in all markets |
| Checkout validation (partial boxes, lone gift box, tampered data) | 1.5 | Optional; not needed with Cart Transform |
| Builder app block (port of the Xmas builder, new data layer, own translations) | 5.5 | Works on any 2.0 theme |
| Cart drawer and cart page: grouping, Box N, "+" = new box, remove whole box | 3.5 | About 1 day with Cart Transform |
| Markets CZ / SK / PL / ES | 2 | +1–2 days if PL / ES variants must be set up |
| Order tag via Shopify Flow, Supply.do test orders | 1 | Supply.do-ready orders |
| Analytics events, accessibility, mobile performance | 1.5 | |
| Monitoring: uptime check, log alerts, budget alert | 0.5 | |
| QA: tiers × markets × discount combinations, sold-out item, express checkout, Foxsell overlap | 3.5 | Test report |
| Migrate Xmas settings, switch rehearsal on test theme, rollback plan | 1.5 | |
| Go-live, 2 days of watching, handover notes | 2 | Live + docs |
| Buffer for client feedback and waits (15–20%) | 5–7 | |
| Total, all three steps | ≈ 47–51 | About 9 to 10 weeks |
If the Cart Transform test passes, the build drops by about 3 to 4 days.
My take: yes to Google Cloud, using Cloud Run. But uptime matters less than it seems. Shoppers never hit our server. If it goes down, only the admin screens stop; the builder, the pricing and checkout keep working.
| Google Cloud (Cloud Run) | Railway | |
|---|---|---|
| Uptime | 99.95% monthly uptime SLA; each service runs across several zones by default | No contractual SLA below Enterprise; published targets 99.9% (Hobby), 99.99% (Pro). Fine for Stockline so far |
| CLI | gcloud: deploy, logs, secrets, IAM | railway: deploy, logs, variables, ssh. The CLI alone is no reason to move |
| Cost (approximate) | Close to €0 with scale to zero (free tiers of Cloud Run, Firestore, Secret Manager). One always-warm instance: about €8–12 a month | Hobby $5/month incl. $5 usage (one small service + Postgres); Pro $20/month |
| Setup effort | More: project, billing, IAM, deploy keys (in the ETA) | Less, and we already know it |
| Downside | Two platforms to look after while Stockline stays on Railway | |
dogmama-bundles) in europe-west3 (Frankfurt). Warsaw and Berlin cost the same; Belgium is about 30% cheaper. Latency doesn't matter for an admin-only app.main → GitHub Action with Workload Identity Federation (no key files) → Cloud Run. A manual deploy is one command, gcloud run deploy --source .. Functions, the app block and app settings deploy separately with shopify app deploy.Box: Box N, and the new app keeps the same label, so Supply.do should see no change. This holds only once Jan confirms they read it. Orders before 24 Nov only have Foxsell's _Bundle.Box: Box N. Check they look right.
Shopify: Functions (Plus requirement) ·
Discount Function API ·
Functions and currencies ·
Cart Transform API ·
Discount combinations ·
API versioning ·
Theme app extensions ·
Metaobject limits ·
App template ·
Session storage adapters ·
Expiring tokens
Google Cloud: Cloud Run SLA ·
Cloud Run pricing ·
Firestore pricing ·
Secret Manager pricing ·
Locations ·
deploy-cloudrun
Railway: Pricing ·
Plans ·
CLI
Internal: Xmas_Box_GoLive_Plan.md, Xmas_Box_SupplyDo_Task.md, live theme code (24 Nov 2026), Foxsell support replies 13–17 Nov 2026.