Posted: January 23, 2020 at 2:13 pm
Hi there, |
|
Hi there, Is this in the admin or registrant context? To answer your question, yes, it is possible and you can use |
|
Hi there, unfortunately I don’t know what you mean. |
|
Let’s try to clarify then. When you wrote:
May I ask, who is the “you” that gets the email? The person registering or is it the person organizing the event? Or are you asking about both emails? |
|
If a user buys several tickets on my site via Event Espresso, I as the organizer will receive an email with the user’s contact details. If this email says how many tickets he bought, that would be great. So far, it always looks like the user’s contact details at e.g. 3 tickets, also 3 times in the mail. |
|
Here’s how you can add the number to your email: 1) You go to your site’s Event Espresso > Messages > Default Message Templates page |
|
Hi there, |
|
Hi, Can you share a link to the event in question so we can see how it’s registration form is set up? The answer will depend on how that event’s form was set up. |
|
Please: https://feez-om-maat.de/index.php/feez-om-maat-kartenbestellung/ |
|
Hi there, Whilst it is possible to force EE to display only the ‘Primary Registrant’ details on that email, your event is set up to collect registration questions for each individual ticket. That means a user could select 3 tickets and input different details for each ticket but you, as the event admin, would only see the ‘first’ registrant’s details and then a qty. I can give you some details on how to set that up if it will work for you? |
|
Hi there. That would be great if you could explain that to me. |
|
Ok. You would need to edit the message template, assuming you are using the default templates go to: Event Espresso -> Messages -> Default Message Templates -> Registration Approved -> Edit Event Admin Go to the ATTENDEE_LIST section and copy all of the contents within that section. Now, in the EVENT_LIST, switch to ‘Text’ mode on the editor and find the Replace that shortcode with the contents of ‘ATTENDEE_LIST’ that you just copied. Like so – https://monosnap.com/file/QLQ8YSwRsuQP5VFGPnhLZM05OIXZP9 Now, you’ll need to switch out all of the shortcodes used in that new text for their ‘Primary Registrant’ equivalent. For example:
To show a few, but there are a couple more. (You’ll find a list of all available shortcodes for each section by clicking on the icon) We don’t actually have a primary registrant equivalent for
Which takes you to the front end of the site, as a user would. So your event list section will end up with something like this:
You’re template now basically skips the ‘ATTENDEE_LIST section and outputs the primary reg directly. THe _LIST sections loop over all of the objects passed to them so in this case because you have 3 ‘attendees’ you can’t use that section. |
|
Hi there. Unfortunately, that doesn’t work. I always get the following error when saving: The following shortcodes were found in the “[EVENT_LIST]” field that ARE not valid: [PRIMARY_REGISTRANT_FRONTEND_EDIT_REG_LINK)”> [PRIMARY_REGISTRANT_FNAME],[PRIMARY_REGISTRANT_FRONTEND_EDIT_REG_LINK)”> [PRIMARY_REGISTRANT_REGISTRATION_CODE] |
|
Somehow I can’t insert this as a quote, so here is the link to a screenshot: |
|
Recheck your shortcodes, you have a couple that aren’t valid: [PRIMARY_REGISTRANT_FRONTEND_EDIT_REG_LINK) Is not valid: [PRIMARY_REGISTRANT_FRONTEND_EDIT_REG_LINK] Is valid. The shortcode validation is looking for and opening
Is one long shortcode as the closing bracket on the first is not matched. |
|
Hi there. |
|
Which specific adjusted things are we referring to? Your custom message templates should not have been altered during an update. |
|
It’s exactly about the customized message templates. An update for Event Espresso was displayed in the WordPress dashboard under Plugins. I did that and then everything was gone. |
|
Which version of EE4 did you update from? I can’t think of any reason for message templates to vanish, especially on an update that requires no database migrations. When you say gone, were the templates completely empty, or back to default? |
|
I’m not sure. I think it has been updated from version 4.10.2.p to 4.10.3.p. After that, the standard message templates were in there again. |
|
Yeah that’s really strange, there were no migrations from .2 to .3 We update the from say 4.9 to 4.10 when we run migrations on the database, but single point released wont make those changes. I’ll run some tests to see if I can reproduce but I’m at a loss as to why that would happen. Note you can confirm the specific version you updated from in Event Espresso -> Maintenance -> System information -> ee_activation_history |
|
I should explain a little here, the message templates are generated on activation and then stored in the database. That’s how we are able to allow customizations to the templates in the admin. EE doesn’t replace those templates on updates and as they are stored in the database I would only expect some kind of possible issues to arise if we are messing with said database in some way (migration data) and not simply updating the plugin. |
|
The support post ‘Show number of tickets in 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.