ql-events icon indicating copy to clipboard operation
ql-events copied to clipboard

Checkout Mutation: attendee ticket fieldsets

Open craigwilcox opened this issue 2 years ago • 1 comments

As a WP TEC admin, I would like to see the ticket fieldset options chosen by event attendees in the Attendee information screen.

From the front-end of a site using QL Events, information about the attendees for the event will be collected. The values obtained from the users who sign up for either a free or paid class should be written to the ticket order through a checkout mutation.

This is related to Issues #34 and #35, where the queries for the custom ticket fieldsets are mentioned.

I'm unsure about how this information is stored in WP TEC, but I'm imagining it is attendee metadata.

An example of what would need to be stored on an attendee record would be:

mutation MyMutation {
  checkout(input: {}) {
    order {
     wootickets {
      customTicketFieldsets {
       nodes {
        Label
        Option
        }
      }     
     }
    }
  }
}

In some cases, attendee records are created automatically upon ticket purchase. I believe there is an option within TEC, though, to create the attendee records only when the order is completed.

We need to be able to use this mutation to the attendee record in either case.

Plugins Needed

Event Tickets Plus (for WooTickets integration)

Thanks, Craig

craigwilcox avatar Oct 11 '21 21:10 craigwilcox