Advanced Order Export for WooCommerce

Common Information about Compatibility Codes

No single export plugin can anticipate every possible combination of third‑party plugins. However, I’ve worked to make Advanced Order Export as extensible as possible. The “Codes for Plugins”section provides ready‑to‑use PHP code snippets that enable the plugin to recognise and export data from other popular WordPress and WooCommerce extensions.

When you use one of these snippets, you gain the ability to include data from your other plugins directly in your order exports – without manual data entry or custom development.

Please, insert the hooks using Code Snippets plugin and add a new snippet for every hook. Otherwise, create a child theme and insert the code to  functions.php of this theme.

Click the plugin name and use the compatibility code:

How to Use the Provided Code

All code snippets in this section follow the same implementation pattern. Here is your step‑by‑step guide:

Step 1: Copy the Relevant Code

Navigate to the documentation page for your specific plugin. Each page contains a complete PHP code block ready for use.

Step 2: Add the Code via Code Snippets (Recommended)

I strongly recommend using the free Code Snippets plugin for managing custom PHP code. Here is why:

Benefit

Explanation

Safe activation

Code runs only when explicitly activated – no risk of breaking your site immediately.

Easy toggling

Enable or disable any snippet with a single click.

Error prevention

Snippets with syntax errors are automatically deactivated.

Export/import

Transfer snippets between development and production sites easily.

Organisation

Add titles, descriptions, and tags to keep track of your customisations.

If you prefer not to use Code Snippets, you can add the code to your active child theme’sfunctions.php file. I strongly advise against editing your parent theme’s functions.php directly, as your customisations will be lost when the theme is updated.

Step 3: Add a New Snippet

  1. In your WordPress admin, navigate to Snippets → Add New.
  2. Title your snippet (e.g., “Dokan Vendor Export”).
  3. Paste the PHP code into the Code textarea.
  4. In the “Run snippet” section (Code Snippets Pro – or “Where to Execute” in the free version), select “Run everywhere”.
  5. Set the Priority to 10 unless otherwise specified.
  6. Click “Save Changes and Activate”.

Note for Pro users with scheduled exports: The “Run everywhere” setting is essential. Scheduled exports run in the WordPress cron environment. If your snippet runs only on the front end or admin area, it will not execute during scheduled exports, and your vendor fields will remain empty.

Step 4: Configure Your Export Profile

After activating the snippet:

  1. Navigate to WooCommerce → Advanced Order Export.
  2. Open the export profile you want to use with the integration.
  3. In the Setup Fields tab, add the custom column headers that correspond to the data provided by the snippet. For example, for the Dokan integration, you would add columns like dokan_store_namedokan_phone, and dokan_address_city.
  4. Save your export profile and run a test export to verify that the data appears correctly.

Important Considerations

Consideration

Details

One snippet per hook

Each code sample is designed to be added as a separate snippet. Do not combine multiple samples into a single snippet unless explicitly instructed.

Testing is essential

Always test new snippets with the “Preview” button before relying on them in production.

Keep snippets minimal

The Code Snippets plugin executes every active snippet on every page load. Deactivate snippets you are not actively using to maintain site performance.

Updates and compatibility

When you update the plugin, your snippets remain intact – they are stored in your WordPress database, not in the plugin’s files.

Support for custom code

While I provide these snippets to help you integrate with other plugins, our support team cannot write or debug custom code beyond the provided examples.

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