Hi Jackson,
Okay so to be honest, what I've done is quite simplistic, as I didn't want to break any of the existing functionality. In the long run though, there is an additional overhead because one needs to check to see if core code has been updated for each release.
If you check the documentation for Event Booking, there is helpful way provided by the team to override particular classes and methods. Methods of particular interest to me at least where reminders. I understand others are also interested in events such as registration.
I will provide an overview as to what I did for my override of the method sendReminder in the class EventbookingHelperMail. Follow the instructions in the developer section of the documentation, by placing the specific file containing just the class and method to override, placing the files in a folder called override under components/com_eventbooking/helper.
details are here ->
eventbookingdoc.joomservices.com/develop...stomization-override
So all I did was add a specific line to the email reminder method, which is in the mail.php file. I only wanted to add SMS notification, and keep the existing emailing part. So I added a couple of lines of code to call my new interface within the existing logic, about around line 243. I don't use the featured event part in the extension, so I decided to use this as a flag so I had control per event whether or not I send SMS messages. See the snippet below:
Code:
// Send SMS if featured flag is set
if($row->featured=="1") {
$smscontent="Dear ".$row->first_name.". This is a reminder that you are signed up for ".$eventTitle." on ".date("d/m/Y @ g:ia",strtotime($row->event_date)).". See you there!";
EventbookingHelperSendSMS::sendSMS($row->mobile, $smscontent);
}
So basically I have created a class and a new method called sendSMS. I have abstracted this so that if I change provider at anytime, I can change the API easily without having to change the core updated logic. I am currently using TextLocal, which has a very simple API and you can use curl to execute the requests. Also within the class, I create and write a log for all transactions.
Hope this helps,
Rgds,
scm7mae