Responsive Emails

  • hide10
  • Topic Author
  • Offline
  • Elite Member
  • Elite Member
More
1 month 2 weeks ago #171042 by hide10
Responsive Emails was created by hide10
Hello,

It seems that notification emails (for both admin and users) from Events Booking are not responsive.

Emails from Membership Pro are responsive.
So I'd like to make Events Booking emails responsive too.

Which file do I need to modify?

Thank you for your help,
rikao

Please Log in or Create an account to join the conversation.

More
1 month 2 weeks ago #171044 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Responsive Emails
In theory, it uses the same css, so honestly, I do not know why it is not working for Events Booking. It is handled in the same way. Maybe you can compare :

- For Events Booking, the file is components/com_eventbooking/themes/default/emailtemplates/email.php
- For Membership Pro, the file is components/com_osmembership/view/emailtemplates/tmpl/email.php

Regards,

Tuan

Please Log in or Create an account to join the conversation.

  • hide10
  • Topic Author
  • Offline
  • Elite Member
  • Elite Member
More
1 month 2 weeks ago #171047 by hide10
Replied by hide10 on topic Responsive Emails
Hello Tuan,

Thank you for your quick response.
I modified the width of .container from "800px" to "100%".
Then, emails became responsive now.

I hope you can include this fix into the next release.

P.S.
I referred to the following file to compare with the Membership Pro.
components/com_osmembership/view/emailtemplates/tmpl/container.php

Thank you,
rikao

Please Log in or Create an account to join the conversation.

More
1 month 2 weeks ago #171048 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Responsive Emails
Hello

For the time being, please move the modified file to template override so that it won't be lost when you update to future releases of the extension

In theory, the code in Membership Pro and Events Booking for email layout is the same, so I do not understand why one works and one does not

Tuan

Please Log in or Create an account to join the conversation.

  • hide10
  • Topic Author
  • Offline
  • Elite Member
  • Elite Member
More
1 month 2 weeks ago #171051 by hide10
Replied by hide10 on topic Responsive Emails
Hello Tuan,

Acutally, the code in Membership Pro and Events Booking was not the same.
The difference is width of ".container".
- Membership Pro: 100%
- Events Booking: 800px

Therefore I modified the email.php of Events Booking.

Thanks,
rikao

Please Log in or Create an account to join the conversation.

More
1 month 2 weeks ago #171052 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Responsive Emails
Ah, OK. I see it now. I will include this change in next release of the extension. So you don't have to worry that it will be lost on update

Tuan
The following user(s) said Thank You: hide10

Please Log in or Create an account to join the conversation.

Moderators: Tuan Pham Ngoc