- Posts: 53
- Thank you received: 1
Email template override not working as expected
- Karen Griffin
- Topic Author
- Offline
- Senior Member
Less
More
3 years 11 months ago - 3 years 11 months ago #140331
by Karen Griffin
Email template override not working as expected was created by Karen Griffin
Hi-
I created an override for the email template where I have conditional statements based on plan id. It works fine for admin emails, but the changes are not being picked up for user emails. Not sure why? Is there another template that needs to be overridden for user emails?
Thanks.
I created an override for the email template where I have conditional statements based on plan id. It works fine for admin emails, but the changes are not being picked up for user emails. Not sure why? Is there another template that needs to be overridden for user emails?
Thanks.
Last edit: 3 years 11 months ago by Karen Griffin.
Please Log in or Create an account to join the conversation.
- Tuan Pham Ngoc
- Offline
- Administrator
3 years 11 months ago #140339
by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Email template override not working as expected
Hello
Both admin email and subscriber email used the same email template. Exactly what is the file you changed? And when the email is sent?
Tuan
Both admin email and subscriber email used the same email template. Exactly what is the file you changed? And when the email is sent?
Tuan
Please Log in or Create an account to join the conversation.
- Karen Griffin
- Topic Author
- Offline
- Senior Member
Less
More
- Posts: 53
- Thank you received: 1
3 years 11 months ago - 3 years 11 months ago #140388
by Karen Griffin
Replied by Karen Griffin on topic Email template override not working as expected
Hi Tuan-
That is what I thought, which is why I am perplexed.
I changed email.php in emailtemplates. It is placed inside the html directory within my theme.
The emails with subscription details are sent to the admin when the user first signs up for a membership or donates (I have one subscription that has a zero duration for donations), whether they have paid online or selected to pay offline. The user receives full subscription details once their membership/donation has been paid, which means as soon as their online payment is processed or upon approval for offline payments.
For testing purposes, I am using offline payments. For the life of me, I cannot figure out why admin emails show the changes and not the user emails. I have attached the file with my changes as a zip file.
That is what I thought, which is why I am perplexed.
I changed email.php in emailtemplates. It is placed inside the html directory within my theme.
The emails with subscription details are sent to the admin when the user first signs up for a membership or donates (I have one subscription that has a zero duration for donations), whether they have paid online or selected to pay offline. The user receives full subscription details once their membership/donation has been paid, which means as soon as their online payment is processed or upon approval for offline payments.
For testing purposes, I am using offline payments. For the life of me, I cannot figure out why admin emails show the changes and not the user emails. I have attached the file with my changes as a zip file.
Last edit: 3 years 11 months ago by Karen Griffin.
Please Log in or Create an account to join the conversation.
- Tuan Pham Ngoc
- Offline
- Administrator
3 years 11 months ago #140394
by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Email template override not working as expected
Hello
For the subscription approved email, it is sent when you publish the record from backend, mean the override will also have to be added to backend template
So put that file to administrator/templates/isis/html/emailtemplates folder and it should be fine
Tuan
For the subscription approved email, it is sent when you publish the record from backend, mean the override will also have to be added to backend template
So put that file to administrator/templates/isis/html/emailtemplates folder and it should be fine
Tuan
Please Log in or Create an account to join the conversation.
- Karen Griffin
- Topic Author
- Offline
- Senior Member
Less
More
- Posts: 53
- Thank you received: 1
3 years 11 months ago #140524
by Karen Griffin
Replied by Karen Griffin on topic Email template override not working as expected
Beautiful. That worked. However, I did have to change the directory path to:
administrator/templates/isis/html/com_osmembership/emailtemplates
administrator/templates/isis/html/com_osmembership/emailtemplates
Please Log in or Create an account to join the conversation.
- Tuan Pham Ngoc
- Offline
- Administrator
3 years 11 months ago #140538
by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Email template override not working as expected
Ah, Yes. That's correct place.
Tuan
Tuan
Please Log in or Create an account to join the conversation.
Support
Documentation
Information
Copyright © 2024 Joomla Extensions by Joomdonation. All Rights Reserved.
joomdonation.com is not affiliated with or endorsed by the Joomla! Project or Open Source Matters.
The Joomla! name and logo is used under a limited license granted by Open Source Matters the trademark holder in the United States and other countries.
The Joomla! name and logo is used under a limited license granted by Open Source Matters the trademark holder in the United States and other countries.