List of available email shortcodes

Hi,
Would you be able to list all available shortcodes for email confirmation in appointment+

I am looking for the location specifically but I am sure it would help others if the full list was available somewhere. You could add this list in the faq.

Cheers
Nic

  • Vinod Dalvi

    Hi Nic,

    I hope you are well today and thank you for your question.

    Are you talking about available shortcodes or placeholders/macros?

    I think you are talking about placeholders/macros and if this is the case then you will find all the placeholders/macros in the bottom of Appointments Notification Settings on the following path as displayed in the attached screenshot.

    Admin Area -> Appointments -> Settings -> General -> Notification Settings

    For your convenience i have copy pasted the test as below.

    For the above email subject and message contents, you can use the following placeholders which will be replaced by their real values: SITE_NAME, CLIENT, SERVICE, SERVICE_PROVIDER, DATE_TIME, PRICE, DEPOSIT, BALANCE, PHONE, NOTE, ADDRESS, CITY, EMAIL (Client's email), CANCEL (Adds a cancellation link to the email body)

    Apart from the above default placeholders/macros some placeholders/macros are available depending on whether the particular Appointments + add-on is active or not.

    For example if you have activated the Locations add-on then you can also use the following placeholders/macros in the mail.

    LOCATION
    LOCATION_ADDRESS

    I have also notified our usage writer to add these placeholders/macros on the following usage page of Appointments.

    https://premium.wpmudev.org/project/appointments-plus/#usage

    Please advise if you have more questions.

    Best Regards,
    Vinod Dalvi

  • Nicolas

    Thanks for your quick reply.

    I have set up the confirmation as follows:

    Dear CLIENT,<br>
    <br>
    We are pleased to confirm your appointment.<br>
    <br>
    Here are the appointment details:<br>
    Requested service: <b>SERVICE</b><br>
    Date and time: <b>DATE_TIME</b><br>
    Location: - LOCATION - LOCATION_ADDRESS
    <br><br>
    
    Kind regards,<br>

    Ahd this is what I get

    Dear Nic,
    
    We are pleased to confirm your appointment.
    
    Here are the appointment details:
    Requested service: Skin Check - WOC
    Date and time: 27 November 2014 7.00 am
    Location: - LOCATION - LOCATION_ 
    
    Kind regards,

    I have the location and the service location plugin activated and set up.

    Cheers
    Nic

  • Vinod Dalvi

    Hi Nic,

    Thank you for your reply.

    I could confirm the issue on my test site therefore i have notified the plugin developer about it so that it can be fixed.

    It will be fixed shortly.

    In the meanwhile to achieve it try using the following code by creating a file functions.php in the wp-content/mu-plugins folder of your WordPress install and add the following code in it.

    <?php
    add_filter( 'app_confirmation_message', 'append_location_to_app_email', 10, 2 );
    add_filter( 'app_reminder_message', 'append_location_to_app_email', 10, 2 );
    function append_location_to_app_email( $msg, $obj ) {
    	if ( property_exists( $obj, 'location' ) ) {
    		$locations = get_option( 'app_locations_data' );
    		foreach ( $locations as $value ) {
    			if ( $obj->location === $value['id'] ) {
    				$msg = str_replace( 'LOCATION', 'Location: ' . $value['address'], $msg );
    			}
    		}
    	}
    	return $msg;
    }

    Best Regards,
    Vinod Dalvi

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.