Skip to content
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

Query for One Off Ticket Fieldsets #35

Open
craigwilcox opened this issue Oct 11, 2021 · 0 comments
Open

Query for One Off Ticket Fieldsets #35

craigwilcox opened this issue Oct 11, 2021 · 0 comments
Assignees
Labels
effort-5 Minor coding, some/much research needed enhancement New feature or request feature request
Milestone

Comments

@craigwilcox
Copy link
Collaborator

craigwilcox commented Oct 11, 2021

In #34, the case presented was for an admin to create and save reusable custom ticket fieldsets.

It's also possible for an admin to create a one-off ticket fieldset that will be used only for this class and not saved for future use.

The query for this will be similar to the query in issue 34, except we need to get the one-off field in addition to any saved custom ticket fieldsets.

We just need these individual fieldsets to be differentiated from the saved custom ticket fieldsets. An example query for this could be:

 event (id: X, idType: databaseID) {
  wooTickets {
   singleTicketFields {
   nodes {
    fieldType {
     Label
     Description
     Options
     Required
     }
    } 
   }
  }
 }
}

In this query, I have only changed the name from customTicketFields to singleTicketFields. In almost all cases, these queries would be combined. If there's an easier way to get both of these queries put together, that would also be fine.

Plugins Needed

Event Tickets Plus (for WooTickets integration)

Thanks,
Craig

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
effort-5 Minor coding, some/much research needed enhancement New feature or request feature request
Projects
None yet
Development

No branches or pull requests

3 participants