Support

Home Forums Event Espresso Premium Custom email tag for registration date?

Custom email tag for registration date?

Posted: July 9, 2014 at 2:36 pm


navycoat

July 9, 2014 at 2:36 pm

I use custom emails for payment reminders. Students have up to four weeks from their registration date to submit payment (offline payments only). I’d like to include that online registration date in the email.

What is the registration date email tag so I can put it in their reminder email please? I looked in the table wp_events_attendee_meta and found “date_added” but that didn’t work in my emails.

Thank you!
Caroleen

https://eventespresso.com/wiki/custom-email-tags/

Wordpress 3.9.1
Event Espresso 3.1.36.5.P
New installation


Josh

  • Support Staff

July 9, 2014 at 3:19 pm

Hi Caroleen,

It turns out that there isn’t a custom email tag that displays the date of registration in Event Espresso 3. I’ve registered this idea as a feature request suggestion and we will keep it in mind for future features and updates!


navycoat

July 9, 2014 at 4:01 pm

Hi Josh,

Thanks for the fast reply! At least this saves me from continuing to look for this 🙂

Thanks!
Caroleen


Josh

  • Support Staff

July 10, 2014 at 8:30 am

Hi Caroleen,

You’re welcome. In the meantime, you could add a little shortcode if you’re comfortable with making a few edits to email.php file.

The file is in event-espresso/includes/functions/email.php. Right near the top of the file you’ll see all the shortcodes starting on line 9. You could add "[reg_on_date]", so it looks like this:

$SearchValues = array(
		"[reg_on_date]",
		"[event_id]",
		"[event_identifier]",
		"[registration_id]",

then further down you add the replace value which is event_date_display($data->attendee->date), In context the addition looks like this:

$ReplaceValues = array(
		event_date_display($data->attendee->date),
		$data->attendee->event_id,
		$data->event->event_identifier,
		$data->attendee->registration_id,

Please note that this change will get overwritten when you update Event Espresso 3, but you can back up your changes and reapply them after the update to continue using the custom email tag.


navycoat

July 10, 2014 at 10:31 am

Josh,

THANK YOU!!!! Your solution worked perfectly! I copied your notes from above so in case of upgrades, I’ll have the edits I need to make this short code work again.

I hope they add this as a standard short code in the future. I know for our situation, the registration date is critical for the payment due date so it’s nice to outline that date clearly in the body of the email.

Thanks again for taking the time to give me this custom solution! It really helps in my application!

Caroleen


Josh

  • Support Staff

July 10, 2014 at 10:42 am

You’re welcome Caroleen.

The support post ‘Custom email tag for registration date?’ 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