Comments (6)
No, you don't have to if you don't want to. The option is there to control both ticket and event capacity, should you need that fine-grained level of control.
Say you have an event with 100 seats and Child + Adult tickets. You can just not set a quantity on those tickets so that there are no limits to how many tickets can be purchased (until all 100 are sold)
In another scenario, you might only allow 25 Child tickets, and 75 Adult tickets. Using the quantity allows you to control this.
The quantity for a ticket also acts like inventory, and is decremented whenever someone purchases a ticket of that type for the event. This may very well change in the future, as it's ambiguous, and can lead to deadlock issues (you edit the value while someone is purchasing that ticket - you get inconsistent results.
from events.
If the quantity field is left empty, 0 is saved as the value and the ticket is not available.
from events.
Ah, right you are - that's incorrect behaviour (see 5fa7893).
Fixed for the next release. To get this early, run composer require verbb/events:"dev-craft-4 as 2.0.2"
.
from events.
the bug is not fixed. the ticket quantity is automatically reset to 0 with release 2.0.2
a condition must be added to be functional
$ticketModel->quantity = null;
if ($ticket['quantity']) :
$ticketModel->quantity = (int)$ticket['quantity'];
endif;
you can't put an infinite total capacity on top of infinite tickets either
from events.
Right, that's why we added fba54ca which is unreleased. Is that not working for you?
from events.
Should be fixed in 2.0.3
from events.
Related Issues (20)
- Ticket only available to purchase if enabled on primary site HOT 1
- duplicate event but not tickets HOT 1
- Download Tickets in Control Panel HOT 2
- Function availableQuantity of Ticket class returns bool HOT 2
- Separate user permission for event ticket settings
- Propagation Methods for events on multisite setups HOT 1
- Multisite edit issues HOT 2
- No purchased tickets are generated when the order is updated. HOT 3
- Events Causing Extra Shipping Charges in the Cart. HOT 11
- Cannot manually add ticket to order in CP HOT 4
- Ticket line items in cart not merged with cart when user logs in HOT 3
- Disable deleting a ticket if it's it's already been purchsed HOT 2
- Total capacity always defaults to 0 making it always required or the event becomes unavailable HOT 4
- Tickets in feedMe? HOT 4
- Add events for checkin and un-checkin HOT 1
- Add field setting to allow only future events to be picked
- Wrong URLs behind 'New event' Button on non-primary sites. HOT 3
- Feature Request: Support Start Date / End Date in Craft 5's card view mode HOT 1
- Error when adding new event type HOT 1
- Purchased Tickets Filter Not Working
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from events.