the-events-calendar / ql-events

The Events Calendar binding to WPGraphQL
15 stars 7 forks source link

Checkout Mutation: attendee ticket fieldsets #36

Open craigwilcox opened 3 years ago

craigwilcox commented 3 years ago

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

kidunot89 commented 3 years ago

@borkweb Coding wise this is probably an effort-5 but because it will depend on feature functionality requested in another ticket, I'm bumping it to effort-8.