-
-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ticket selection when creating an order in the CP seems to be bugged #182
Comments
So yes, legacy tickets are technically still purchasables, and are kept in the system. This is to not disrupt your previous Commerce orders where these would be otherwise missing and throw an error. That might explain the extra available tickets to pick from? We're largely at the mercy of Commerce's "Add line item" interface, which loops through all available purchasales and lists them there. I don't believe there's a way to exclude certainly elements from appearing there, or change their look based on being in this list. The title of the ticket will be identical to what you'd see in an event, but I agree that the event's name should be included. That's actually technically up to you to add, with the "Ticket Title Format" setting - set that to include As for showing current/future events, that's the default behaviour for |
What I meant is that we have no control over the legacy tickets appearing there. They can’t be excluded. I’ll look at excluding past events, but I can see the need for being able to select past events for new Commerce orders. |
So, I actually achieved everything I wanted by manipulating the query in the EVENT_MODIFY_PURCHASABLES_TABLE_QUERY hook. This means hiding old and legacy tickets. But I don't have a good solution for the purchasable description. Could you update it when the ticket title changes? |
I've completely missed that |
Describe the bug
If I want to create a new order as admin in the CP, the selection of the ticket looks very confused when adding an item.
There are considerably more tickets than there actually are in the system. I have two events with 10 different tickets each. One of these events is in the past. Somehow, however, I have over 40 tickets to choose from. You also can't recognise which ticket belongs to which event. The past event was also created with version 2, and somehow the legacy tickets also seem to be displayed here.
I would expect to be able to select only the tickets for the current event (regardless of whether they are deactivated or sold out)
This is a real problem for us right now, as our admins can't create orders manually.
Steps to reproduce
Craft CMS version
5.6.5.1
Plugin version
3.0.5
Multi-site?
Yes
Additional context
No response
The text was updated successfully, but these errors were encountered: