Hi,
common/button.php shows either the registration buttons or the waitling list buttons:
if (empty($hideRegisterButtons) && !$item->is_multiple_date)
{
if ($item->can_register)
{
echo EventbookingHelperHtml::loadCommonLayout('common/buttons_register.php', );
}
elseif ($item->waiting_list && $item->registration_type != 3 && !EventbookingHelperRegistration::isUserJoinedWaitingList($item->id))
{
echo EventbookingHelperHtml::loadCommonLayout('common/buttons_waiting_list.php', );
}
}
I have a situation where can_register is false due to the registration not being open, but waitinglist bookings were being allowed.
Is this expected?
I changed the else clause to this in my override:
elseif ($item->waiting_list && $item->registration_type != 3 && !EventbookingHelperRegistration::isUserJoinedWaitingList($item->id) && $event->cannot_register_reason == 'event_is_full')
and it fixes my problem, but i'm not sure if its correct to allow joining the waiting list if can_register is false.
Thanks
Jeff