Support

Home Forums Event Espresso Premium Sold Out “string of text”

Sold Out “string of text”

Posted: January 16, 2025 at 6:27 am

Viewing 4 reply threads


EasternEvents

January 16, 2025 at 6:27 am

Where are these two strings of text that appear when my event tickets are sold out:

“[Event Name] is currently sold out.”
“Please check back again later, as spots may become available.”

The top line is excellent, but I use WAITING LISTS, which will place a button below and to the right of this line of text to encourage collecting additional interest.

However, the second line of text negatively discourages the use of the Wit List button. I want to change that test string to encourage clicking the WAIT LIST button.

Is there a configuration page where I can change the text, or do I need a CODE SNIPPET? I would prefer something like this to encourage customers to use the button:

“Please use the WAIT LIST button so we can notify you if space opens.”


Tony

  • Support Staff

January 16, 2025 at 4:29 pm

Hi there,

You’ll need a snippet for this and I have an example here:

https://gist.github.com/Pebblo/8201e23daaaf479e70ad7472e9477f8e

In your snippet you’ll want Line 8 to be changed to something like:

'%1$s"%2$s" is currently sold out.%4$sPlease check back again later, as spots may become available.%3$s' => '%1$s"%2$s" is currently sold out.%4$sPlease use the WAIT LIST button so we can notify you if space opens.%3$s',

Then add the snippet to a custom functions plugin, we have some documentation on creating one here:

https://eventespresso.com/wiki/create-site-specific-plugin-wordpress-site/


EasternEvents

January 16, 2025 at 5:20 pm

Thank you! I put your text example into the SNIPPET you linked into my Code Snippet list.

I tested by looking in my first sold-out course, and everything looks great:

https://www.patrollerschool.org/events/events/elk-mtn-womens-toboggan-clinic-2/

Unfortunately, when I checked another Sold-Out event, it did not display the text. I can’t figure out why.

https://www.patrollerschool.org/events/events/elk-pa-general-admission-to-patroller-school-2024-2/

The primary difference is that this event has more than one ticket to choose from. Do you know if this Sold-Out feature has difficulty when multiple tickets are displayed?


Tony

  • Support Staff

January 16, 2025 at 5:44 pm

The text is behind a conditonal for:

if ($this->getMaxAttendees() === 1) {

MaxAttendees in this case is based on the “Maximum number of tickets allowed per order for this event” value set within the event itself.

This event:

https://www.patrollerschool.org/events/events/elk-mtn-womens-toboggan-clinic-2/

Has that set to 1 and this event:

https://www.patrollerschool.org/events/events/elk-pa-general-admission-to-patroller-school-2024-2/

Does not, correct?


EasternEvents

January 17, 2025 at 5:42 pm

Yes, both events had an option to purchase multiple tickets. But I backed the first one down to just one at a time because I typically do that once we hit WAITING LIST mode.

I failed to depreciate the purchased quantity on the second. But why choose to code it this way? Why not display the Sold Out message regardless of whether the quantity is one or multiple.
Thank you for the explanation.

Viewing 4 reply threads

The support post ‘Sold Out “string of text”’ 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