Posted: 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:
|
|
Here is a screenshot since my code didn’t display above https://share.getcloudapp.com/JrupwLGn |
|
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 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. |
|
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: Any ideas on why it would provide the error? |
|
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. |
|
Thank you Tony. This works perfectly. |
|
You’re most welcome 🙂 |
|
You must be logged in to reply to this support post. Sign In or Register for an Account