• Resolved amandapiasta

    (@amandapiasta)


    I am looking to put an appointment status link into the bookee’s email.

    So allow the person booking to click on the link in the email to go back to the website to see the appointment status (pending, approved or rejected).

    I am quite savvy with the code, but just need to be directed to the correct file.

    Cheers!

    https://wordpress.org/plugins/joebooking/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author hitcode

    (@hitcode)

    Hello,
    please edit this file:

    joebooking/core6/model/appointment/_notifier_customer.php

    and add this piece of code somewhere before the “/* replace tags */” comment, for example on line 152:

    $group_ref = $object->getProp( 'group_ref' );
    $customer_link = ntsLink::makeLink('customer/appointments/view', '', array('ref' => $group_ref));
    $customer_link = '<a href="' . $customer_link . '">' . M('View') . '</a>';
    $tags[0][] = '{APPOINTMENT.CUSTOMER_LINK_TO}';
    $tags[1][] = $customer_link;

    Then you can make use of the {APPOINTMENT.CUSTOMER_LINK_TO} tag in your customer notification templates.

    We’ll include this change in the next version update so this feature will not be overwritten by automatic updates.

    Thread Starter amandapiasta

    (@amandapiasta)

    Hi thanks, this works!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Appointment Status Link’ is closed to new replies.