Posted: October 26, 2012 at 5:07 pm
|
I am allowing a person to register multiple people for one event and want the confirmation email (to the person registering) to contain the amount of people he has registered for. I don’t see a short code. The amount IS in the ADMIN confirmation. I do see this in the actual email: NUMBER person(s. |
|
Hah — I was just searching for almost the exact thing: we’re using the MER plugin, and I want the email to show the ticket(s) they’ve purchased: both type and quantity. Perhaps a reply will solve both our issues at once… |
|
version 3.1.27 |
|
I found email.php in an earlier version, but not 3.1.27. |
|
This will be useful for us too… how can this information be shown on the ticket? |
|
Hello Amansker, This isnt doable with current shortcodes, but a simple code change should resolve it. Note that this is to a core file so updates will over write it. I’ll look at getting this added to future updates for you all. event-espresso/includes/functions/email.php In the email.php you will see a long list of shortcodes. The last one
needs to have a comma placed after it, and then on the next line add a new shortcode for example Do not add a comma after the new shortcode. Scrolling down you will see a list for ReplaceValues. Scroll to the bottom of that list and again add a comma and a new line. Add this code Now you can add the shortcode [attendee_count] to your emails, which will display the number of attendees purchased. @Wealth Mentors, that is a separate question, but it follows a similar result. in the functions.php of the ticketing add on follow a similar process as above, however just use |
|
Not successful with the Ticket. Can you give more detailed instructions eg what is the last line of the list? Need to put comma after adding “$data->attendee->quantity”? |
|
Hi After After |
|
No luck here. Carefully added and double-checked the values in email.php as described above. Set my email template to show |
|
I don’t see the fields you mentioned. Maybe developer has done something to it. Here is our ticket functions file http://wealthmentors.com/functions.zip |
|
@Wealth Mentos, check here, for the modified code http://pastebin.com/1TCRVi4D
|
|
Thanks Dean… it’s perfect now! |
|
We’re on 3.1.27.1P but we’re also using Multi Event Registration. We have multiple rates for each event (VIP, Adult, Senior, Child) and also multiple event days. Might that affect the listing of the total tickets? Anyway, here’s our code for email.php: http://pastebin.com/8b5A6yUL |
|
@bwold I am looking into this, but yeah it could well be due to the MER function. I will see if I can find a workaround, if not I will have to leave it with the developers. I will let you know. |
|
Hello, just checking back. Any resolution on this? |
|
Hi Bwold, Haven’t forgotten you, this is still on my desk. I haven’t successfully got it working with MER yet, it may be out of my coding league. I want to take another look at this today, but if not I will raise a ticket on it, but the developers work on a priority basis so I can’t say how quickly they will be able to look at it. |
|
We faced a similar issue (need the # of Tickets) as a tag so we can use in email. We chose not to change the code. Instead, set ALLOW GROUP REGISTRATIONS to NO. Then create a QUESTION asking for the NUMBER OF TICKETS needed. That special question has a tag you can use in emails, etc. |
|
@Lawrence Thats a pretty good workaround, though it will only work in certain situations, where the additional attendee details aren’t required. But still interesting workaround, thankyou for sharing!
|
The support post ‘Custom Email: Number of persons registered’ 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.