Advanced Order Export for WooCommerce

WooCommerce Box Office

Selling event tickets with WooCommerce Box Office? Need attendee names and ticket IDs?

Standard exports only show the product. Not individual ticket holder details.

Here’s how to export each ticket separately with attendee information.

What this code exports

Each ticket becomes its own row. Columns include:

  • Ticket ID (unique identifier)
  • First Name (attendee)
  • Last Name (attendee)
  • Email (attendee)

Plus any custom ticket fields you’ve created in Box Office.

The complete code

Setup steps

  1. Copy the entire code block
  2. Paste into your theme’s functions.php
  3. Edit the fields array to match your actual ticket fields:

Use the exact labels from your Box Office “Ticket Fields” tab.

  1. Go to Advanced Order Export for WooCommerce
  2. Create or edit an export profile
  3. Open Setup Fields → Products
  4. You’ll see ticket fields. Check the ones you need
  5. Save and test on an event order

What your export looks like

Order with 2 tickets to a conference:

Line IDProductTicket IdFirst NameLast NameEmailCompany
1Conference PassTICKET-123JohnSmith[email protected]Acme Corp
2Conference PassTICKET-124JaneDoe[email protected]TechStart

Each ticket holder gets their own row.

When you need this

You sell event tickets. Need attendee check-in list with names and emails.

Your security team needs ticket IDs for scanning at the door.

You manage VIP events. Need custom fields like “Meal Preference” or “Shirt Size”.

Customizing the fields

Change the $fields array to match your Box Office setup.

Example for a workshop:

Example for a gala:

The field names must match exactly. Check your Box Office settings for correct spelling.

Common mistake

The code looks for meta keys like ticket-id-123. Box Office stores ticket IDs this way.

If your Box Office version uses different meta keys, the code won’t find tickets. Export will show only products (one row per product, not per ticket).

One product row, no ticket rows?

Your event product might not have generated tickets yet. Box Office creates tickets after payment completes.

Test with a completed order. Verify tickets exist in Box Office admin.

Pro tip

Need to export only tickets? Uncheck regular product fields. Leave only ticket-specific columns checked.

Add the “Ticket Id” column to your export. Use it for check-in scanning.

Real talk

WooCommerce Box Office stores tickets as custom post types. Each ticket links to an order item.

This code finds those links. Pulls each ticket’s custom fields. Creates one row per ticket.

Perfect for event organizers. Your check-in team gets a clean list. Scan ticket IDs directly from your export. No more manual attendee lists.

Have questions? Please submit a support request. We're always happy to help!

Advanced Order Export
for WooCommerce
PRO

From $30
Buy
✓ 30-day money-back guarantee