Support

Home Forums Event Espresso Premium Registration Approved Admin Email

Registration Approved Admin Email

Posted: March 8, 2023 at 9:05 pm


dhankel

March 8, 2023 at 9:05 pm

Is it possible to display the promotion code used on the Registration Approved Admin notification email?

Ideally, if we could add to the [ATTENDEE_LIST] section just after the [REGISTRATION_CODE] link:

<h4><a href="[EDIT_ATTENDEE_LINK]">[FNAME] [LNAME]<br />[ATTENDEE_EMAIL]</a></h4>
        <ul>
<li><strong>Registration Code:</strong> <a href="[EDIT_ATTENDEE_LINK]">[REGISTRATION_CODE]</a>***HERE***</li>
<li><strong>Tickets:</strong></li>
</ul>


dhankel

March 8, 2023 at 9:07 pm

Here is a screenshot since my code didn’t display above https://share.getcloudapp.com/JrupwLGn


Tony

  • Support Staff

March 9, 2023 at 5:29 am

Hi there,

Officially we don’t currently have a way to pull in the promotion code(s) used on a transaction into messages, however I do have a snippet which can do it here:

https://gist.github.com/Pebblo/dc011b43b461064a831d

That snippet adds a [PROMO_CODES_USED] shortcode to messages.

You can add that to a custom functions plugin on your site, we have some documentation on creating one here:

https://eventespresso.com/wiki/create-site-specific-plugin-wordpress-site/

It’s not exactly what you are asking for as the promotion codes are pulled in from the transaction, so it’s not available to be used within ATTENDEE_LIST but it will work in EVENT_LIST.


dhankel

March 9, 2023 at 1:34 pm

Thanks Tony. I’ve created and activated the custom functions plugin, but get an error message when trying to add it to the EVENT_LIST section of the email message:
https://share.getcloudapp.com/7KuzxlQn
This is how I’m trying to add it:
https://share.getcloudapp.com/WnumA9Zd

Any ideas on why it would provide the error?


Tony

  • Support Staff

March 9, 2023 at 1:50 pm

My apologies! Thats because I had EVENT_LIST on the brain and you can’t use it there.

The shortcode is available in Main Content.

If you click on the shortcode button next to each section it will display all of the available shortcodes for that specific section.


dhankel

March 9, 2023 at 2:08 pm

Thank you Tony. This works perfectly.


Tony

  • Support Staff

March 9, 2023 at 2:10 pm

You’re most welcome 🙂

The support post ‘Registration Approved Admin 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