Support

Home Forums Event Espresso Premium Complete shortcodes list – custom messages?

Complete shortcodes list – custom messages?

Posted: January 13, 2018 at 7:58 am

Viewing 5 reply threads


srjarvis

January 13, 2018 at 7:58 am

where can I find the complete list of all the shortcodes used in EE4? I found this page, but I am trying to edit the messages that are sent to registrants, and codes like [CO_EMAIL] and [CO_LOGO] seem like they would be intuitive, however, not really….for example, in the general settings, I have uploaded the company logo, however the email that is sent to the registrants has the company name in all CAPS instead of the logo. Company name would be acceptable, but all CAPS is not.

Furthermore, is there someplace where there is a step by step set of instructions for how to create custom messages to send to registrants? It seems like if I go to the template system, and click “create custom” then on the top line change the [EVENT_AUTHOR_EMAIL] to [PRIMARY_REGISTRANT_EMAIL] then edit the template below, will the changes I made to the template be sent to the registrant and the original template be used to send email to the event author?

Finally, the primary registrant and the registrant are one and the same, since only a single registration is permitted. Can I use the [PRIMARY_REGISTRANT_EMAIL] shortcode or is there a separate shortcode for the reigstrant?


Tony

  • Support Staff

January 15, 2018 at 5:30 am

Hi there,

Within each message template, there is a help section at the top right, all of the EE message shortcodes are listed in that section – http://take.ms/iyf5Y

Or, within each individual section you’ll see the which shows the available shortcodes within each individual section.

[CO_LOGO] seem like they would be intuitive, however, not really….for example, in the general settings, I have uploaded the company logo, however the email that is sent to the registrants has the company name in all CAPS instead of the logo. Company name would be acceptable, but all CAPS is not.

The CO_LOGO shortcode is unrelated to the company name, that’s from another shortcode – http://take.ms/KmcCP

You can remove that shortcode if preferred, the CO_LOGO shortcode does not include the copamny name, here is the code used for that shrtocde:

'<img src="' . EE_Registry::instance()->CFG->organization->get_pretty( 'logo_url' ) . '" id="headerImage" />';

If it’s not loading when viewing the email, have you enabled images in your client when viewing the email?

Furthermore, is there someplace where there is a step by step set of instructions for how to create custom messages to send to registrants?

There is some documentation on the messages system here:
https://eventespresso.com/section/messages-system/

It seems like if I go to the template system, and click “create custom” then on the top line change the [EVENT_AUTHOR_EMAIL] to [PRIMARY_REGISTRANT_EMAIL] then edit the template below, will the changes I made to the template be sent to the registrant and the original template be used to send email to the event author?

If the message To field had the [EVENT_AUTHOR_EMAIL] shortcode then its from the Event Admin context, switching that to use [PRIMARY_REGISTRANT_EMAIL] means your using the Event Admin context to send the message to the registrant which Id ont recommend (switching contexts is going to confusing).

You’ll already have a registrant or primary registrant context on the template you can use for the above but you’ll need to switch to it, take a look here for details:

https://eventespresso.com/wiki/messages-system-working-with-message-contexts/

Finally, the primary registrant and the registrant are one and the same, since only a single registration is permitted. Can I use the [PRIMARY_REGISTRANT_EMAIL] shortcode or is there a separate shortcode for the registrant?

There are shortcodes for the recipient of the message but [PRIMARY_REGISTRANT_EMAIL] will ALWAYS parse to the primary registrants details, if that’s all you need its find to use that shortcode. The message system allows for multiple different use cases, if you needed details for the specific recipient and the primary in a single message you can do that too, it all depends won what details you want to pull in.


srjarvis

January 16, 2018 at 5:56 am

ok thanks, so I am good with all the templates, shortcodes and how to tailor. but one problem remains. The registration email uses [CO_LOGO] but the image does not appear in the email. And yes, my client email has images turned on. I also notice that in the general settings page where the logo is uploaded appears blank, yet I’ve loaded it several times, no error messages.


Tony

  • Support Staff

January 16, 2018 at 9:11 am

Ok, so the CO_LOGO shortcodes doesn’t pull an actual image object, it just pulls the URL of the image set in the General Settings and your client pulls the image from that. So the problem with General Settings is why your not getting an image in the email.

When you say this:

I also notice that in the general settings page where the logo is uploaded appears blank, yet I’ve loaded it several times, no error messages.

Does it not show the image URL at all? Or does it show a URL but the image is blank?

This is what it should look like when you load General Settings with an image saved – http://take.ms/BGOS2

Obviously with your own image in place.


srjarvis

January 16, 2018 at 2:27 pm

Neither the url nor the logo shows on the general settings page….no matter how many times I upload the logo there.


Tony

  • Support Staff

January 16, 2018 at 2:57 pm

Ok, so that’s the reason CO_LOGO isn’t showing in the emails then, there is no value to display.

Ok, go back to where you upload the image in general settings, click to upload and image and look in the media library.

Find you image and click on it, then click ‘File URL’ and finally ‘Insert into post’, does it show the image on the general settings now? – http://take.ms/Zi2y7

Viewing 5 reply threads

The support post ‘Complete shortcodes list – custom messages?’ 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