Specialist Name On Email Body (SP Medical) - Question | JoomShaper
SP Page Builder 6 is Here! Learn More →

Specialist Name On Email Body (SP Medical)

R

Rijeesh

Extension 11 months ago

How to add specialist name on appointment email

what to add on below code

//message body $visitorip = isset($_SERVER['HTTP_X_FORWARDED_FOR']) ? $_SERVER['HTTP_X_FORWARDED_FOR'] : $_SERVER['REMOTE_ADDR'];

    // get site name 
    $site_name      = isset($_SERVER['SERVER_NAME']) ? $_SERVER['SERVER_NAME'] : '';
    $subject        = 'Cosmo View Client Appointment request ' . ' Phone: ' . $patient_phone;

    if ( $appointment_no = $appointments_model->insertAppointment($patient_name, $patient_phone, $patient_email, $appointment_date, $patient_note, $specialist_id, $department_id, $user_id, $visitorip, $choose_patient, $date_of_birth, $patient_gender, $patient_address_street, $patient_address_city, $patient_address_state, $patient_address_zip_code, $visiting_option) )
    {

        $msg  = 'Client requested appointment through Cosmoview Website<br>';
        $msg .= '<span>Appointment ID : ' . $appointment_no .'</span><br />';
        $msg .= '<span>Astrologer Name : ' . $specialist_id .'</span><br />';
        $msg .= '<span>Client Name : ' . $patient_name .'</span><br />';
        $msg .= '<span>Client Phone : ' . $patient_phone .'</span><br />';
        $msg .= '<span>Client City : ' . $patient_address_city .'</span><br />';
        $msg .= '<span>Client Gender : ' . $patient_gender .'</span><br />';
        $msg .= '<span>Client Email : ' . $patient_email .'</span><br />';
        if($date_of_birth) {
            $msg .= '<span>Date Of Birth : ' . $date_of_birth .'</span><br />';
        }
0
5 Answers
Ofi Khan
Ofi Khan
Accepted Answer
Support Agent 11 months ago #171545

Hello Rijeesh

We do not have email sending feature on appointments. If you want this, then you have to customize the component. Unfortunately, we do not provide customization support.

Best regards

0
Ofi Khan
Ofi Khan
Accepted Answer
Support Agent 11 months ago #172298

Apology for the misunderstanding. Yes, it does not include specialist name. I have fixed it. Please go to this location:

components/com_spmedical/controllers

and replace appointments.php file with the attached file. You need to unzip the file and then replace.

appointments.php.zip

0
R
Rijeesh
Accepted Answer
11 months ago #171636

Hi Khan, thanks i will repeat the questain

Email sending feature on appointments is already there and working as below, what am asking is how to add specialist name: on below list , without specialist name how could we assign the appointment

Appointment ID : 13 Patient Name : Patient Phone : Patient Email : Date Of Birth : Appointment Date : Sender IP :

0
R
Rijeesh
Accepted Answer
11 months ago #172672

Hi Khan,

Thanks, this file solved

Specialist Name is now available on Email content

0
Ofi Khan
Ofi Khan
Accepted Answer
Support Agent 11 months ago #172749

You are welcome 😊

I have a humble request. It would be very kind of you if you can manage some moment to give us feedback on

  1. Joomla Extension Directory
  2. TrustPilot

This will inspire us to improve.

0