Support

Home Forums Event Espresso Premium Postponed events in Table show register

Postponed events in Table show register

Posted: March 16, 2020 at 11:31 am

Viewing 6 reply threads


Kerry Gray

March 16, 2020 at 11:31 am

Due to the current global situation, we have had to postpone a number of our events.

Problem is in the Events Espresso Table view Postponed events show as Register where it normally says Register or Fully Booked. Is there a way it can say Postponed?


Tony

  • Support Staff

March 16, 2020 at 11:39 am

Hi Kerry,

How did you postpone the events in Event Espresso?

(I’m asking as the settings for your event determine what you need to change)


Tony

  • Support Staff

March 16, 2020 at 11:41 am

One option is to add the reg_button_text='Your custom link text' attribute to the shortcode, so to replace ‘Registration Now’ you could use:

[ESPRESSO_EVENTS_TABLE_TEMPLATE reg_button_text='Postponed']


Kerry Gray

March 16, 2020 at 12:53 pm

Hi Tony

Postponed via the post status field.

Would adding custom link text change it for all events including events that are not postponed.

Thanks


Josh

  • Support Staff

March 16, 2020 at 1:03 pm

It would. Another approach you could take would be to alter the template to add a check for the event’s status, then display the status if it’s postponed or cancelled.
The steps to make this edit are as follows:
You copy the template file over to your child theme from the Events table template add-on. Then immediately after the line that starts with
$button_text you add this:
$button_text = $post->EE_Event->is_cancelled() ? 'Cancelled' : $button_text;
$button_text = $post->EE_Event->is_postponed() ? 'Postponed' : $button_text;


Kerry Gray

March 16, 2020 at 1:04 pm

Hi Josh,

Thanks for this I shall give it a try.

Thanks


Kerry Gray

March 16, 2020 at 1:11 pm

Hi Guys,

Josh’s suggestion has worked. Thanks for the speedy replies.

Viewing 6 reply threads

The support post ‘Postponed events in Table show register’ 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