Advanced Order Export for WooCommerce

WooCommerce Checkout Add-ons

Selling add-ons at checkout? Gift wrapping, donation options, or custom messages?

Standard exports show the fee amount. Not what the customer actually selected.

Here’s how to export the add-on values themselves.

What this code does

Exports checkout add-on selections as separate columns.

Example: You offer “Student Name”, “Student Grade Level”, and “Teacher Name” fields during checkout. Each becomes its own column.

The complete code

Setup steps

  1. Edit the fields array to match your actual checkout add-ons:

Use the exact names from your checkout add-ons.

  1. Copy the code into your theme’s functions.php
  2. Go to Advanced Order Export for WooCommerce
  3. Create or edit an export profile
  4. Open Setup Fields → Others
  5. You’ll see your add-on fields. Check the ones you need
  6. Save and test on an order with checkout add-ons

What your export looks like

Order #Order TotalStudent NameStudent Grade LevelTeacher Name
1001$150.00Sarah Johnson5th GradeMs. Davis
1002$89.00Mike Chen3rd GradeMr. Wilson

Each add-on field has its own column.

Real examples

Gift store:

Restaurant ordering:

php

var $fields = array('Special Instructions', 'Allergy Notes', 'Pickup Time');

Event registration:

When you need this

You sell personalized products. Need customer input in your export.

You run a restaurant. Need special instructions and allergy notes.

Your team fulfills orders manually. Need all add-on details in one place.

How it works

Checkout Add-ons stores customer selections as fee items. Each add-on becomes a fee line.

The code finds those fees. Matches them by name. Pulls the value from _wc_checkout_add_on_value meta. Puts each into its own column.

Common mistake

Field names must match exactly. “Student Name” won’t match “student name” or “StudentName”.

Check your checkout page. Copy the exact label text. Paste into the $fields array.

Empty columns?

Three things to check:

  1. Did the customer actually fill out that add-on?
  2. Does the add-on name match exactly?
  3. Is the Checkout Add-ons plugin active?

Multiple values for one add-on

Some add-ons allow multiple selections (checkboxes). The code joins them with commas.

Example: “Red, Blue, Green” in one cell.

Pro tip

Add more fields as needed. Just add new names to the $fields array.

No other changes needed. The code handles any number of fields.

Real talk

Checkout Add-ons stores data differently than regular order meta. This code digs into fee items where the data lives.

Your fulfillment team gets clear instructions. No more “what did the customer write in that box?” Guesswork eliminated.

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