Using the shortcode [ESPRESSO_EVENTS category_slug=event-name], is it possible to change the ‘Book Now’ text that appears on the resulting table whenever an event is full/sold out?
No, I am not using EE strings, I was just wondering if there was a quick way to update the text. I’ve taken a screenshot of my problem. I have a page that I use the following shortcode on: [ESPRESSO_EVENTS category_slug=test-events]
This returns the events that are allocated to the given tag. Each event only has one ticket type and in this case, the first event listed is full, but the table of events listed all show the link ‘Book Now’, but I’d prefer the first one to say ‘Sold Out’ as it does in the actual event page.
That’s not the default output for the ESPRESSO_EVENTS shortcode, it looks very similar to the Event Table which would be ESPRESSO_EVENTS_TABLE_TEMPLATE shortcode.
Have you had some custom development done by a developer?
EE does not output ‘Book Now’ and the table shown in that screenshot is not something we output by default so it may be using a custom template.
You can check if an event is sold out using:
$event->is_sold_out( TRUE )
But it will depend on where that output is from, can you double check that table is being output from [ESPRESSO_EVENTS]? (the category_slug parameter doesn’t matter)
Tony, sorted, it appears there was a bit of custom code running in the main theme of the site. I’ve updated that to use the espresso_event_reg_button() function which does what I need perfectly. Thanks.
Viewing 4 reply threads
The support post ‘Changing 'Book Now' label for sold out events’ 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.
Support forum for Event Espresso 3 and Event Espresso 4.