Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Forward template variables to the template loader #2242

Closed
StampixSMO opened this issue Jun 22, 2023 · 0 comments
Closed

Forward template variables to the template loader #2242

StampixSMO opened this issue Jun 22, 2023 · 0 comments

Comments

@StampixSMO
Copy link
Contributor

StampixSMO commented Jun 22, 2023

Is your feature request related to a problem? Please describe.
We would like to customise template loading based on order data. For example, a different email for promotions.

Describe the solution you'd like
Forwarding the templateVars to the TemplateLoader would make this possible.

Describe alternatives you've considered
No alternatives possible with the current API. We could use the EmailGenerator to override the already read body, but that is currently a synchronous function and hence that would have to change too.

Additional context
I'll open a PR for this.

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

No branches or pull requests

2 participants