Support

Home Forums Event Espresso Premium Invalid shortcodes saving a Custom Message Template

Invalid shortcodes saving a Custom Message Template

Posted: March 8, 2019 at 8:33 am


KLLASC

March 8, 2019 at 8:33 am

Hi,
I copied the text from a custom message template from an old site using EE Version 4.9.57.p.

EE preesents the following error when I tried to saved the template in a new site using EE Version 4.9.78.p.

Are shortcodes like [EVENT_IMAGE],[RECIPIENT_FNAME],[QRCODE_*],[EVENT_NAME] deprecated in this later version?

Where is [RECIPIENT_ANSWER_*Department] getting its value from? From WP user profile?

An error has occurred:

The following shortcodes were found in the “Main Content” field that ARE not valid: [EVENT_IMAGE],[RECIPIENT_FNAME],[RECIPIENT_ANSWER_*Department],[QRCODE_*],[EVENT_NAME]

Valid shortcodes for this field are: [EVENT_LIST], [ATTENDEE_LIST], [TICKET_LIST], [COMPANY], [CO_ADD1], [CO_ADD2], [CO_CITY], [CO_STATE], [CO_ZIP], [CO_LOGO], [CO_EMAIL], [CO_PHONE], [CO_LOGO_URL], [CO_FACEBOOK_URL], [CO_TWITTER_URL], [CO_PINTEREST_URL], [CO_GOOGLE_URL], [CO_LINKEDIN_URL], [CO_INSTAGRAM_URL], [CO_TAX_NUMBER_*], [PRIMARY_REGISTRANT_FNAME], [PRIMARY_REGISTRANT_LNAME], [PRIMARY_REGISTRANT_EMAIL], [PRIMARY_REGISTRANT_REGISTRATION_ID], [PRIMARY_REGISTRANT_REGISTRATION_CODE], [PRIMARY_REGISTRANT_PHONE_NUMBER], [PRIMARY_REGISTRANT_ADDRESS], [PRIMARY_REGISTRANT_ADDRESS2], [PRIMARY_REGISTRANT_CITY], [PRIMARY_REGISTRANT_ZIP_PC], [PRIMARY_REGISTRANT_ADDRESS_STATE], [PRIMARY_REGISTRANT_COUNTRY], [PRIMARY_REGISTRANT_REGISTRATION_DATE], [PRIMARY_REGISTRANT_FRONTEND_EDIT_REG_LINK], [PRIMARY_REGISTRANT_ANSWER_*], [PRIMARY_REGISTRANT_TICKET_LIST], [PRIMARY_REGISTRANT_DATETIME_LIST], [PRIMARY_REGISTRANT_QUESTION_LIST], [EVENT_AUTHOR_FNAME], [EVENT_AUTHOR_LNAME], [EVENT_AUTHOR_FORMATTED_EMAIL], [EVENT_AUTHOR_EMAIL], [TXN_ID], [PAYMENT_URL], [PAYMENT_LINK_IF_NEEDED_*], [PAYMENT_DUE_DATE_*], [INVOICE_LINK], [INVOICE_URL], [INVOICE_LOGO_URL], [INVOICE_LOGO], [INVOICE_PAYEE_NAME], [INVOICE_PAYEE_ADDRESS], [INVOICE_PAYMENT_INSTRUCTIONS], [INVOICE_PAYEE_EMAIL], [INVOICE_PAYEE_TAX_NUMBER_*], [TOTAL_COST], [TXN_STATUS], [TXN_STATUS_ID], [PAYMENT_STATUS], [PAYMENT_GATEWAY], [AMOUNT_PAID], [LAST_AMOUNT_PAID], [TOTAL_AMOUNT_PAID], [TOTAL_OWING], [TXN_SUBTOTAL], [TXN_TAX_SUBTOTAL], [OWING_STATUS_MESSAGE_*], [TXN_TOTAL_TICKETS], [TKT_QTY_PURCHASED], [TRANSACTION_ADMIN_URL], [RECEIPT_URL], [INVOICE_RECEIPT_SWITCHER_URL], [INVOICE_RECEIPT_SWITCHER_BUTTON], [LAST_PAYMENT_TRANSACTION_ID], [TXN_TICKETS_URL], [TXN_TICKETS_APPROVED_URL], [DISPLAY_HTML_URL]


Tony

  • Support Staff

March 8, 2019 at 9:49 am

I copied the text from a custom message template from an old site using EE Version 4.9.57.p.

Which message template is this? Registration Approved? Which ‘context’ are you copying them from and to?

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

Are shortcodes like [EVENT_IMAGE],[RECIPIENT_FNAME],[QRCODE_*],[EVENT_NAME] deprecated in this later version?

No, they are still valid, but it depends where you use them.

Where is [RECIPIENT_ANSWER_*Department] getting its value from? From WP user profile?

Not, not the WP user profile, thats pulling the answer to a ‘Department’ question set on the registration form.


KLLASC

March 11, 2019 at 5:22 am

Hi,
I managed to save it as a custom template for “Ticket”.

Upon successful registration, I get a “Registration Notification” email. How do I include the [QRCODE_*] into this message?

Thanks.


Tony

  • Support Staff

March 11, 2019 at 6:56 am

I managed to save it as a custom template for “Ticket”.

Ok, that makes sense, the main content section for that message type would have access to those shortcodes.

The template you are copying it from, and to, makes a different as each message type has access to different data.

How do I include the [QRCODE_*] into this message?

You can’t, [QRCODE_*] is generated on your site and uses a Javascript library to build the QR, meaning its only available within the ticket itself as the ticket loads your site.


KLLASC

March 11, 2019 at 9:05 am

Thanks!

Instead of embedding the QR code into the Registration Notification email, how about embedding a hyperlink so recipient can click to load the QR from my site?

How do I construct the URL given that the ticket is unique to each registrant?

BTW, is there a reference that list the types of shortcodes applicable to each type of message template, such as “Registration Approved”, “Registration Declined”, “Ticket” etc

Thanks!


Tony

  • Support Staff

March 11, 2019 at 4:40 pm

Instead of embedding the QR code into the Registration Notification email, how about embedding a hyperlink so recipient can click to load the QR from my site?

Sure, you can do that using the [TXN_TICKETS_URL] shortcode, or the [TXN_TICKETS_APPROVED_URL] shortcode.

The latter is a link to only show the tickets for ‘Approved’ registrations in the group.

BTW, is there a reference that list the types of shortcodes applicable to each type of message template, such as “Registration Approved”, “Registration Declined”, “Ticket” etc

Theres a help setion in each individual message type that shows all of the shortcodes available and all of the options on each shortcode.

Then each section has a menu that shows the available shortcodes for that specific section, clicking on the shortcode adds it the section wherever your cursor is.

See: https://monosnap.com/file/X9KKsWPyMUQxsytJcrS3Kl6lE5k5pL

You must be logged in to reply to this support post. Sign In or Register for an Account

Support forum for Event Espresso 3 and Event Espresso 4.
Documentation for EE3 and EE4
Documentation for Event Espresso 3

Documentation for Event Espresso 4

Status: publish

Updated by  Tony 2 weeks ago ago

Topic Tags

Notifications

This topic is: not resolved
Do NOT follow this link or you will be banned from the site!