Support

Home Forums Event Espresso Premium 'View Details' link becomes 'Sold Out' for past event

'View Details' link becomes 'Sold Out' for past event

Posted: June 1, 2016 at 5:10 pm

Viewing 3 reply threads


Rose_P

June 1, 2016 at 5:10 pm

Hi, we are keeping past events displayed with the ‘show_expired=true’ in the EVENT_LIST shortcode. It works, but when the event has passed, the registration link will change from ‘View Details’ to ‘Sold Out.’ This is for events where we have entered an external URL under Alternative Registration Page.

On another site running EE 4.8.14.p, this isn’t happening. It continues to display ‘View Details.’

Would appreciate any direction you can give to correct this. Thanks.


WordPress 4.4.3
Event Espresso – Version 4.8.43.p
Event Espresso – Events Table View Template (EE 4.4.9+) – Version 1.3.3.p


Josh

  • Support Staff

June 2, 2016 at 9:51 am

Hi there,

Since Event Espresso 4 doesn’t have an [EVENT_LIST] short code, may I assume it’s actually the [ESPRESSO_EVENTS_TABLE_TEMPLATE] short code that you’re having trouble with? If that’s the case, has the part where it generates the view details link been customized?


Rose_P

June 2, 2016 at 10:48 am

Hi Josh,

Yes, I meant [ESPRESSO_EVENTS_TABLE_TEMPLATE]. We did use a custom template to add two columns. I tested using the default template and had the same results. $live_button hasn’t been modified at all. I do see where it’s changing the button.

if ( $event->is_sold_out() || $event->is_sold_out(TRUE ) ) {
$live_button = ‘ID.'” class=”a_register_link_sold_out” href=”‘.$registration_url.'”>’.$sold_out_button_text.’‘;
}

Would you know off hand what is_sold_out() is checking for? I’m creating test events with and without registrants and/or external registration links. Everything that expires displays ‘Sold Out.’


Josh

  • Support Staff

June 3, 2016 at 10:56 am

Here’s a link to where the is_sold_out() method resides in the Event Espresso 4 core code repository on Github:

https://github.com/eventespresso/event-espresso-core/blob/master/core/db_classes/EE_Event.class.php#L960

Viewing 3 reply threads

The support post ‘'View Details' link becomes 'Sold Out' for past 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