Skip to content

Feature: QR code table ordering (Phase 1: digital menu, Phase 2: relayed ordering) #478

Open

Description

@itsbkm

Problem or motivation

Customers currently have no way to browse the menu or start an order from their own device at a table. Staff have to walk over and hand out physical menus, and there's no self-service path for the (very common) "scan a QR code at the table" flow that many restaurants now expect. This is especially valuable for peak-hour table turnover and reducing staff trips just to hand out menus.

Current behavior

Tables are created and managed in Table Management, but they have no externally-facing identity — there is no per-table URL, QR code, or online-facing menu. The menu only exists inside the POS UI; it is not exposed anywhere a customer's phone could reach.

Desired outcome

When a table is created (or for existing tables), the operator can generate a QR code for that specific table. Scanning it opens an interactive, mobile-friendly menu in the customer's browser with that table pre-selected/auto-associated — no manual table entry needed.

Proposed in two phases:

Phase 1 — View-only digital menu

  • Generate a unique QR code per table (tied to a table ID / stable token).
  • Scanning opens a mobile web view of the current menu (categories, items, prices, descriptions/images, availability) for that store.
  • No ordering, cart, or payment capability — display only.
  • Menu content stays in sync with what's configured in the POS (no separate content management step).

Phase 2 — Ordering via relay

  • Customers can build a cart and submit an order from the same interactive menu.
  • Orders are sent from our hosted server to the POS via a relay/sync mechanism (the POS itself may remain offline-first and not directly internet-exposed).
  • Order arrives in the POS as a normal order tied to the correct table, going through existing kitchen/KDS and billing flows.
  • Needs conflict handling for offline POS / relay delivery failures, and clear operator visibility into "pending customer orders."

