Comments (3)
The only way I'm seeing this, is if the "Total Capacity" is empty, and you delete all the tickets. The capacity will be set to 0.
The capacity of an event should be independent of the ticket quantities. The only case where it will populate the total capacity is if that's empty. For example, you skip setting the capacity, and create your tickets with the quantity. It'd be useless to have an event with 0 capacity, while having tickets available for purchase - but you can't buy any with a 0 capacity.
Is this the behaviour that is an issue for you?
from events.
Yep / that's what's happening. I can see instances where an admin creates/edits an event and adds a ticket, realises its the wrong ticket type and rather than change the ticket type deletes the ticket and adds a new one - not realising that the total capacity has been automagically set to 0.
Also, in our case, we have a ticket type that will never have a max capacity so we'll never want a max capacity of 0.
I could understand if the default capacity was 0 and there was a toggle for enforcing max capacity, but there isn't, so this value shouldn't be arbitrary set when all tickets have been deleted. Also,the notes say something like this is limit is independent of the individual ticket quantities, so again shouldn't be set based on a ticked change/deletion.
(Sorry for the rambling notes!)
from events.
Fair enough, I'll give this some thought. I just wanted to check as I couldn't replicate it with a value set in the total capacity field, when adding or deleting tickets.
from events.
Related Issues (20)
- Missing ability to define a SKU on Events? HOT 5
- 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
- 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
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.