Support

Home Forums Event Espresso Premium Changing message text for sold out event

Changing message text for sold out event

Posted: February 2, 2016 at 12:18 pm


Marcia Chadly

February 2, 2016 at 12:18 pm

When all available spots for one of our upcoming events have been filled the user sees this message in red on the event description page:

“We’re sorry, but all ticket sales have ended.”

We would like to change it to “Online registration for this program is closed.”

Here is an example page: http://creativelifecenter.org/events/the-enneagram-a-beginners-guide-to-self-discovery-2/

In the online documentation I found this page https://eventespresso.com/wiki/put-custom-templates/ but while it says there that I can find the templates in plugins/event-espresso/templates when I look in my FTP directory there is no such location. The template files I did find do not seem to have any reference the the message text I want to change.

We are using the latest WordPress and the latest version of EE4.

Will you kindly tell me how to make this change?


Lorenzo Orlando Caum

  • Support Staff

February 2, 2016 at 2:57 pm

Hi Marcia,

Thanks for trying to search for the answer on your own. That link doesn’t apply to Event Espresso 4.

That phrase is translation ready and it can be changed using a gettext filter. I created an example here:

https://gist.github.com/lorenzocaum/82523b3d032879b58e6c


Lorenzo


Marcia Chadly

February 3, 2016 at 12:08 pm

Thanks, Lorenzo.

The code you provided threw a PHP error. I was able to fix it by replacing the single quotes surrounding the phrase in the code with double quotes like this:
“We’re sorry, but all ticket sales have ended.”

It all works now.


Lorenzo Orlando Caum

  • Support Staff

February 3, 2016 at 2:29 pm

Hi, that was being triggered by this word:

We’re

I escaped the single quote in the example and updated it.

Thanks


Lorenzo

The support post ‘Changing message text for sold out event’ 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