Comments (2)
Update on this issue:
It seems if the individual ticket type quantities are changed, the total capacity changes automatically to the sum of all the ticket type new quantities. This is the reason we are seeing the 500 error as the total capacity is automatically lowered to a value below that of the total tickets already sold.
To get around this we are having to manually change the total capacity back to its original value before the individual ticket quantities were changed.
Surely this can't be right. Is this a bug?
from events.
Yeah, so this is a good point. The total quantity of tickets should be inclusive of all sold and unsold - it should typically be the capacity of the event venue - if we're talking about things in terms of an actual event. So reducing this number to 16 will put it into an oversold state immediately.
So the reason for the auto-changing of the capacity for the event is trying to make it easy for clients not to miss this setting.
Say you have an event with a total capacity of 40, you have 2 ticket types, with a capacity of 20 each (just for simplicity), as such, it splits evenly. But say you lower one ticket types capacity to 10 - you would expect there to only be 30 available tickets, but because the event capacity would be unchanged (still at 40), the event could be potentially oversold.
Having said that - I'm not actually sure this scenario would play out. As you've got limits on each ticket type, only 20 of one ticket type could be purchased, and 10 of the other, leaving 10 simply unavailable to purchase.
I'll fixed up this auto-changing behaviour in light of this in 1.1.7
Hope that all makes sense.
from events.
Related Issues (20)
- Programatically purchase a ticket for a user - documentation request HOT 5
- Can not install Events plugin - Craft CMS 3.7.45.2 due to jsvrcek/ics ^0.7.0 and no PHP8 support HOT 1
- Filter by ticketType not functional HOT 3
- Purchased Ticket 'Checked in' value not displaying in the list view HOT 9
- Deleting commerce order - tickets still valid HOT 1
- Deleting a purchased ticket doesn't increment the available quantity HOT 5
- Ability to Add Time Zone Per Event
- Tickets with Price = 0 are set to '' if validation fails on edit. HOT 2
- Event fieldLayout tabs won't open from dropdown menu click HOT 2
- Deleting tickets sets the 'Total Capacity' to 0 HOT 3
- No error validation for ticket type HOT 2
- Bulk refund event tickets
- QR generation error HOT 2
- Array to string conversion HOT 1
- Possible to Query purchased tickets with User data on Craft 4? HOT 2
- Ticket element - overwrite rules HOT 3
- Uncaught error when saving an event with a ticket with empty fields HOT 1
- Setting unknown property: craft\commerce\events\PdfEvent::order HOT 2
- Feedme importing into Events element and error HOT 3
- Event Types Disappearing HOT 1
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.