Support

Home Forums Event Espresso Premium Shortcodes not working in Custom Message Templates

Shortcodes not working in Custom Message Templates

Posted: January 12, 2022 at 1:26 pm

Viewing 20 reply threads


Jean Watson

January 12, 2022 at 1:26 pm

Hello – I have trying to include [QUESTONS_LIST] in my Event Admin and Primary Participant custom messages. I want to include them in my Pending Payment and Payment Received custom messages.

The questions are appearing in my Pending Payment custom messages, but not in my Payment Received custom messages for both Event Admin and Primary Participant.

I am using the same short codes in both messages. Any idea why they aren’t showing up?

I have set up the Event Admin template using the same shortcodes for my Pending Payment and Payment Recieved messages, but the Questions do not show up on


Jean Watson

January 13, 2022 at 6:34 am

UPDATE: Found the missing shortcode, all is working well. Thank you!


Tony

  • Support Staff

January 13, 2022 at 7:26 am

Hi Jean,

I’m glad you found the problem, may I was what was missing?


Jean Watson

January 13, 2022 at 7:30 am

Sure! Under the [Event_List] section, the only shortcode listed was [TICKET_LIST] and I had all of the information listed in the [ATTENDEE_LIST] section, so I changed the shortcode reference and everything appeared as it should.
Thank you!


Tony

  • Support Staff

January 13, 2022 at 7:34 am

Ahh, yeah, that make sense.

The payment related emails are typically designed to be focused around the payment itself and the ticket(s) it applies to, so it doesn’t call the ATTENDEE_LIST section by default.

Glad you found it anyway, any further questions just let us know 🙂


Jean Watson

January 13, 2022 at 7:43 am

I do have another issue regarding State Drop down fields not accessible on mobile. Shall I open a separate ticket?


Tony

  • Support Staff

January 13, 2022 at 9:19 am

We don’t have a hard rule on keeping each individual issue in separate threads, as long as the thread isn’t ending up multiple pages long working through multiple issues I’m more than happy to work through them.

Is the issue with iOS?

Can you link me to an event I can view the problem on?


Jean Watson

January 13, 2022 at 9:25 am

Thank you!
I have only tested in on my iPhone, so I am not sure about other mobile operating systems. Here is a link to the registration form: https://www.watsoncaringscience.org/events/caritas-community-conference-2022/
Appreciate your help, thank you!


Jean Watson

January 13, 2022 at 2:03 pm

Addition to note above… the States are note appearing in alphabetical order.
https://snipboard.io/SQWCrx.jpg


Tony

  • Support Staff

January 14, 2022 at 3:44 am

Hmm, ok.

Did you migrate from EE3? You seem to have a lot of custom states, is that just from people submitting them from the form?

The states are ordered within the query based on the state name already and in alphabetical order, however, when ordering by name the capitalization matters, so:

A, Z, B, a, z

Is returned from the database when ordered as:

A, B, Z, a, z

Which explains what is happening with ITALIA and ITALY on your form although as far as I know, those aren’t actually ‘states’, right?

In short, it looks like you are getting issues from users submitting their own states incorrectly and it may be better to disable that feature here.


Jean Watson

January 14, 2022 at 3:48 am

Hi Tony
We may have migrated from EE3 but not recently.
I’m more concerned about the State field not working in mobile.
Do you have any updates for that?


Tony

  • Support Staff

January 14, 2022 at 4:11 am

When you say it’s not working, what is happening?

I’m getting the expected behaviour for the state field on mobile.

Your testing on iOS so the state field will always show all fields rather than only for the selected country, that’s expected due to how iOS works (it takes over the dropdown fields and displays them using an overlay, which prevents us from filtering them).


Jean Watson

January 14, 2022 at 4:14 am

I am not able to select a state.
I am unable to type or select an option from the dropdown.
Nothing happens.
I’m more concerned about the field not getting populated and people not able to complete the registration.


Jean Watson

January 14, 2022 at 4:22 am

I just tried this again on mobile and was getting the same results.

When I changed the Country dropdown from United States of America to United States, I was able to add the State.

I will try changing the settings for Country to United States in Organizations & Country tabs to see if that solves the problem.


Tony

  • Support Staff

January 14, 2022 at 4:24 am

You can’t type in any of the dropdowns but you’ll only be above to select a state for the selected country.

For example, select United Kindom on the country section and then select a UK county in the state field.


Jean Watson

January 14, 2022 at 5:03 am

I have updated the country as mentioned above and it appears to have adjusted the default country on my desktop. I am clearing cache as the United States of America is still appearing on my phone.

I would like to remove this option: “click here to add a new state/province”

I am also receiving the following message when I try to clean up the states listed in the Country tab:

An error has occurred:
An invalid or missing State Abbreviation was received.

I have reviewed them several times and still get the same error. Any advice?

I appreciate your help. I am trying to publish this event today and would like to get these issues addressed.


Tony

  • Support Staff

January 14, 2022 at 5:11 am

I am clearing cache as the United States of America is still appearing on my phone.

I’m not sure I follow, why would the United States not appear?

I would like to remove this option: “click here to add a new state/province”

You can add this snippet to the site to do that:

https://gist.github.com/joshfeck/7bf112ee2dc9e49f7e3f14b8c2b59611

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/

I am also receiving the following message when I try to clean up the states listed in the Country tab:

An error has occurred:
An invalid or missing State Abbreviation was received.

I have reviewed them several times and still get the same error. Any advice?

Can you add a screenshot of the page right from right before you are submitting the changes?

https://eventespresso.com/wiki/troubleshooting-checklist/#screenshots


Jean Watson

January 14, 2022 at 5:23 am

This reply has been marked as private.


Tony

  • Support Staff

January 14, 2022 at 5:33 am

I would like the United States to appear as the default Country in the form, is that possible? There are many different entries for the United States in the drop down and I’d like it to default to the one with the full list of states.

You can use another snippet to set the default country:

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

With regards to the state options.

The first state is empty (both name and abv) have you tried setting something in those fields before saving? Or, removing that state before saving?


Jean Watson

January 14, 2022 at 5:42 am

Both options worked like a charm!
THANK YOU TONY!!
I really appreciate your prompt response and help!
Very grateful!


Tony

  • Support Staff

January 14, 2022 at 7:38 am

You’re most welcome, happy to help 🙂

Viewing 20 reply threads

The support post ‘Shortcodes not working in Custom Message Templates’ 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