Bug: .../themes/default/history/default.php

  • Frank K.
  • Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
2 years 10 months ago #144661 by Frank K.
Hi Tuan,

I think we probably miss the new "case 4" in components/com_eventbooking/themes/default/history/default.php:
Code:
                                    published)                         {                             case 0 :                                 echo JText::_('EB_PENDING');                                 break ;                             case 1 :                                 echo JText::_('EB_PAID');                                 break ;                             case 2 :                                 echo JText::_('EB_CANCELLED');                                 break;                             case 3:                                 echo JText::_('EB_WAITING_LIST');                                 // If there is space, we will display payment link here to allow users to make payment to become registrants                                 if ($this->config->enable_waiting_list_payment && $row->group_id == 0)                                 {                                     $event = EventbookingHelperDatabase::getEvent($row->event_id);                                     if ($event->event_capacity == 0 || ($event->event_capacity - $event->total_registrants >= $row->number_registrants))                                     {                                         // Check to see if there is an online payment method available for this event                                         if ($row->payment_methods)                                         {                                             $hasOnlinePaymentMethods = count(array_intersect($this->onlinePaymentPlugins, explode(',', $row->payment_methods)));                                         }                                         else                                         {                                             $hasOnlinePaymentMethods = count($this->onlinePaymentPlugins);                                         }                                         if ($hasOnlinePaymentMethods)                                         {                                         ?>                                             [url=<?php echo JRoute::_('index.php?option=com_eventbooking&view=payment&layout=registration&order_number='.$row->registration_code.'&Itemid='.$this->Itemid); ?>][/url]                                         group_id && !empty($row->enable_cancel_registration) && in_array($row->published, [0, 1, 3]) && EventbookingHelperRegistration::canCancelRegistrationNow($row))                         {                         ?>                             [url=<?php echo JRoute::_('index.php?option=com_eventbooking&task=cancel_registration_confirm&cancel_code='.$row->registration_code.'&Itemid='.$this->Itemid); ?>][/url]                                         

Frank

Please Log in or Create an account to join the conversation.

More
2 years 10 months ago #144664 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Bug: .../themes/default/history/default.php
Hi Frank

I just checked the code in my latest code base and see that we already handle it there (it's part of next release which I'm testing). Do you want to get this latest package to check? If Yes, please submit a support ticket so that I can send that latest package to you

Regards,

Tuan

Please Log in or Create an account to join the conversation.

  • Frank K.
  • Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
2 years 10 months ago #144665 by Frank K.
Replied by Frank K. on topic Bug: .../themes/default/history/default.php
Hi Tuan,
Thanks! I will just wait for the release :-)

Frank

Please Log in or Create an account to join the conversation.

More
2 years 10 months ago #144668 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Bug: .../themes/default/history/default.php
OK. I have the code ready and tested. Just need to write documentation for new feature before releasing (something related to PDF generation improvement to allow easy styling, also excel import/export improvements to compatible with PHP 8.....)

Please Log in or Create an account to join the conversation.

Moderators: Tuan Pham Ngoc