Registration list full, message

  • Davide
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
7 years 11 months ago #111915 by Davide
Registration list full, message was created by Davide
Hi all
When my events are full the EB_AVAILABLE_PLACE show in front end the number "0". Is it possible to replace the number 0 with a text message like "there are no places available"?

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

  • Tuan Pham Ngoc
  • Away
  • Administrator
  • Administrator
More
7 years 11 months ago #111924 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Registration list full, message
Hi David

No, it's not possible for now. But you can modify the code yourself to have it works like that

The file is components/com_eventbooking/view/common/tmpl/event_properties.php, just change code from:
Code:
echo $item->event_capacity - $item->total_registrants;

to
Code:
$availablePlaces = item->event_capacity - $item->total_registrants; if ($availablePlaces > 0) { echo $availablePlaces; } else { echo 'there are no places available'; }

Tuan

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

  • Davide
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
7 years 11 months ago #111927 by Davide
Replied by Davide on topic Registration list full, message
Thank you, I can override it, is that right?

Which is the best method?
should I copy of entire php file to the override cartel?, where?

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

  • Davide
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
7 years 11 months ago #111928 by Davide
Replied by Davide on topic Registration list full, message
Thank you, I can override it, is that right?

Which is the best method?
should I copy of entire php file to the override cartel?, where?

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

  • Tuan Pham Ngoc
  • Away
  • Administrator
  • Administrator
More
7 years 11 months ago #111933 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Registration list full, message
Yes. You can. Modify file, then copy that modified file to PATH_TO_TEMPLATE/html/com_eventbooking/common folder so that the change won't be lost when you update to future releases of the extension

Regards,

Tuan

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

Moderators: Tuan Pham Ngoc