Adding data from fields into emails

  • brunov99
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
12 years 2 weeks ago #42865 by brunov99
Adding data from fields into emails was created by brunov99
Hello,

Do you have a complete list of the fields i can use in EB emails and not only those given beside the mails templates?
For instance, i want to add the registration date, deposit amount, event dates or some custom fields... what should i do ?
Is it possible ?

Thank you

Brunov99 B)

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

More
12 years 2 weeks ago #42902 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Adding data from fields into emails
Hi

The registration date can be showed using the [DATE] tag, [EVENT_DATE] will show the date of the event. Unfortunately, custom fields and other tags such as deposit amount are not supported at the moment. Will consider adding support for it soon.

PS : I remember you reported translation issue on a different post. The issue is now fixed, so download latest version, upgrade it to your site and it will work well !

Regards,

Tuan

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

  • brunov99
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
12 years 1 week ago #42975 by brunov99
Replied by brunov99 on topic Adding data from fields into emails
Thank you

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

More
11 years 5 months ago #50777 by Cory S
Replied by Cory S on topic Adding data from fields into emails
Tuan, could you give a hint on where I could manually edit the code to add in specific fields?

Thanks,
Cory

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

More
11 years 5 months ago #50778 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Adding data from fields into emails
Hi Cory

If you know programming, you can look at sendEmails function in the file components/com_eventbooking/helper/helper.php and add support for any other tags you want.

All supported tags are stored in $replaces array if you look at the code

Tuan
The following user(s) said Thank You: Cory S

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

More
11 years 5 months ago #50780 by Cory S
Replied by Cory S on topic Adding data from fields into emails
Thanks Tuan for the quick response!

Last question, somewhat related: what is allowed for HTML in the emails sent via the helper.php file? I had to manually add "<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head>" at the beginning of the 'user email body' body content to get it to render correctly.

Also, none of the images show up. Can I also make a tweak in the helper.php file to use absolute references for assets?

Thanks,
Cory

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

More
11 years 5 months ago #50833 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Adding data from fields into emails
Hi Cory

I am not sure about the HTML tags. You can try to use it to see whether the system accept the tags

For the images, not sure what version of the extension you are using but in the latest version, we do support showing images in the email. Maybe you are using old version ?

Tuan

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

Moderators: Tuan Pham Ngoc