Document the active/inactive toggle and fix stale "6 rows" references
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
@@ -1516,8 +1516,16 @@ than two subdomains.
|
||||
- The *real* send always reads the **published** template
|
||||
(`getEmailTemplate()` in `app/lib/payload.ts`, `draft` unset) — a Live
|
||||
Preview edit never affects a live customer email until actually saved.
|
||||
- **`active` toggle (2026-07-25)** — each row now has an `active`
|
||||
checkbox (backend `EmailTemplates.ts`); off suppresses the send
|
||||
entirely, checked here for `order-confirmation`
|
||||
(`orderEmail.ts`'s `sendOrderConfirmationEmail()`) before the hardcoded
|
||||
default-wording fallback ever applies. See the backend repo's own
|
||||
README ("Email templates: active/inactive toggle") for the full
|
||||
picture, including the `password-reset` exception (Payload's core
|
||||
`forgotPassword` operation has no hook to actually cancel that send).
|
||||
- `npx payload run src/seed-email-templates.ts` (Payload repo) seeds
|
||||
defaults for all 6 rows — deliberately on-brand and a little playful
|
||||
defaults for all 9 rows — deliberately on-brand and a little playful
|
||||
("Bestellt!" / "Kein Drama." / "Unterwegs!" / "Storniert." / "Alles
|
||||
klar." / "Alles erledigt.", not generic transactional-email
|
||||
boilerplate), matching this site's voice elsewhere (see e.g. the
|
||||
|
||||
Reference in New Issue
Block a user