- Posts: 3
- Thank you received: 0
Ticket Types - limit the total of a sinle booking
- Alan Burgess
- Topic Author
- Offline
- New Member
-
Less
More
6 years 8 months ago #118968
by Alan Burgess
Ticket Types - limit the total of a sinle booking was created by Alan Burgess
Hi
We a using event booking plugin and it work great. Now I'm hoping to use the ticket types function.
For a booking the total tickets is 10 for example
I see you have a limit per booking for each ticket type.
What we need is to check that the sum of different event types total does not exceed an overall booking total.
For example:
If
Total for a booking = 10.
Ticket Type A quantity = 8
Ticket Type B quantity = 3
Fail because 8+3>10
Would this be possible?
We a using event booking plugin and it work great. Now I'm hoping to use the ticket types function.
For a booking the total tickets is 10 for example
I see you have a limit per booking for each ticket type.
What we need is to check that the sum of different event types total does not exceed an overall booking total.
For example:
If
Total for a booking = 10.
Ticket Type A quantity = 8
Ticket Type B quantity = 3
Fail because 8+3>10
Would this be possible?
Please Log in or Create an account to join the conversation.
- Tuan Pham Ngoc
- Offline
- Administrator
-
6 years 8 months ago #118975
by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Ticket Types - limit the total of a sinle booking
Yes Alan. You just need to;
1. Set Capacity of the event to 10
2. Go to Events Booking -> Configuration, look at Themes tab, set Calculate Number Registrants Based on Tickets Quantity config option to Yes
Then check it again, it should work as expected
Regards,
Tuan
1. Set Capacity of the event to 10
2. Go to Events Booking -> Configuration, look at Themes tab, set Calculate Number Registrants Based on Tickets Quantity config option to Yes
Then check it again, it should work as expected
Regards,
Tuan
Please Log in or Create an account to join the conversation.
- Alan Burgess
- Topic Author
- Offline
- New Member
-
Less
More
- Posts: 3
- Thank you received: 0
6 years 8 months ago #118979
by Alan Burgess
Replied by Alan Burgess on topic Ticket Types - limit the total of a single booking
Hi Thanks for the quick reply.
I need slight difference. This is for a tour booking that runs multiple times and is set up as a single event. So the event runs forever and people just select a time slot.
The "capacity" for a single booking would have to based just on the Ticket A quantiy + Ticket B quantiy.
(The over all event capacity does apply)
Is that possible?
If needs be I could add custom javascript to check the select boxes ticket_type_quantity onchange
Thanks for your help.
I need slight difference. This is for a tour booking that runs multiple times and is set up as a single event. So the event runs forever and people just select a time slot.
The "capacity" for a single booking would have to based just on the Ticket A quantiy + Ticket B quantiy.
(The over all event capacity does apply)
Is that possible?
If needs be I could add custom javascript to check the select boxes ticket_type_quantity onchange
Thanks for your help.
Please Log in or Create an account to join the conversation.
- Tuan Pham Ngoc
- Offline
- Administrator
-
6 years 8 months ago #118996
by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Ticket Types - limit the total of a single booking
Hi Alan
If so, that's not supported, sorry. You will need to customize the code yourself to implement this validation
Using javascript onchange is not enough, you should implement validation using server side validation (PHP code)
Look at components/com_eventbooking/controller/register.php, method validateTickets and try to customize it to meet your need
Tuan
If so, that's not supported, sorry. You will need to customize the code yourself to implement this validation
Using javascript onchange is not enough, you should implement validation using server side validation (PHP code)
Look at components/com_eventbooking/controller/register.php, method validateTickets and try to customize it to meet your need
Tuan
Please Log in or Create an account to join the conversation.
- Alan Burgess
- Topic Author
- Offline
- New Member
-
Less
More
- Posts: 3
- Thank you received: 0
6 years 8 months ago #119003
by Alan Burgess
Replied by Alan Burgess on topic Ticket Types - limit the total of a single booking
Hi Tuan,
Thats okay, it's a great plugin and cant e expected to do everthing. I'll make the server side validation. Thanks for pointing me in the right direction.
Thats okay, it's a great plugin and cant e expected to do everthing. I'll make the server side validation. Thanks for pointing me in the right direction.
Please Log in or Create an account to join the conversation.
- Tuan Pham Ngoc
- Offline
- Administrator
-
6 years 8 months ago #119053
by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Ticket Types - limit the total of a single booking
OK Alan.Remember to implement the modification as override so that it won't be lost when you update to future releases of the extension. See
eventbookingdoc.joomservices.com/develop...hod-in-a-model-class
for our documentation
Tuan
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.