Exporting WooCommerce orders is common for store owners looking to analyze their sales data, manage inventory, or fulfill orders efficiently. While WooCommerce out-of-the-box provides basic CSV export, it often falls short of meeting the complex requirements of advanced users. This is where third-party plugins come into play, offering advanced features and customizable options to suit different business needs.
In this guide, we’ll show you how to use the advanced features of WP All Export to create detailed order exports.
The advanced features include applying filters so that you only get the data you need, customizing columns to give you a ready-to-use order export file, or creating an XML order data file with a custom structure.
If you’re new to exporting orders or need a refresher, check out our beginner’s guide to WooCommerce order exports. Once you’re comfortable with the basics, let’s explore the advanced features.
Efficient data management often requires filtering and exporting specific subsets of information. WP All Export offers advanced filtering options that allow you to tailor your WooCommerce order exports to meet specific requirements.
This section will guide you through the different ways you can apply advanced filters to your order exports, ensuring you get exactly the data you need.
A nestable filter is a powerful feature that allows you to combine multiple conditions using logical operators like AND and OR. This helps you create complex filter rules that can precisely target the data you’re interested in.
Let’s say you’re running a promotion and want to analyze orders within a specific price range and that are pending. Let’s now look at how to apply filtering in this example.
Start by navigating to the filter panel in the New Export screen of the WP All Export and begin adding basic filter rules. You can set two rules to select orders with a total amount between $25 and $50. Add another rule to include orders with a “wc-pending” status. You can combine all these rules using the AND logic.
Let’s say you want to apply an even more advanced filter wherein you want to combine two rules:
Here’s how we would write this by hand:
Order Total >= 25 AND Order Total <= 50 OR (Order Status = “wc-pending AND Order Total > 50)
How do we represent this pair of brackets in the interface? We simply drag the last Order Total filter rule inside the Order Status filter rule.
This nested filtering allows you to include orders that either fall within a specific price range or have a pending status with a total exceeding $50. Such precise filtering ensures that you export only the orders that meet your exact requirements.
When dealing with recurring tasks, such as monthly reports or quarterly audits, specifying exact dates can be cumbersome and prone to error. Relative date filters offer a dynamic way to handle such requirements by allowing you to set time-based conditions relative to the current date.
In the filter panel on the New Export screen, instead of setting a fixed date, specify a relative date. For example, you can set a filter to include orders with an “Order Date” newer than two years ago.
Or you can apply a filter to return orders that are placed “last month.”
These relative date filters are particularly useful for scheduled exports. It ensures that the data remains current without manually updating the date parameters each time the export is run.
One of the most powerful features of WP All Export is its ability to customize the columns in your order export files. This flexibility reduces the need for post-export data manipulation and makes your data more organized and easier to work with.
WP All Export lets you combine multiple data points into a single column, create custom columns using PHP, or rename and reorder columns, all from within the plugin. In this section, we’ll explore how to customize your order export columns in detail.
Oftentimes, you might find it useful to combine multiple fields into a single column to streamline your data analysis. For instance, combining the customer’s first and last names into a single “Full Name” column can save you from having to manually merge these fields later.
Here’s how you can achieve this using the WP All Export plugin:
For more advanced customization, WP All Export allows you to use PHP to create custom columns. This feature is particularly useful when you need to apply complex logic to your data.
For example, let’s say that you’re exporting order data and want to assign a shipping method based on the weight of the order. Here’s how you can achieve this using PHP:
function output_shipping($weight){
if($weight <= 10) {
return "USPS";
} else if ($weight > 10 && $weight < 30) {
return "DHL";
} else if ($weight >= 30) {
return "Knight-Swift Freight";
}
}
To learn more about using PHP during an export, refer to our dedicated documentation article.
Customizing your order export isn’t just about creating new columns. It is also about organizing your data in a way that makes sense for your workflow. WP All Export makes it easy to rename and reorder columns using the same drag-and-drop interface.
Here’s how you can do it using WP All Export:
That’s all! The above customization saves you from post-export customization and gives you organized data to work with.
The XML format is a popular format among businesses that need to share order data with other systems and platforms. Unlike, CSV and Excel format, XML feeds provide a structured and hierarchical format.
WP All Export offers robust features for creating both simple and custom XML feeds for WooCommerce order export.
In this section, we’ll guide you through the process of setting up both simple and custom XML feeds in detail.
Creating a simple XML feed with WP All Export is straightforward and can be done with just a few clicks. This option is ideal for users who need a quick and easy way to export their order in XML format without extensive customization.
Here’s how to export WooCommerce order data in simple XML format:
Here’s how the Simple XML will look when downloaded.
<?xml version="1.0" encoding="UTF-8"?>
<data>
<post>
<OrderID>223</OrderID>
<OrderKey>wc_order_5e7596fb60908</OrderKey>
<Title>Order - March 21, 2020 @ 04:24 AM</Title>
</post>
<post>
<OrderID>224</OrderID>
<OrderKey>wc_order_5e7596fbcaa06</OrderKey>
<Title>Order - March 21, 2020 @ 04:24 AM</Title>
</post>
<post>
<OrderID>225</OrderID>
<OrderKey>wc_order_5e7596fc3c740</OrderKey>
<Title>Order - March 21, 2020 @ 04:24 AM</Title>
</post>
</data>
For users who need more control over the structure and content of their XML feeds, WP All Export offers a Custom XML feed option. This option allows you to design a fully customized XML schema to meet specific integration requirements.
Here’s how to customize the XML feed using the Advanced XML:
<?xml version="1.0" encoding="UTF-8"?>
<data>
<!-- BEGIN LOOP -->
<order id="{Order ID}">
<BillingFirstName>{Billing First Name}</BillingFirstName>
<BillingLastName>{Billing Last Name}</BillingLastName>
<Weight>{Weight}</Weight>
</order>
<!-- END LOOP -->
</data>
<?xml version="1.0" encoding="UTF-8"?>
<data>
<!-- BEGIN LOOP -->
<order id="{Order ID}">
<FirstName>{Billing First Name}</FirstName>
<LastName>{Billing Last Name}</LastName>
<Weight quantity="{Quantity}">{Weight}</Weight>
</order>
<!-- END LOOP -->
</data>
<?xml version="1.0" encoding="UTF-8"?>
<data>
<order id="223">
<FirstName>Abdel</FirstName>
<LastName>Wolfendale</LastName>
<Weight quantity="5"/>
</order>
<order id="224">
<FirstName>Elonore</FirstName>
<LastName>Goreisr</LastName>
<Weight quantity="12"/>
</order>
<order id="225">
<FirstName>Mike</FirstName>
<LastName>Jones</LastName>
<Weight quantity="6"/>
</order>
</data>
That’s it! The flexibility of the Custom XML feed doesn’t stop here. WP All Export lets you create any kind of custom XML feed that you want.
Handling a large volume of data can be a daunting task, especially when it comes to exporting orders from a busy WooCommerce store. Large order exports can strain server resources leading to timeouts and file size limitations.
Fortunately, WP All Export can manage and export large data sets without breaking a sweat. Here are some of the options available in WP All Export that let you optimize for large-volume order exports.
One of the main challenges of exporting large datasets is server timeout. Servers typically impose a limit on how long a process can run. If a process exceeds this time limit, it is said to “time out”, meaning it will fail. WP All Export lets you solve this issue by breaking the export process into manageable batches.
Here’s how you can control the batch size in WP All Export:
Another common issue with large exports is exceeding file size limits. Servers often have restrictions on the maximum file size to prevent disk space from running out.
WP All Export solves this by allowing you to split your exports into multiple files, each containing a specified number of records.
In the same Export Settings screen under the Advanced Options, set the maximum number of records per file. For example, if your server has a file size limit of 100MB, and your export exceeds this limit, you can set the maximum record count to 1,000. This will generate multiple files, each containing up to 1,000 records.
In addition to the above-discussed features, WP All Export includes some more advanced features. These include:
You can easily export all WooCommerce orders using the WP All Export plugin. Follow these four simple steps:
WP All Export includes a feature to filter orders by date and export only those orders that are needed. Just follow these simple steps:
You can efficiently migrate orders from one WooCommerce site to another using the combination of WP All Export and WP All Import plugins.
WP All Export supports exporting multiple WordPress and WooCommerce data types, including WooCommerce Products. Follow these four simple steps to export all product data: