- Posts: 17
- Thank you received: 0
Waiting List - Move Registrants Plugin
- ci-zeto
- Topic Author
- Offline
- New Member
-
Less
More
6 years 3 months ago #130478
by ci-zeto
Waiting List - Move Registrants Plugin was created by ci-zeto
In EB configuration I have Activate waitinglist feature ON and Enable waiting list payment OFF. Events Booking - Move Registrants Plugin is turned ON.
Is this plugin works at all?
Example:
I have an event with 2 capacity limit. Two clients registered to event (Klient1, Klient2) and third one joined waiting list correctly (Klient3). What I have to do/click to make third client move to registrant of event with status paid? I've selected Klient2 and press "Cancel Registrations" button. Klient2 dissappeared from list, but Klient3 is still in waiting list (?) Shouldn't Klient3 move to registrant list with PAID status?
Is this plugin works at all?
Example:
I have an event with 2 capacity limit. Two clients registered to event (Klient1, Klient2) and third one joined waiting list correctly (Klient3). What I have to do/click to make third client move to registrant of event with status paid? I've selected Klient2 and press "Cancel Registrations" button. Klient2 dissappeared from list, but Klient3 is still in waiting list (?) Shouldn't Klient3 move to registrant list with PAID status?
Please Log in or Create an account to join the conversation.
- Tuan Pham Ngoc
- Offline
- Administrator
-
6 years 3 months ago #130480
by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Waiting List - Move Registrants Plugin
Hello Klient3
Unless there is something special, Klient3 should be moved from waiting list into Registrants with Paid status
Could you please submit a support ticket giving us access to administrator area of your site so that I can check it?
Tuan
Unless there is something special, Klient3 should be moved from waiting list into Registrants with Paid status
Could you please submit a support ticket giving us access to administrator area of your site so that I can check it?
Tuan
Please Log in or Create an account to join the conversation.
- ci-zeto
- Topic Author
- Offline
- New Member
-
Less
More
- Posts: 17
- Thank you received: 0
6 years 3 months ago #130508
by ci-zeto
Replied by ci-zeto on topic Waiting List - Move Registrants Plugin
Sorry, but I cannot give login and pass, but...
I've just looked into code. In \administrator\components\com_eventbooking\model\common\registrant.php is used method cancelRegistrations, while cancelling registrant(s). I see there is a trigger onRegistrationCancel with param $row. Move Registrants Plugin using this trigger. At the beginning of onRegistrationCancel there is code:
Before in cancelRegistrations $row is setting published to 2:
which makes condition above never pass. Of course I will change it for my purposes, but have no clue how this code could work for you.
I've just looked into code. In \administrator\components\com_eventbooking\model\common\registrant.php is used method cancelRegistrations, while cancelling registrant(s). I see there is a trigger onRegistrationCancel with param $row. Move Registrants Plugin using this trigger. At the beginning of onRegistrationCancel there is code:
Code:
if (!in_array($row->published, [0, 1]))
{
return true;
}
Before in cancelRegistrations $row is setting published to 2:
Code:
$row->published = 2;
$row->store();
Please Log in or Create an account to join the conversation.
- Tuan Pham Ngoc
- Offline
- Administrator
-
6 years 3 months ago #130509
by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Waiting List - Move Registrants Plugin
Hi
The trigger process is in-consistent here and I will have to fix it in the extension
Original, the code was written for supporting registration from frontend (users cancel their registration). On frontend, the event is triggered before $row->published is set to 2, that's why it works
I guess I will have to change it, somehow, in the extension, to make it works for both frontend and backend cancellation
For now, maybe you should remove the if blocks
if (!in_array($row->published, [0, 1]))
I will check it carefully and fix it so that it always works in next release of the extension
Tuan
The trigger process is in-consistent here and I will have to fix it in the extension
Original, the code was written for supporting registration from frontend (users cancel their registration). On frontend, the event is triggered before $row->published is set to 2, that's why it works
I guess I will have to change it, somehow, in the extension, to make it works for both frontend and backend cancellation
For now, maybe you should remove the if blocks
if (!in_array($row->published, [0, 1]))
I will check it carefully and fix it so that it always works in next release of the extension
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.