Marketing · Present cards (Fideliza gift cards)
Embeds the Fideliza gift-card / present-card platform so staff can issue and manage gift cards without leaving the back office.
| Area | Marketing |
| Routes | marketing.present-card · marketing.present-card.index |
| Centre modules | fideliza |
| Staff levels | per present-card ability |
| Models | gift-voucher · module-fideliza |
| UI label | menu.navbar.present-card |
| Coverage | 3 use cases · 1 happy · 3 failure |
How it works
The Fideliza module carries three URLs — the main platform, the gift-card client view and the gift-card admin view — each validated separately on the centre form. The controller resolves fidelizaURL and distinguishes a configuration problem (fideliza_url_invalid) from a runtime failure (fideliza_url_error), which is better than the other embeds. Related MOF button types: gift-card and gift-card-admin. Stores can nominate gift-card administrators by email on the store form.
Use cases
Why someone opens this (3)
- Selling or issuing a centre gift card at the information desk.
- Letting a store’s nominated administrator redeem gift cards.
- Exposing the gift-card purchase flow as an app button.
Path map
flowchart LR F(["Present cards Fideliza gift cards"]):::feat F --> H1["Gift-card console opened"]:::ok F -.-> X1["URL not configured or malformed"]:::bad F -.-> X2["Platform error"]:::bad F -.-> X3["Store missing gift-card administrators"]:::bad classDef feat fill:#b0432c,stroke:#b0432c,color:#ffffff,font-weight:bold classDef ok fill:#e3f1ea,stroke:#0d6b42,color:#0d4a2e classDef bad fill:#f7e6e2,stroke:#9a2d1c,color:#6e1f13
Happy paths
Gift-card console opened
- Centre has the Fideliza module with valid URLs.
- User opens Marketing → Present cards.
fidelizaURLresolves and the platform loads.
Failure paths
URL not configured or malformed
Cause — Fideliza URL missing/invalid.
What happens —
fideliza_url_invalidin the view; the centre form blocks saving withconfiguration.center.fideliza-url.error.
Platform error
Cause — Fideliza unreachable.
What happens —
fideliza_url_error(‘An error occurred. Please try again later.’).
Store missing gift-card administrators
Cause — Gift card enabled for a store without administrator emails.
What happens —
error.commerce.gift-card-admins.requiredon the store form.
QA checklist
Tick these off while regression-testing this feature. The boxes are plain Markdown, so progress is visible in git diffs.
- ✅ Gift-card console opened
- ⛔ URL not configured or malformed
- ⛔ Platform error
- ⛔ Store missing gift-card administrators
Implementation
app/controllers/marketing/present-card/index.jsapp/routes/marketing/present-card/index.jsapp/models/module-fideliza.jsapp/models/module-fideliza-gift-card.jsapp/models/module-fideliza-gift-card-admin.jsapp/abilities/present-card.js
Translation keys (6)
Key English menu.navbar.present-cardPresent Cards fideliza_url_errorAn error occurred. Please try again later. fideliza_url_invalidThe provided URL has an invalid format. configuration.center.fideliza-url.errorIt must be a valid URL, ex: https://www.google.com mof-type.gift-card-adminAdmin gift card modules-fidelizaFideliza
Related
- Same area — Activity list & duplication · Activity editor (loyalty mechanics, rules & targeting) · Activity report & PDF · Activity campaigns (programme grouping) · Email campaign list, duplication & stop · Email campaign builder (wizard, A-B test, scheduling) · Digital games (lottery) · Fidcard · Book appointment
- Behind the same module — Store create & edit · Activity editor (loyalty mechanics, rules & targeting)
Generated from doc/feature-inventory.json · id marketing-present-card · commit 276788ca6