Support

Home Forums Event Espresso Premium Short code [start_date] not working on custom emails on duplicated events

Short code [start_date] not working on custom emails on duplicated events

Posted: May 27, 2014 at 8:32 pm


navycoat

May 27, 2014 at 8:32 pm

I searched the forums and it looks like others have run into this issue but no solution was ever posted. Any help in this matter would be greatly appreciated! I’m building a site that has training classes so all the events have the same name (ex: Basic class) but the start date is what differentiates the class which is why [start_date] is so important in the confirmation emails.

I created an event and created a custom confirmation email. I did extensive testing and everything (all short codes) worked properly.

I then copied that event and adjusted the start / end dates. Then when I created a test registration and sent the custom confirmation email to myself to test, the [start_date] short code failed. The original event confirmation email still works fine and shows the [start_date] as it should.

This is what I’ve tested / tried. I would send a custom confirmation email after each change and nothing has worked so far.

* I’ve tried re-entering the start date in WordPress.
* My event doesn’t have specific start / end times but I tried adding and deleting the times.
* I’ve checked that the database wp_events_detail table and confirmed that the start_date is being saved in the YYYY-MM-DD format

Wordpress 3.9.1
Event Espresso 3.1.36.5.P
New installation
Site is online but password protected and in development


Lorenzo Orlando Caum

  • Support Staff

May 27, 2014 at 10:09 pm

Hello,

Are you using the custom email editor in the Event Editor?

I tested this with the current version of EE3 and it worked:

http://cl.ly/image/040d110s0e11 –> http://cl.ly/image/0x152J340h0m

We have a test drive site for EE3 if you would like to give it a try:

https://eventespresso.com/pricing/test-drive-event-espresso/


Lorenzo


navycoat

May 29, 2014 at 7:05 am

Hi Lorenzo,

Thank you for the fast reply. I am using the custom email editor.

Like I said, I’m able to get the [start_date] short code to work properly in the custom emails. It’s only when I duplicate the event, then the start date seems to disappear in the custom emails. I checked the SQL database table and the event editor through WordPress and the start date is properly formatted.

I was able to recreate the error several more times but decided to give up. In the end, I just deleted the event thinking it may have been corrupted in the duplication process. Now, instead of using “Duplicate Event,” I just manually create the event.

Also – are there any issues with events having the same title? For example, I’m creating a site for training classes so I’ll have several dozen classes all titled “Basic.” I do see that they all have unique short codes and identifiers. I just wanted to make sure that wasn’t causing the conflict.

Thank you!


navycoat

May 29, 2014 at 8:26 pm

This is a bit of a side question. Is there a short code for the email address that is required in the Personal Information section of the Question Group?

I know it seems odd but I’d like to include that in the customized confirmation email. Per a PHP edit, I was able to configure the confirmation email to go out to two different email addresses. I’d like to have both addresses showing in the email in case the one person mistyped their address.

Thank you!


Dean

May 30, 2014 at 12:03 am

Hi,

I ran a few tests using the default email and custom emails and duplicate events and saw no issues here (EE 3.1.36.5).

Is it possible to get your process (e.g. mine was: create event, add dates, select Yes to use custom email, choose email, publish. Then edit, duplicate. Then edit new event and change start and end dates) ?

In EE3 having the same event name should not be an issue as everything works via the id. For future reference this may be an issue in EE4 should you upgrade, depending on your permalink structure (if you use Post Name and have five posts of the same name it will get confused).

Regarding emails, I wasn’t 100% sure of your meaning, but if you are referring to the email the user types in as part of their registration, then yes.

[answer_Form question]

So if the question is “How do I do this?” you would use the following tag

[answer_How do I do this?]

A full list of email tags can be found here: https://eventespresso.com/wiki/custom-email-tags/


navycoat

May 31, 2014 at 12:39 pm

Regarding the start date short code not working, I believe my issue was because I didn’t have start / end times (not dates) and that messed up the event. After deleting the event and recreating it with start / end times, I haven’t seen the problem again.

******

I’m sorry I wasn’t clearer on my qustion about the email shortcode. On this list, there is a shortcode for every field EXCEPT the email field.

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

For example, in the Personal Information question group, three required fields are:

First Name, shortcode = [fname]
Last Name, shortcode = [lname]
Email address, shortcode = ????

Although it may seem odd to want to display the email address, I have my custom confirmation emails sent to two email addresses simultaneously (did a small PHP mod for this). Because of this, I want the email to print in the confirmation email just in case there is a typo, at least the person copied on the email might catch that.

Thank you again for all your help and quick responses!


Dean

June 2, 2014 at 1:35 am

Hi,

Glad you got the start date issue resolved.

Regarding the email tag, there isn’t a specific [email] one as I suppose we never assumed people would need it, but you could use [answer_Email] and it will print out the attendees email address.


navycoat

June 2, 2014 at 8:09 pm

Hi,

I couldn’t get [answer_Email] to work. I’m using a couple dozen email tags in my customized email so I feel comfortable using the tags.

I also tried [answer_email], [email], and [Email].

I know it seems weird that I need this functionality but my emails are being sent to the registrant and a second email (usually their manager) so it’s good to have both the email addresses printed in case there is a typo.


Josh

  • Support Staff

June 2, 2014 at 8:29 pm

Hi C,

Does the [custom_questions] shortcode work from your emails? You might also check to see if you’re saving the message with the editor in text mode (not visual mode).


navycoat

June 2, 2014 at 8:32 pm

Josh,

Yes, I’m using several custom questions [answer_My Question Is This] in my customized and they are working fine. I’m also using many of the built in tags and they work fine as well.

I’m just not able to find the one for the attendee’s email address.


Josh

  • Support Staff

June 2, 2014 at 8:42 pm

Right, but does the following shortcode work:

[custom_questions]

The reason I ask is the above shortcode will output all the questions and answers, including the email field.


navycoat

June 2, 2014 at 8:46 pm

Josh,

My apologies for misunderstanding your question. I just tested [custom_questions] and yes, it does show all the answers including the attendee’s email address in a long listed format (Question in bold over top answer).

However, I have a lot of information in my confirmation email so I’ve formatted it where the information is embedded within the email. I’d really prefer not to have the whole dump with the Title / Answer stacked up to create a long email.


Josh

  • Support Staff

June 2, 2014 at 10:54 pm

I’d prefer that too, testing the [custom_questions] shortcode was more of a way to troubleshoot what’s going on. So at least now we all know that the email answer data is making its way to at least one shortcode that’s being parsed when the email is prepared. That’s better than no shortcode, and could be said is a light at the end of a tunnel.

It may help if you can send some data or temporary login credentials via this form so we can investigate what’s going on with the email field.


Josh

  • Support Staff

June 3, 2014 at 8:25 pm

Hi C,

It turns out that your email shortcode will be:

[answer_Student’s Work Email]

This is because the email field label was changed to “Student’s Work Email”. Can you try this?


navycoat

June 4, 2014 at 8:43 am

YOU ARE GENIUS! It seemed so obvious as soon as I read your answer but I didn’t think to try that : /

I tested my confirmation email and it worked perfectly! Thank you again for looking into this and the fantastic tech support you and your group provide!


Josh

  • Support Staff

June 4, 2014 at 9:34 am

Hi C,

You’re welcome. I’m glad you have this up and running.

The support post ‘Short code [start_date] not working on custom emails on duplicated events’ 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