Support

Home Forums Event Espresso Premium Shortcode EVENT_STAFF not working email

Shortcode EVENT_STAFF not working email

Posted: August 6, 2014 at 1:29 pm


Miguel Fonseca

August 6, 2014 at 1:29 pm

Hi,

Is the [EVENT_STAFF] shortcode supposed to work in the default registration confirmation email?

I have this as part of the event’s description:

<table>
<tbody>
<tr>
<th>Date</th>
<th>Start Time</th>
<th>End Time</th>
</tr>
<tr>
<td>Sep 06, 2014</td>
<td>09:50 AM EDT</td>
<td>10:30 AM EDT</td>
</tr>
<tr>
<td>Sep 13, 2014</td>
<td>09:50 AM EDT</td>
<td>10:30 AM EDT</td>
</tr>
<tr>
<td>Sep 20, 2014</td>
<td>09:50 AM EDT</td>
<td>10:30 AM EDT</td>
</tr>
<tr>
<td>Sep 27, 2014</td>
<td>09:50 AM EDT</td>
<td>10:30 AM EDT</td>
</tr>
<tr>
<td>Oct 04, 2014</td>
<td>09:50 AM EDT</td>
<td>10:30 AM EDT</td>
</tr>
<tr>
<td>Oct 11, 2014</td>
<td>09:50 AM EDT</td>
<td>10:30 AM EDT</td>
</tr>
<tr>
<td>Oct 18, 2014</td>
<td>09:50 AM EDT</td>
<td>10:30 AM EDT</td>
</tr>
<tr>
<td>Oct 25, 2014</td>
<td>09:50 AM EDT</td>
<td>10:30 AM EDT</td>
</tr>
</tbody>
</table>
[ESPRESSO_STAFF]

And this in the “Default Registration Confirmation Email” box under General Settings:

<p>***This is an automated response – Do Not Reply***</p>
<p>Thank you [answer_Adult First Name] [answer_Adult Last Name] for registering [fname] [lname] for our [event] season!</p>
<p>This event starts at on [start_date] and runs until [end_date] as per the timetable below:</p>
<p>[description]</p>
<p>Location:<br />
[location]</p>
<p>Phone: [location_phone]</p>
<p>Google Map: [google_map_link]</p>
<p>We hope that you will find this event both informative and enjoyable. Should you have any questions, please contact [contact].</p>
<p>If you have not done so already, please submit your payment in the amount of [cost].</p>
<p>Click here to review your payment information [payment_url].</p>
<p>For reference, here are your complete registration details:</p>
<p>[custom_questions]</p>
<p>[edit_attendee_link]</p>
<p>Thank You.</p>

I see the table in the email; however, the shortcode [description] in the email template does not seem to expand shortcodes used in the actual event’s description.

If this is expected or a bug, is there any way or workaround to show the staff assigned to the event in the email ?

Thanks,
Miguel


Sidney Harrell

August 7, 2014 at 12:12 am

Email shortcodes and shortcodes to put on pages and posts are very different under the hood. The actual list of supported email shortcodes can be seen at the start of the file includes/functions/email.php. The event staff shortcode is not on that list, sorry. It is possible to have a developer add that for you with some custom coding, but it’s a question of whether the amount to add that feature would be within the amount that you could allocate to have the feature added. If you are more of a DIYer, then we can point you in the right direction.


Miguel Fonseca

August 7, 2014 at 9:08 am

Hi Sidney,

I’m still acquainting myself with the EE code (and php, sql, html, wordpress framework, etc. – all that stuff) but, once I feel comfortable enough, I should be able to add the custom code myself to support a staff shortcode in emails if you guys don’t have plans to support this yet.

Could you please point me in the right direction as in which files would be involved in the change?


Dean

August 7, 2014 at 11:41 pm

Hi,

The full list of EE3 email tags are also found here: https://eventespresso.com/wiki/custom-email-tags/

The file that controls the email tags in EE3 is /wp-content/plugins/event-espresso/includes/functions/email.php

The $SearchValues array holds the tag itself, while the $ReplaceValues array has the data that will replace the tag.

Please note that customisations to core files will get over written on updates.

The support post ‘Shortcode EVENT_STAFF not working email’ is closed to new replies.

Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.

Event Espresso