- Posts: 26
- Thank you received: 0
minimum number of tickets required.
- Wesley Derbyshire
- Topic Author
- Offline
- Junior Member
-
Less
More
3 years 5 months ago #147817
by Wesley Derbyshire
minimum number of tickets required. was created by Wesley Derbyshire
When I create a ticket for an event, the registration form displays a dropdown list for the number of tickets to be purchased. Is it possible to require a minimum number of tickets? I'd like to require that the registrant have at least one ticket.
Please Log in or Create an account to join the conversation.
- Tuan Pham Ngoc
- Offline
- Administrator
-
3 years 5 months ago #147822
by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic minimum number of tickets required.
Hello David
I guess you are using Ticket Types? If so, an event could have multiple ticket types and the system will require that you select at least one ticket type for your registration.
Is that what you need? Or you want something different?
Tuan
I guess you are using Ticket Types? If so, an event could have multiple ticket types and the system will require that you select at least one ticket type for your registration.
Is that what you need? Or you want something different?
Tuan
Please Log in or Create an account to join the conversation.
- Wesley Derbyshire
- Topic Author
- Offline
- Junior Member
-
Less
More
- Posts: 26
- Thank you received: 0
3 years 5 months ago #147824
by Wesley Derbyshire
Replied by Wesley Derbyshire on topic minimum number of tickets required.
If I understand what you're saying, if the event had two ticket types the registrant would have to chose one, but would they have to select a quantity more than zero?
I actually want only one type of ticket, but require that they select a quantity greater than zero.
I actually want only one type of ticket, but require that they select a quantity greater than zero.
Please Log in or Create an account to join the conversation.
- Tuan Pham Ngoc
- Offline
- Administrator
-
3 years 5 months ago #147839
by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic minimum number of tickets required.
So for that event, certain ticket type always need to be selected? And you have multiple ticket types ?
If so, we do not support that option at the moment.
Tuan
If so, we do not support that option at the moment.
Tuan
Please Log in or Create an account to join the conversation.
- Wesley Derbyshire
- Topic Author
- Offline
- Junior Member
-
Less
More
- Posts: 26
- Thank you received: 0
3 years 5 months ago #147843
by Wesley Derbyshire
Replied by Wesley Derbyshire on topic minimum number of tickets required.
one ticket type. if they want to attend they have to have one ticket. If they want to bring somebody else, they need two tickets. zero tickets is unacceptable. Including tickets in the event configuration allows an individual to get a ticket for themselves and other people in a single transaction - and we get a count and a list of the names of the attendees. We only get the contact info from the registrant.
Please Log in or Create an account to join the conversation.
- Tuan Pham Ngoc
- Offline
- Administrator
-
3 years 5 months ago #147846
by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic minimum number of tickets required.
Strange. Could you send me link to registration form of that event?
Please Log in or Create an account to join the conversation.
- Wesley Derbyshire
- Topic Author
- Offline
- Junior Member
-
Less
More
- Posts: 26
- Thank you received: 0
3 years 5 months ago #147853
by Wesley Derbyshire
Replied by Wesley Derbyshire on topic minimum number of tickets required.
Please Log in or Create an account to join the conversation.
- Tuan Pham Ngoc
- Offline
- Administrator
-
3 years 5 months ago #147855
by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic minimum number of tickets required.
Hello David
It is working OK for me. You can try to submit registration without selecting a ticket, when the form submitted, the system will validate data and show an error message like in the attached screenshot
Tuan
It is working OK for me. You can try to submit registration without selecting a ticket, when the form submitted, the system will validate data and show an error message like in the attached screenshot
Tuan
- Wesley Derbyshire
- Topic Author
- Offline
- Junior Member
-
Less
More
- Posts: 26
- Thank you received: 0
3 years 5 months ago #147867
by Wesley Derbyshire
Replied by Wesley Derbyshire on topic minimum number of tickets required.
I can see what you mean by "it is working properly", but this behavior is not terribly user friendly. They have to fill out the entire form and submit it before they get feedback saying they need to get at least one ticket. Since 0 tickets is not an acceptable choice in this scenario, it seems to me that the choice of 0 tickets shouldn't be offered at all. In the Event Manager I can set a MAX number of tickets for each ticket type I create. Why can I NOT set a MIN number of tickets so the option of 0 tickets is not displayed and cannot be chosen?
Could this be done with some kind of override code? or is this something you might consider adding to your next release?
Could this be done with some kind of override code? or is this something you might consider adding to your next release?
Please Log in or Create an account to join the conversation.
- Tuan Pham Ngoc
- Offline
- Administrator
-
3 years 5 months ago #147869
by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic minimum number of tickets required.
Hello David
1. What you describe only works in case you only have one ticket type. In most case, each event have multiple ticket types, so for certain ticket type, select 0 is valid.
2. In your case, you can modify code in the file components/com_eventbooking/themes/default/register/default_tickets.php, change this line of code:
To
Please move the modified file to PATH_TO_TEMPLATE/html/com_eventbooking/register folder so that the change won't be lost when you update to future releases of the extension
PATH_TO_TEMPLATE is path to the template which you are using on your site
Regards,
Tuan
1. What you describe only works in case you only have one ticket type. In most case, each event have multiple ticket types, so for certain ticket type, select 0 is valid.
2. In your case, you can modify code in the file components/com_eventbooking/themes/default/register/default_tickets.php, change this line of code:
Code:
echo HTMLHelper::_('select.integerlist', 0, $available, 1, $fieldName, 'class="ticket_type_quantity input-small" onchange="calculateIndividualRegistrationFee(1);"', $this->input->getInt($fieldName, 0));
To
Code:
echo HTMLHelper::_('select.integerlist', 1, $available, 1, $fieldName, 'class="ticket_type_quantity input-small" onchange="calculateIndividualRegistrationFee(1);"', $this->input->getInt($fieldName, 0));
Please move the modified file to PATH_TO_TEMPLATE/html/com_eventbooking/register folder so that the change won't be lost when you update to future releases of the extension
PATH_TO_TEMPLATE is path to the template which you are using on your site
Regards,
Tuan
Please Log in or Create an account to join the conversation.
Moderators: Tuan Pham Ngoc
Support
Documentation
Information
Copyright © 2025 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.