Support

Home Forums Event Espresso Premium Changing 'Book Now' label for sold out events

Changing 'Book Now' label for sold out events

Posted: March 28, 2017 at 6:43 am

Viewing 4 reply threads


cvg

March 28, 2017 at 6:43 am

Howdy,

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?


Tony

  • Support Staff

March 28, 2017 at 11:48 am

Hi there,

Are you translating EE strings? Specifically the ‘View Details’ text?

EE doesn’t output a ‘Book Now’, but for sold out events it should display ‘View Details’ on the button, like this – http://take.ms/mSAQx

So if your translating ‘View Details’ to ‘Book Now’ then that’s what it will show for the sold out event.

Can you link me to the page so I can view the output?


cvg

March 29, 2017 at 2:07 am

Hi Tony,

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.

http://take.ms/93ZPm


Tony

  • Support Staff

March 29, 2017 at 5:54 am

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)


cvg

April 7, 2017 at 6:27 am

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.

Event Espresso