-
Notifications
You must be signed in to change notification settings - Fork 19
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
Cannot override customer or admin email templates #258
Comments
Ok, so a ton of debugging and I see this happening in the logs:
templates/_emails/customer.twig.twig |
Hi @wallacio do you try removing the .twig extension? Let me know if that works |
Yes, it works. But it's taken me 2 hours to track this down!!! Why autofill something that's invalid?? |
Thanks for confirming and reporting and sorry about the troubles, I just marked this as a bug and will be addressed on next release. |
We just release Stripe Payments 4.0.1 with a fix to this issue thanks for reporting |
Hello @andrelopez. I am experiencing this issue with plugin version 4.1.1 and craft 3.7.36. I have tried with and without the .twig extension. (possibly only started when i installed Enrupal Snapshot too.) |
Description
I cannot seem to override the email notification templates. I've copied and modified the twig templates from vendor and placed in templates/_emails directory. I have then selected the appropriate template in Settings -> Customer Notifications.
Showing auto-complete, to prove that it's there:
I've tried various things, such as setting an environment variable instead etc but nothing seems to work. Every time, the template from the vendor directory is used.
Debugging is getting me nowhere but curiously, I cannot see anything in the logs from src/services/Emails::sendEmail, where it's supposed to be reporting success/fail. (Dev mode is on). Is this Service even used for notification emails?
stripe/src/services/Emails.php
Line 125 in 60b02e4
Additional info
The text was updated successfully, but these errors were encountered: