Support

Home Forums Community Forum 'Sold Out' fix disappeared?

'Sold Out' fix disappeared?

Posted: December 5, 2016 at 5:26 am


Richard Wallis

December 5, 2016 at 5:26 am

Back in October 2014 I raised a ticket <https://eventespresso.com/topic/required-ticket-not-available-should-block-registration-ee4-2/> for the circumstance where an event that had sold out of a required ticket type did not report as sold out (because there were still remaining tickets of a non-required type).

It was fixed in version 4.4.4p (Sold Out Ticket that is Required allows other Tickets to be Purchased).

Unfortunately the problem has reappeared on my site – running on version 4.9.4p (at our busiest time of year I do not update versions unless critically required).

This is causing problems with events being overbooked. Can you confirm a) Has that fix disappeared from the codebase, and b) how to fix it so my event organisers stop getting upset about loosing control of their attendee numbers.


Josh

  • Support Staff

December 5, 2016 at 10:27 am

Hi Richard,

I checked version 4.9.4.p and the sold out fix is still there, and it’s still working when I test it. If you have customized version of the ticket selector template that could potentially cause some issues though.


Richard Wallis

December 5, 2016 at 10:41 am

The relevant section of my selector template (espresso-events-table-template.template.php)is this, which worked from 4.4.4.p onwards:

//Create the register now button
$live_button = ‘ID.'” href=”‘.$registration_url.'”>’.$button_text.’‘;
$sell_button = ‘ID.'” href=”‘.$sell_url.'”>’.$sell_button_text.’‘;
if ( $event->is_sold_out() || $event->is_sold_out(TRUE ) ) {
$live_button = $sold_out_button_text;
$sell_button = $sold_out_button_text;
}

Will that have changed?


Josh

  • Support Staff

December 5, 2016 at 11:09 am

That’s not from the ticket selector template, that’s from events table template.


Richard Wallis

December 5, 2016 at 11:14 am

Whoops sorry, however that’s where the problem is showing up.

The registration route is via the events table, so available events can be selected.


Josh

  • Support Staff

December 5, 2016 at 11:20 am

It shouldn’t allow selecting any tickets if the required ticket is sold out. If it is allowing ticket selections, then can you check to see if your ticket selector template has been modified.

The support post ‘'Sold Out' fix disappeared?’ 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