Skip to content

Make new-order notification templates editable - #1535

Open
realicon23 wants to merge 1 commit into
HiEventsDev:developfrom
realicon23:feature/editable-organizer-order-notification
Open

realicon23 wants to merge 1 commit into
HiEventsDev:developfrom
realicon23:feature/editable-organizer-order-notification

Conversation

@realicon23

Copy link
Copy Markdown
Contributor

What changes I've made

  • Add a New Order Notification template to event and organiser email settings, with editable subject, Liquid body, and button label.
  • Use the active event template, then the organiser default, for notifications to the organiser and opted-in team members. Keep the existing email when neither has an active template.
  • Provide buyer details, phone, order status, and an order-management link in the template context. Keep offline-payment warnings in the editable default and preserve older queued notifications.
  • Translate the new editor labels into every supported locale and update the API reference.

Why I've made these changes

Fixes #1414. The organiser's new-order email was built directly from a Blade view, so it could not be translated or customised through the existing template editor.

How I've tested these changes

  • Unit suite: 3,176 tests, no failures or errors. PHPUnit reports 22 notices, two skipped tests, and 35 risky tests in unchanged tests.
  • Full Feature suite: 3,223 tests passed across four isolated test databases, with no failures, errors, or skips.
  • Seven Playwright email-template tests passed, including creating, previewing, editing, and retaining the new template, organiser defaults, and a completed checkout delivering the customised email to the organiser through local Mailpit.
  • API regression covers creation, preview, tokens, event precedence, account scoping, inactive fallback, and deletion. Unit regressions cover the original Blade fallback, offline payment, HTML escaping, recipient locale, and pre-change queued mail.
  • Frontend and E2E TypeScript checks, frontend production build, and translation extraction/compilation passed with no missing translations. Existing translations are unchanged.
  • Changed frontend files have no ESLint errors and the same pre-existing warnings as the base.
  • Full backend pint --test passed.
  • API reference export and php -d memory_limit=1G artisan scramble:analyze passed.
  • git diff --check and a scoped credential scan passed for added/edited lines.

Demo: open Event Settings → Email → New Order Notification → Create Custom Template, edit the subject/body/button, preview, and save. Organiser Settings → Email Templates provides the corresponding default for all events.

Checklist

  • I have read the contributing guidelines.
  • My code follows the coding standards of the project.
  • I have tested my changes.
  • I understand that this PR may be closed if the contribution guidelines are not followed.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

🌟Missing translation option for "You've received a new order!"

1 participant