Advanced Order Export for WooCommerce

WooCommerce Bookings

Running a booking site? Rentals, appointments, or classes?

Standard exports show the product name. Not booking dates, resources, or person counts.

Here’s how to export everything from WooCommerce Bookings.

What this code exports

Booking fields:

  • Booking ID
  • Booking Status
  • Booking Start Date
  • Booking Start Time
  • Booking End Date
  • Booking End Time
  • Booking Resource (which room, car, or equipment)
  • Booking Persons Total
  • Booking Persons (by type)

Plus individual columns for each person type (Adults, Children, Seniors, etc.)

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 booking fields. Check the ones you need
  7. Save and test on a booking order

What your export looks like

OrderProductBooking Start DateBooking Start TimeBooking ResourceAdultsChildrenTotal Persons
#1001Surf Lesson2026-07-1510:00 AMNorth Beach213
#1002Kayak Rental2026-07-162:00 PMSouth Dock101

When you need this

You rent equipment by the hour. Need start and end times.

You run a tour company. Need person counts per booking type.

You manage multiple locations. Need resource (which room, guide, or vehicle).

Your staff needs daily schedules. Export by date. See who’s coming.

Person types explained

If you sell “Fishing Trip” with person types:

  • Adults ($50)
  • Children ($25)
  • Seniors ($40)

The code creates three columns:

Booking Persons – AdultsBooking Persons – ChildrenBooking Persons – Seniors
210

Each person type has its own column. No parsing needed.

Common mistake

The code expects the official WooCommerce Bookings plugin (from WooCommerce.com). Not third-party booking plugins.

Booking IDs must exist. Bookings are created after payment. Test with a completed booking order.

Empty columns?

Check that:

  • WooCommerce Bookings is active
  • The order has completed bookings (not just products in cart)
  • You selected booking fields in Setup Fields

Pro tip

Need to filter by booking date? Combine with the Appointment Date Filter code (similar structure). Replace _appointment_start with booking start logic.

Want resource names as separate columns? The booking_resource field gives you one column. Works for most cases.

Real talk

WooCommerce Bookings stores booking data as custom post types (wc_booking). Each links to an order item via meta key _booking_order_item_id.

This code finds that link. Loads the full booking object. Pulls every field you need.

Your operations team gets clean schedules. No more clicking into each order to find booking times. One export. Everything they need.

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