- Posts: 3
- Thank you received: 0
Custom tags in emails
- Thor
- Topic Author
- Offline
- New Member
-
Less
More
7 years 4 months ago #110769
by Thor
Custom tags in emails was created by Thor
If I wished to create custom "shortcode" tags, which are used in the tinymce windows when writing notification email messages, where and how would I go about generating them?
Please Log in or Create an account to join the conversation.
- Tuan Pham Ngoc
- Offline
- Administrator
-
7 years 4 months ago #110772
by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Custom tags in emails
Hi
Next to each email messages, there should be list of tags which you can use in that email message
Exactly what message you want to modify? And what information you want? I will look at it and tell you the tag which you can use
Regards,
Tuan
Next to each email messages, there should be list of tags which you can use in that email message
Exactly what message you want to modify? And what information you want? I will look at it and tell you the tag which you can use
Regards,
Tuan
Please Log in or Create an account to join the conversation.
- Thor
- Topic Author
- Offline
- New Member
-
Less
More
- Posts: 3
- Thank you received: 0
7 years 4 months ago - 7 years 4 months ago #110773
by Thor
Replied by Thor on topic Custom tags in emails
Thank you for the quick response.
I have noticed the tags next to the messages, but they don't suffice for the information i need to use.
I have custom data from other db tables I wish to include, which relate to the events through their ID's. For the moment I'm only looking for modifications for the submit event messages.
I have noticed the tags next to the messages, but they don't suffice for the information i need to use.
I have custom data from other db tables I wish to include, which relate to the events through their ID's. For the moment I'm only looking for modifications for the submit event messages.
Last edit: 7 years 4 months ago by Thor.
Please Log in or Create an account to join the conversation.
- Tuan Pham Ngoc
- Offline
- Administrator
-
7 years 4 months ago #110774
by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Custom tags in emails
In this case, you will have to customize the code to support the new tags you want. The file is components/com_eventbooking/helper/mail.php and the method is sendNewEventNotificationEmail
Regards,
Tuan
Regards,
Tuan
Please Log in or Create an account to join the conversation.
- Thor
- Topic Author
- Offline
- New Member
-
Less
More
- Posts: 3
- Thank you received: 0
7 years 4 months ago - 7 years 4 months ago #110780
by Thor
Replied by Thor on topic Custom tags in emails
Appreciate it 
Is there any other place I would need to add references to these new tag (other than in the email messages themselves ofc)? They show up as empty in the emails sent.
Edit: nevermind, I figured it out.

Is there any other place I would need to add references to these new tag (other than in the email messages themselves ofc)? They show up as empty in the emails sent.
Edit: nevermind, I figured it out.
Last edit: 7 years 4 months ago by Thor. Reason: figuring things out
Please Log in or Create an account to join the conversation.
- Laszlo Blaho
- Offline
- New Member
-
Less
More
- Posts: 11
- Thank you received: 0
6 years 10 months ago #117317
by Laszlo Blaho
Replied by Laszlo Blaho on topic Custom tags in emails
Hi,
My plan is to make a custom tag with this function:
$event->event_capacity - $event->total_registrants
(capacity left for an event)
I want to send this information to the Admin in email when arrive a new registrants. So which file need to modify to this thing?
com_eventbooking/helper/mail.php?
Thank you so much!
My plan is to make a custom tag with this function:
$event->event_capacity - $event->total_registrants
(capacity left for an event)
I want to send this information to the Admin in email when arrive a new registrants. So which file need to modify to this thing?
com_eventbooking/helper/mail.php?
Thank you so much!
Please Log in or Create an account to join the conversation.
- Tuan Pham Ngoc
- Offline
- Administrator
-
6 years 10 months ago #117329
by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Custom tags in emails
Hi
Yes. Or better, modify the code in the file components/com_eventbooking/helper/registration.php, method buildTags so that the added tag can be used by other email messages in the future if needed
Also, try to implement the modification using override so that it won't be lost when you update to future releases of the extension
See our documentation at eventbookingdoc.joomservices.com/develop...thods-helper-methods
Tuan
Yes. Or better, modify the code in the file components/com_eventbooking/helper/registration.php, method buildTags so that the added tag can be used by other email messages in the future if needed
Also, try to implement the modification using override so that it won't be lost when you update to future releases of the extension
See our documentation at eventbookingdoc.joomservices.com/develop...thods-helper-methods
Tuan
The following user(s) said Thank You: Laszlo Blaho
Please Log in or Create an account to join the conversation.
Moderators: Tuan Pham Ngoc
Support
Documentation
Information
Copyright © 2025 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.