- Posts: 31
- Thank you received: 0
Registration list full, message
- Davide
- Topic Author
- Offline
- Junior Member
-
Less
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"?
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
-
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:
to
Tuan
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
-
Less
More
- Posts: 31
- Thank you received: 0
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?
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
-
Less
More
- Posts: 31
- Thank you received: 0
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?
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
-
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
Regards,
Tuan
Please Log in or Create an account to join the conversation.
Moderators: Tuan Pham Ngoc
Support
Documentation
Information
Copyright © 2026 Joomla Extensions by Joomdonation. All Rights Reserved.
joomdonation.com is not affiliated with or endorsed by the Joomla! Project or Open Source Matters.
The Joomla! name and logo is used under a limited license granted by Open Source Matters the trademark holder in the United States and other countries.
The Joomla! name and logo is used under a limited license granted by Open Source Matters the trademark holder in the United States and other countries.