Advanced Order Export for WooCommerce

FooEvents For WooCommerce

Selling event tickets? Need attendee names, emails, and ticket types in your exports?

Standard WooCommerce exports only show the product name. Not who’s attending.

Here’s how to pull FooEvents ticket data into your exports.

What this code does

It replaces regular product rows with ticket data. Each ticket becomes its own row. Attendee info appears in separate columns.

Export columns include:

  • Ticket Type
  • Ticket Status
  • Attendee First Name
  • Attendee Last Name
  • Attendee Email
  • Attendee Phone
  • Attendee Company
  • Attendee Designation
  • Purchaser First Name
  • Purchaser Last Name
  • Purchaser Email
  • Booking Slot
  • Booking Date
  • Custom Registration Type

The complete code

Setup steps

  1. Copy the entire code block
  2. Paste into your theme’s functions.php
  3. Go to Advanced Order Export for WooCommerce
  4. Create or edit an export profile
  5. Open Setup Fields → Products
  6. You’ll see all ticket fields available. Check the ones you need
  7. Save the profile
  8. Run a test export on an event order

What you’ll see

Ticket TypeAttendee First NameAttendee EmailBooking Date
VIP PassJohn Smith[email protected]2026-06-15
General AdmissionJane Doe[email protected]2026-06-15

Each ticket gets its own row. No more guesswork.

Custom fields

The code includes $custom_fields array. Edit it to match your FooEvents custom attendee fields.

Replace “Registration Type” with your actual field label. Add more rows if you have multiple custom fields.

Seating fields

Need seat numbers? The code has commented seating sections. Uncomment them if you use FooEvents seating addon.

Contact plugin support for help with seating exports. Different seating plugins need different code.

Common mistake

Not having FooEvents installed and active. The code checks for ticket post types. No tickets? No data exports.

Also, the code assumes standard FooEvents field names. If your plugin version uses different meta keys, edit the $fields array accordingly.

One ticket exported multiple times?

The code includes $tickets_exported tracking. Prevents duplicates. Each ticket exports once.

Pro tip

Want only ticket data? The line $fields = []; clears default product fields. Comment it out to keep both product and ticket data.

Need additional ticket fields? Add them to the $fields array. Look in your database for the exact meta key name.

Real talk

This code is specific to FooEvents. Won’t work with other event plugins.

Test thoroughly before running on live events. Export one order. Verify every attendee appears correctly.

Advanced Order Export for WooCommerce handles the export engine. This code pulls ticket data from FooEvents tables.

Your event team gets clean attendee lists. No manual data entry.

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