Support

Home Forums Event Espresso Premium Change Text Output of Espresso Notices Error

Change Text Output of Espresso Notices Error

Posted: January 7, 2015 at 4:05 pm

Viewing 1 reply thread


Jarred

January 7, 2015 at 4:05 pm

If someone clicks REGISTER without first selecting a quantity, an error box pops up and says:
” An error has occurred:
You need to select a ticket quantity before you can proceed.
EED_Ticket_Selector – process_ticket_selections – 408 “.

I need the words to say ” Please make sure to select number of Attendees. ”

Is there any kind of PHP code I could add to my custom functions file on my child theme? Thanks,


Dean

January 8, 2015 at 1:18 am

Hi,

It would require two things:

1) You will need to translate the “You need to select a ticket quantity before you can proceed.” (excluding quotes) text via Poedit or gettext.

Here is a Poedit guide: https://eventespresso.com/wiki/how-to-change-wording-with-poedit/
Here is a function for Gettext: https://eventespresso.com/wiki/how-to-change-wording-with-poedit/#plugins

The “An error has occurred:” can also be translated but this will affect all error messages. To translate it, the exact string is “An error has occurred:
” without quotes.

2) Use some CSS to hide the error code:

#espresso-notices-error .tiny-text { display:none; }

That CSS can be added to your themes style.css, though in order to preserve the CSS through theme updates we recommend adding it to either: a child themes style.css, your themes CSS options if it has any, or a plugin such as My Custom CSS.

Viewing 1 reply thread

The support post ‘Change Text Output of Espresso Notices Error’ 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