Proposed technical approach (optional)

  • Requires exposing (at least) the menu online in some form — this is a new architectural surface for FloCafe, which is otherwise offline-first, so it needs explicit design/scoping before implementation (what gets hosted, where, multi-tenant isolation, how a table token maps to a store/table, etc.).
  • QR code encodes a URL with a per-table token (e.g. https://<hosted-menu-domain>/<store>/<table-token>), generated/regenerated from Table Management in the POS.
  • Phase 1 can likely be a static/read-only export or periodic sync of menu data to the hosted layer — no live connection back into the POS required.
  • Phase 2 requires a relay component so the always-online hosted order intake can reach an offline-first POS (queued delivery, retries, and an operator-facing "unsynced customer orders" state).

Alternatives considered (optional)

None yet — this is the initial proposal; alternative designs (e.g., an on-prem local network menu instead of an internet-hosted one) may come up during scoping discussion.

Area

Table Management

Additional context

  • This intersects with Table Management (table identity/QR generation), Inventory/Products/Menu (what gets shown online), and KDS/order flow (phase 2 order intake).
  • Given the offline-first core invariant, phase 2 in particular needs architectural discussion before implementation begins — flagging per the issue template note that opening this issue captures the proposal, not an approved implementation.

Activity

  1. added
    enhancement
    on Aug 23, 2026
  2. itsbkm commented on Aug 23, 2026

    @itsbkm
    ContributorAuthor

    Field research: what other operators have learned about QR table ordering

    Summarized from restaurant-owner/operator discussion threads (Reddit: r/restaurantowners, r/restaurants, r/SaaS, r/smallbusiness, r/restaurateur, r/StartUpIndia, r/Tech4LocalBusiness), condensed into our own words below rather than quoted.

    Physical QR placement (relevant to Phase 1)

    • Operators favor permanent stickers or laminated table markers over paper table tents, which get moved, damaged, or lost.
    • Some hand a printed card with the QR on the back to each guest as they're seated, as an alternative to a fixed table marker.
    • Consensus: always keep a few printed menus on hand for guests who won't or can't use a phone menu — don't make QR the only option.

    Functionality signals (relevant to Phase 1 → Phase 2 design)

    • Table-aware QR codes (unique per table, mapped in the ordering system) is the expected baseline, not an add-on — matches what we already scoped.
    • Several operators described a shared table session: everyone who scans the same table's QR joins one synchronized cart, so the whole table can add items and see what's been ordered. This is a meaningful Phase 2 design decision — worth deciding early whether v1 of ordering is single-scanner-per-order or shared-cart, since shared-cart is architecturally different (multi-client sync, conflict resolution) and harder to retrofit later.
    • A kitchen-facing view and a floor/manager view (who ordered what, order status) came up repeatedly as necessary alongside the customer-facing menu — for us this maps to existing KDS integration in Phase 2, not new build.
    • Item modifiers (removals, substitutions, extras) were called out as a make-or-break feature — a self-order flow without modifier support reportedly causes so much order friction that it kills adoption. Worth flagging as in-scope for Phase 2 ordering, not a "later" nice-to-have.
    • One operator described a variant flow: customer orders at a counter/kiosk, gets a transaction number, then scans any table's QR and enters that number to route the order to wherever they sit. Not our primary use case (we're doing scan-at-your-table), but worth keeping in mind as a secondary flow for counter-service-style layouts.
    • Offline/poor-signal fallback was raised as a real failure mode — a menu that fails to load over weak restaurant wifi/cellular breaks the whole flow. Given FloCafe's offline-first stance, this is worth explicit design attention for Phase 1 (e.g., is the hosted menu robust to flaky guest devices even though the POS itself stays offline-capable?) rather than assuming guest connectivity is reliable.

    Adoption & business considerations (context, not blocking scope)

    • Expect real customer pushback — some diners will refuse to use a phone menu outright. Reinforces that printed menu availability isn't just an edge case to handle, it's a baseline expectation.
    • This is a crowded, heavily-built product space; several commenters pushed back hard on redoing it without differentiation. For us this is less risky since it's a feature inside an existing POS rather than a standalone product, but worth being deliberate about what it needs to do well rather than a shallow "any” QR menu.
    • Reported to work best for venues with a steady stream of small/incremental orders (e.g. hot pot, fast-casual, bar tabs) where self-serve ordering increases order frequency/throughput — useful signal for how we message/pitch this feature to operators, not a scope change.
    • Longer-term upsell potential mentioned: analytics on what gets viewed/tapped, dynamic pricing, and built-in upsell prompts in the menu flow. Out of scope for Phase 1/2 as proposed, but worth keeping the data model open enough that item-view/order analytics could be added later without a rework.
    • Integrations mentioned as differentiators elsewhere: payment collection, loyalty/SMS marketing, reorder campaigns. Also out of scope here — flagging only so Phase 2's relay/order-intake design doesn't inadvertently make these harder to add later.

    Operational practices worth designing for

    • Table/session release: after payment or after a configurable idle window, the table session should reset so a new party isn't attached to a stale cart or a stranger's order. This needs explicit handling in Phase 2 (session lifecycle tied to table state, not just "order submitted").
    • Abuse/fraud on anonymous scan flows: since scanning a QR requires no login, operators raised concern about fake or spam orders. Phase 2 should have some throttling/verification story (e.g., rate-limiting per table/session, requiring an active table state in the POS before orders are accepted) rather than treating the relay endpoint as fully open.
    • General menu UX guidance: a QR menu that's just a scanned/exported PDF is a common complaint (hard to read, not mobile-friendly). Reinforces that Phase 1 should be a proper responsive web view of menu data (already the plan), not a PDF or image dump.

    These are operator-reported patterns from public discussion threads, not confirmed requirements — flagging for design discussion, particularly the shared table cart decision (Phase 2) and the printed-menu-backup / connectivity fallback expectation (Phase 1), since both affect the shape of the initial implementation.

  3. added
    area:frontend
    area:backend
    priority:normal
    type:feature
    state:needs-design
    on Nov 28, 2026
  4. khaira777 commented on Nov 28, 2026

    @khaira777
    Contributor

    Codebase status & Phase 2 handoff alignment (origin/main @ 3cef9027, incorporating Fork Audit QR-001 & QR-002):

    Already shipped (Phase 1 - view-only digital QR menu):

    • #1352 (388b3c63) & #1578 (54852ee1) shipped Google Drive hosted digital QR menus and printable QR table cards (frontend/src/components/settings/QrMenuSettingsTab.tsx, frontend/src/lib/printer/menu-web-print.ts buildQrTableCardHtml, main/services/google-drive.ts, main/routes/settings.ts).

    Remaining Phase 2 scope (Relayed Table Ordering - absorbing QR-001 & QR-002):

    • Codebase anchors: main/routes/tables.ts (per-table stable QR token), main/routes/orders.ts (POST /api/orders, online_platform, external_order_id), main/services/cloud-sync.ts (existing outbound cloud channel), main/services/service-model.ts (#1626 hybrid / requires_kitchen).
    • QR-001 Outbound WebSocket / Relay Transport (Core Invariant chore: unify cross-platform build scripts and configure Windows AppX #1): The local POS initiates an outbound connection to the relay (zero inbound port forwarding or exposing :3001 to the public internet). Core POS operations stay 100% functional when offline; if relay drops, customers see clear availability state and staff continue normal table service.
    • QR-002 Mandatory Staff Approval Gate: Incoming customer QR orders land in a distinct "Pending Customer Orders" review queue on POS/Server App rather than auto-firing directly to KDS or deducting inventory/recipes. Staff can accept (commits order + triggers KDS/inventory), edit, or reject with reason; aligns with the upcoming Open Integration Platform RFC external-order intake contract.
    • Phase 2 acceptance criteria: (1) Per-table unique rotatable QR token in tables; (2) menu/modifier/variant/out-of-stock sync from POS catalog; (3) outbound relay order intake into pending approval queue with audio/badge alert; (4) staff accept/reject flow creating standard dine_in orders (supporting multi-tab #1445 if enabled); (5) full modifier/variant support per field research.
    • Design decisions to lock: (1) Single-scanner-per-order vs shared table cart in Phase 2 v1; (2) LAN-only Wi-Fi QR ordering mode (via #1624 automatic LAN HTTPS) vs cloud-relayed mode; (3) whether approval gate can later be toggled to auto-accept for trusted stores.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:backendarea:frontendenhancementpriority:normalstate:needs-designtype:feature

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions