Dear friends ,
SMS facility can be made easily possible by using email to sms feature provided by third party providers. I am a dentist and have been successful to some extent in doing so and need further assistance in finishing the remaining part. I will describe my modifications in detail and also required help further below it.
1) in india people generally don't use email much especially my patients so I made email disappear from front end and modified code to store email as "client phone no. @
mail.com"
$(document).ready(function() {
BackendCustomers.initialize(true);
$("#phone-number").on('keyup',function(){
var email = $(this).val() + "@
mail.com";
$("input#email").val(email);
});
});
2) so every client has a unique id as EA uses email as id for unique client and phone no. is mandatory for booking appointment.
3) email to sms providers for eg. textlocal require mail to be sent to "client phone no. @
textlocal.com" or any xyz company which is simple from above example in line (1)
4) now I am looking for specific areas in email it fetches all variables of client information and inputs a message. I want to edit this message to my personalize message for eg:- currently client receives message like "your appointment has been booked ........." which can be modified to "dear #client name# your appointment has been confirmed with #provider name# from #start and end time#........" text local converts this message from email to sms and sends to client.
5) notification can be adjusted to send emails at the time of booking on a day before appointment and on the day of appointment in the morning or as per required or this job can also be adjusted by running cron job both are fine.
THE HELP : needed here is where to find the 1) body of message of email , the specific $message part
2) modify timing of sending email reminder to provider and client
[P.S. :- I am a full time dentist just learning little bit of php and mods as a hobby any simple question please guide me and ignore my lack of efficiency with php language]
dear Alex and Craig appreciate your hard work and your help & guide in this matter will be highly appreciated.
any other question form the community I would be happy to answer in my full capacity.
regards,
Dr. Digant