- Posts: 103
- Thank you received: 5
Quantity field across events
- Russell Noble
- Topic Author
- Offline
- Premium Member
-
Less
More
9 years 7 months ago #85435
by Russell Noble
Quantity field across events was created by Russell Noble
Hi,
Wonder if it's possible to use a quantity field across a number of events, rather than the max quantity applying per event.
For example, is we have 40 t-shirts available and want to sell them with registration in 4 different events. At the moment the quantity applied per event. We'd like no more than 40 in total across the 4 events.
Thanks,
Russ.
Wonder if it's possible to use a quantity field across a number of events, rather than the max quantity applying per event.
For example, is we have 40 t-shirts available and want to sell them with registration in 4 different events. At the moment the quantity applied per event. We'd like no more than 40 in total across the 4 events.
Thanks,
Russ.
Please Log in or Create an account to join the conversation.
- Tuan Pham Ngoc
- Offline
- Administrator
-
9 years 7 months ago #85463
by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Quantity field across events
Sorry Russ, it is not possible. Quantity field can only be calculated for each event only. It could not be calculated across events
Tuan
Tuan
Please Log in or Create an account to join the conversation.
- Russell Noble
- Topic Author
- Offline
- Premium Member
-
Less
More
- Posts: 103
- Thank you received: 5
9 years 7 months ago #85507
by Russell Noble
Replied by Russell Noble on topic Quantity field across events
Tuan,
thanks, I needed this for a client so looked at the code and seems to be a small change from what I can tell. Really just the first select in getAvailableQuantityOptions . Tested and seems to work. Just FYI. Can't post the code to share with others, but if anyone needs it, sing out.
Russ.
thanks, I needed this for a client so looked at the code and seems to be a small change from what I can tell. Really just the first select in getAvailableQuantityOptions . Tested and seems to work. Just FYI. Can't post the code to share with others, but if anyone needs it, sing out.
Russ.
Please Log in or Create an account to join the conversation.
- Tuan Pham Ngoc
- Offline
- Administrator
-
9 years 7 months ago #85509
by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Quantity field across events
Hi Russ
Just zip the file and you should be able to upload it here
Regards,
Tuan
Just zip the file and you should be able to upload it here
Regards,
Tuan
Please Log in or Create an account to join the conversation.
- Russell Noble
- Topic Author
- Offline
- Premium Member
-
Less
More
- Posts: 103
- Thank you received: 5
9 years 7 months ago - 9 years 7 months ago #85521
by Russell Noble
Replied by Russell Noble on topic Quantity field across events
Against the 2.8.1 code base, this is a replacement components/com_eventbooking/helper/html.php file which changes how quantity calculations work so that the total number of uses across all events for a field value is calculated, not just the use of the field value per event.
Last edit: 9 years 7 months ago by Russell Noble.
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.