- Posts: 5
- Thank you received: 0
Recommend using EVENT_LOCATION in event reminder
- hejeva
- Topic Author
- Offline
- New Member
-
Less
More
13 years 2 months ago #14101
by hejeva
Recommend using EVENT_LOCATION in event reminder was created by hejeva
Thanks for the fix in the event reminder. It is working nicely. My recommendation is to add the tag
[EVENT_LOCATION] to the email.
Here is the code change required to make it happen:
com_eventbooking\site\models\reminder.php
Can add in state if desired.
Tested and working on my system
[EVENT_LOCATION] to the email.
Here is the code change required to make it happen:
com_eventbooking\site\models\reminder.php
Code:
line 44 change SQL query to bring in eb_locations
$sql = 'SELECT a.id, a.first_name, a.last_name, a.email, a.register_date, a.transaction_id, b.id as event_id, b.title AS event_title, b.event_date, b.location_id, c.name as location_name, c.address, c.city, c.zip '
.' FROM #__eb_registrants AS a INNER JOIN #__eb_events AS b '
.' ON a.event_id = b.id INNER JOIN #__eb_locations AS c ON b.location_id = c.id '
.' WHERE a.published=1 AND a.is_reminder_sent = 0 AND b.enable_auto_reminder=1 AND (DATEDIFF(b.event_date, NOW()) <= b.remind_before_x_days) AND (DATEDIFF(b.event_date, NOW()) >=0) ORDER BY b.event_date, a.register_date '
.' LIMIT '.$numberEmailSendEachTime
& add event_location line at ~67:
$replaces['event_location'] = $row->location_name.' ('.$row->address.', '.$row->city.', '.$row->zip.')';
Can add in state if desired.
Tested and working on my system
Please Log in or Create an account to join the conversation.
- Tuan Pham Ngoc
- Offline
- Administrator
-
13 years 2 months ago #14111
by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Re: Recommend using EVENT_LOCATION in event reminder
Thanks for your suggestion and sharing the code . Will implement it in the core download package in the next few days (this weekend)
Regards,
Tuan
Regards,
Tuan
Please Log in or Create an account to join the conversation.
- bibin
-
- Offline
- New Member
-
Less
More
- Posts: 8
- Thank you received: 0
13 years 2 months ago #14261
by bibin
Replied by bibin on topic Re: Recommend using EVENT_LOCATION in event reminder
Is this ready for download?
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.