{"id":4620603,"date":"2021-09-16T07:33:39","date_gmt":"2021-09-16T07:33:39","guid":{"rendered":"https:\/\/www.wpallimport.com\/?p=4620603"},"modified":"2024-05-15T23:40:30","modified_gmt":"2024-05-15T23:40:30","slug":"advanced-order-export-for-woocommerce","status":"publish","type":"post","link":"https:\/\/www.wpallimport.com\/advanced-order-export-for-woocommerce\/","title":{"rendered":"How to Create Advanced Order Export for WooCommerce"},"content":{"rendered":"\n<p>Are you looking to create advanced order exports for WooCommerce?<\/p>\n\n\n\n<p>By default, WooCommerce allows you to export order data in CSV format. However, this basic export may not include all the information you need. This is where third-party plugins come into play. They enable you to create order exports with detailed data and offer advanced features such as:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Combining multiple data points into a single column or presenting multi-value fields in separate columns.<\/li>\n\n\n\n<li><a href=\"#custom-export-columns\">Manipulating and creating custom column data using PHP<\/a>.<\/li>\n\n\n\n<li><a href=\"#xml-feeds\">Manually creating your XML structure<\/a>.<\/li>\n\n\n\n<li><a href=\"#powerful-filter\">Using nested filter options to export precise order data<\/a>.<\/li>\n\n\n\n<li><a href=\"#large-exports\">Exporting large volumes of orders without slowing down your website<\/a>.<\/li>\n<\/ul>\n\n\n\n<p>In this article, we will use the <a href=\"https:\/\/www.wpallimport.com\/export-woocommerce-orders\/\" target=\"_blank\" rel=\"noreferrer noopener\">WP All Export<\/a> plugin for our order export examples. To follow along, use <a href=\"https:\/\/www.wpallimport.com\/try\" target=\"_blank\" rel=\"noreferrer noopener\">our convenient sandbox feature<\/a> and select WooCommerce Store as the demo type.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">How to Create Advanced Order Export for WooCommerce<\/h2>\n\n\n\n<p>This article explains the advanced order export capabilities of the WP All Export plugin for WooCommerce. If you're interested in the general process of exporting orders, you can learn more in our article on <a href=\"https:\/\/www.wpallimport.com\/woocommerce-export-orders-csv\/\" target=\"_blank\" rel=\"noreferrer noopener\">WooCommerce export orders<\/a>.<\/p>\n\n\n\n<p>Once you're familiar with the basics, let's explore the advanced order export options.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"custom-export-columns\">1. Create Custom Order Export Columns Using PHP<\/h2>\n\n\n\n<p>WP All Export includes a feature that lets you create custom columns by combining two fields such as merging a customer's first and last names into a single column. This saves you from having to manually edit the file later on.\u00a0<\/p>\n\n\n\n<p>To combine column data, follow these steps:<\/p>\n\n\n\n<p>In the Drag &amp; Drop interface, click the <strong>Add Field<\/strong> button.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/www.wpallimport.com\/wp-content\/uploads\/2021\/09\/Advanced-Order-Export-Add-Field.jpg\" data-rel=\"lightbox-image-0\" data-rl_title=\"\" data-rl_caption=\"\" title=\"\"><img decoding=\"async\" width=\"850\" height=\"534\" src=\"https:\/\/www.wpallimport.com\/wp-content\/uploads\/2021\/09\/Advanced-Order-Export-Add-Field.jpg\" alt=\"Advanced Order Export Drag and Drop\" class=\"wp-image-4623350\" srcset=\"https:\/\/www.wpallimport.com\/wp-content\/uploads\/2021\/09\/Advanced-Order-Export-Add-Field.jpg 850w, https:\/\/www.wpallimport.com\/wp-content\/uploads\/2021\/09\/Advanced-Order-Export-Add-Field-300x188.jpg 300w, https:\/\/www.wpallimport.com\/wp-content\/uploads\/2021\/09\/Advanced-Order-Export-Add-Field-768x482.jpg 768w\" sizes=\"(max-width: 850px) 100vw, 850px\" \/><\/a><\/figure>\n\n\n\n<p>This opens a form that allows you to create a new order export field using these steps:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Select the <strong>Custom export field<\/strong> option.<\/li>\n\n\n\n<li>In the text box below this option, drag and drop the \u201cBilling First Name\u201d and \u201cBilling Last Name\u201d fields from Available Data <strong>\u203a <\/strong>Customer. Put a space between them.<\/li>\n\n\n\n<li>In the Column name box at the top, enter \u201cName\u201d.<\/li>\n<\/ol>\n\n\n\n<p>Your form should look like this.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/www.wpallimport.com\/wp-content\/uploads\/2021\/09\/Advanced-Order-Export-for-WooCommerce-Custom-Field.jpg\" data-rel=\"lightbox-image-1\" data-rl_title=\"\" data-rl_caption=\"\" title=\"\"><img decoding=\"async\" width=\"850\" height=\"784\" src=\"https:\/\/www.wpallimport.com\/wp-content\/uploads\/2021\/09\/Advanced-Order-Export-for-WooCommerce-Custom-Field.jpg\" alt=\"WooCommerce Order Export Add Field\" class=\"wp-image-4623339\" srcset=\"https:\/\/www.wpallimport.com\/wp-content\/uploads\/2021\/09\/Advanced-Order-Export-for-WooCommerce-Custom-Field.jpg 850w, https:\/\/www.wpallimport.com\/wp-content\/uploads\/2021\/09\/Advanced-Order-Export-for-WooCommerce-Custom-Field-300x277.jpg 300w, https:\/\/www.wpallimport.com\/wp-content\/uploads\/2021\/09\/Advanced-Order-Export-for-WooCommerce-Custom-Field-768x708.jpg 768w\" sizes=\"(max-width: 850px) 100vw, 850px\" \/><\/a><\/figure>\n\n\n\n<p>If you click the green <strong>Preview<\/strong> button on the bottom, you will see that the Name field does indeed combine the first and last names. However, sometimes you need more advanced capabilities.<\/p>\n\n\n\n<p>Dismiss the preview (if open), then click the blue <strong>Save<\/strong> button on the bottom right.<\/p>\n\n\n\n<p>Let\u2019s say that you want to add a shipping method to your orders based on their weight. If the weight is less than 10lbs, the order should be sent using 'USPS'. If the weight is between 10-30lbs, 'DHL' should be used. Finally, if the weight is more than 30lbs, then 'Knight-Swift Freight' will be used.&nbsp;<\/p>\n\n\n\n<p>Here's how you'll achieve this using the WP All Export plugin:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Click the <strong>Add Field<\/strong> button to re-open the Add Field to Export form.<\/li>\n\n\n\n<li>Select the <strong>Custom export field<\/strong> option.<\/li>\n\n\n\n<li>In the text box below this option, enter \u201c[output_shipping({Weight})]\u201d without the quotes. This is known as a function call. Note the reference to the field inside the curly brackets.<\/li>\n\n\n\n<li>In the Function Editor, enter the following PHP function:<\/li>\n<\/ol>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre class=\"CodeMirror\" data-setting=\"{&quot;showPanel&quot;:false,&quot;languageLabel&quot;:false,&quot;fullScreenButton&quot;:false,&quot;copyButton&quot;:false,&quot;mode&quot;:&quot;php&quot;,&quot;mime&quot;:&quot;text\/x-php&quot;,&quot;theme&quot;:&quot;default&quot;,&quot;lineNumbers&quot;:false,&quot;styleActiveLine&quot;:false,&quot;lineWrapping&quot;:false,&quot;readOnly&quot;:true,&quot;fileName&quot;:&quot;&quot;,&quot;language&quot;:&quot;PHP&quot;,&quot;maxHeight&quot;:&quot;400px&quot;,&quot;modeName&quot;:&quot;php&quot;}\">function output_shipping($weight){\n\tif($weight &lt;= 10) {\n\t\treturn &quot;USPS&quot;;\n\t} else if ($weight &gt; 10 &amp;&amp; $weight &lt; 30) {\n\t\treturn &quot;DHL&quot;;\n\t} else if ($weight &gt;= 30) {\n\t\treturn &quot;Knight-Swift Freight&quot;;\n\t}\n}\n<\/pre><\/div>\n\n\n\n<ol class=\"wp-block-list\" start=\"5\">\n<li>Click the <strong>Save Functions<\/strong> button near the bottom of the form.<\/li>\n\n\n\n<li>Enter \u201cShipping Method\u201d in the Column name box near the top of the form.<\/li>\n<\/ol>\n\n\n\n<p>The form should appear as follows.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/www.wpallimport.com\/wp-content\/uploads\/2021\/09\/Advanced-Order-Export-for-WooCommerce-Custom-PHP-Field.jpg\" data-rel=\"lightbox-image-2\" data-rl_title=\"\" data-rl_caption=\"\" title=\"\"><img decoding=\"async\" width=\"850\" height=\"779\" src=\"https:\/\/www.wpallimport.com\/wp-content\/uploads\/2021\/09\/Advanced-Order-Export-for-WooCommerce-Custom-PHP-Field.jpg\" alt=\"WooCommerce Advanced Order Export Field\" class=\"wp-image-4623343\" srcset=\"https:\/\/www.wpallimport.com\/wp-content\/uploads\/2021\/09\/Advanced-Order-Export-for-WooCommerce-Custom-PHP-Field.jpg 850w, https:\/\/www.wpallimport.com\/wp-content\/uploads\/2021\/09\/Advanced-Order-Export-for-WooCommerce-Custom-PHP-Field-300x275.jpg 300w, https:\/\/www.wpallimport.com\/wp-content\/uploads\/2021\/09\/Advanced-Order-Export-for-WooCommerce-Custom-PHP-Field-768x704.jpg 768w\" sizes=\"(max-width: 850px) 100vw, 850px\" \/><\/a><\/figure>\n\n\n\n<p>Click the <strong>Save<\/strong> button to save the field and close the form.<\/p>\n\n\n\n<p>Back in the Drag &amp; Drop interface, drag the Items -&gt; Advanced -&gt; Weight field from the Available Data panel into the column selection area, then click the <strong>Preview<\/strong> button.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/www.wpallimport.com\/wp-content\/uploads\/2021\/09\/Advanced-Order-Export-for-WooCommerce-Custom-PHP-Field-Preview.jpg\" data-rel=\"lightbox-image-3\" data-rl_title=\"\" data-rl_caption=\"\" title=\"\"><img decoding=\"async\" width=\"850\" height=\"540\" src=\"https:\/\/www.wpallimport.com\/wp-content\/uploads\/2021\/09\/Advanced-Order-Export-for-WooCommerce-Custom-PHP-Field-Preview.jpg\" alt=\"Order Export Drag &amp; Drop Preview\" class=\"wp-image-4623348\" srcset=\"https:\/\/www.wpallimport.com\/wp-content\/uploads\/2021\/09\/Advanced-Order-Export-for-WooCommerce-Custom-PHP-Field-Preview.jpg 850w, https:\/\/www.wpallimport.com\/wp-content\/uploads\/2021\/09\/Advanced-Order-Export-for-WooCommerce-Custom-PHP-Field-Preview-300x191.jpg 300w, https:\/\/www.wpallimport.com\/wp-content\/uploads\/2021\/09\/Advanced-Order-Export-for-WooCommerce-Custom-PHP-Field-Preview-768x488.jpg 768w\" sizes=\"(max-width: 850px) 100vw, 850px\" \/><\/a><\/figure>\n\n\n\n<p>As you can see in the Shipping Method column, the output_shipping function appears to be working correctly.<\/p>\n\n\n\n<p>For more information on <a href=\"https:\/\/www.wpallimport.com\/documentation\/custom-wordpress-export-php\/\" target=\"_blank\" rel=\"noreferrer noopener\">using PHP during an export,<\/a> refer to our dedicated documentation article. We also have another article that walks you through creating <a href=\"https:\/\/www.wpallimport.com\/documentation\/custom-export-fields\/\" target=\"_blank\" rel=\"noreferrer noopener\">custom export fields<\/a>.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"xml-feeds\">2. XML Feeds for WooCommerce Order Exports<\/h2>\n\n\n\n<p>WP All Export allows you to export WooCommerce orders in both simple and custom XML formats. While many other third-party plugins offer XML export options, they often just present a CSV file in XML format.<\/p>\n\n\n\n<p>What truly sets WP All Export apart is its Custom XML feature. This enables you to create custom XML feeds, nest elements as deeply as needed, add elements outside of the main looping post element, create custom loops with PHP functions, and more.<\/p>\n\n\n\n<p>Let's take a closer look at both XML feed options in detail.<\/p>\n\n\n\n<h3 class=\"wp-block-heading ignore-toc\" id=\"simple-order-export-feeds\">Simple Order Export XML Feeds<\/h3>\n\n\n\n<p>Creating a simple XML export is just as easy as generating a CSV or Excel export file. In the Export Type panel of the Drag &amp; Drop interface, choose <strong>Feed<\/strong> instead of <strong>Spreadsheet<\/strong>, and then just specify <strong>Simple XML Feed<\/strong>, as shown here.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/www.wpallimport.com\/wp-content\/uploads\/2021\/09\/Advanced-Order-Export-for-WooCommerce-Simple-XML-Feed-Post-Type-1.jpg\" data-rel=\"lightbox-image-4\" data-rl_title=\"\" data-rl_caption=\"\" title=\"\"><img decoding=\"async\" width=\"850\" height=\"332\" src=\"https:\/\/www.wpallimport.com\/wp-content\/uploads\/2021\/09\/Advanced-Order-Export-for-WooCommerce-Simple-XML-Feed-Post-Type-1.jpg\" alt=\"WooCommerce Advanced Order Export Type\" class=\"wp-image-4623364\" srcset=\"https:\/\/www.wpallimport.com\/wp-content\/uploads\/2021\/09\/Advanced-Order-Export-for-WooCommerce-Simple-XML-Feed-Post-Type-1.jpg 850w, https:\/\/www.wpallimport.com\/wp-content\/uploads\/2021\/09\/Advanced-Order-Export-for-WooCommerce-Simple-XML-Feed-Post-Type-1-300x117.jpg 300w, https:\/\/www.wpallimport.com\/wp-content\/uploads\/2021\/09\/Advanced-Order-Export-for-WooCommerce-Simple-XML-Feed-Post-Type-1-768x300.jpg 768w\" sizes=\"(max-width: 850px) 100vw, 850px\" \/><\/a><\/figure>\n\n\n\n<p>If you proceed to export the orders, the resulting export file will contain the default XML structure. For example, here is the output for three orders containing the three columns of OrderID, OrderKey, and Title.<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre class=\"CodeMirror\" data-setting=\"{&quot;showPanel&quot;:false,&quot;languageLabel&quot;:false,&quot;fullScreenButton&quot;:false,&quot;copyButton&quot;:false,&quot;mode&quot;:&quot;xml&quot;,&quot;mime&quot;:&quot;application\/xml&quot;,&quot;theme&quot;:&quot;default&quot;,&quot;lineNumbers&quot;:false,&quot;styleActiveLine&quot;:false,&quot;lineWrapping&quot;:false,&quot;readOnly&quot;:true,&quot;fileName&quot;:&quot;&quot;,&quot;language&quot;:&quot;XML&quot;,&quot;maxHeight&quot;:&quot;400px&quot;,&quot;modeName&quot;:&quot;xml&quot;}\">&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;\n&lt;data&gt;\n  &lt;post&gt;\n    &lt;OrderID&gt;223&lt;\/OrderID&gt;\n    &lt;OrderKey&gt;wc_order_5e7596fb60908&lt;\/OrderKey&gt;\n    &lt;Title&gt;Order - March 21, 2020 @ 04:24 AM&lt;\/Title&gt;\n  &lt;\/post&gt;\n  &lt;post&gt;\n    &lt;OrderID&gt;224&lt;\/OrderID&gt;\n    &lt;OrderKey&gt;wc_order_5e7596fbcaa06&lt;\/OrderKey&gt;\n    &lt;Title&gt;Order - March 21, 2020 @ 04:24 AM&lt;\/Title&gt;\n  &lt;\/post&gt;\n  &lt;post&gt;\n    &lt;OrderID&gt;225&lt;\/OrderID&gt;\n    &lt;OrderKey&gt;wc_order_5e7596fc3c740&lt;\/OrderKey&gt;\n    &lt;Title&gt;Order - March 21, 2020 @ 04:24 AM&lt;\/Title&gt;\n  &lt;\/post&gt;\n&lt;\/data&gt;<\/pre><\/div>\n\n\n\n<p>If one of the fields you are exporting has multiple elements in the same field, those elements will be separated by a pipe delimiter (I). For example, here is what an image field looks like when it contains multiple images:<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/www.wpallimport.com\/wp-content\/uploads\/2021\/09\/Advanced-Order-Export-for-WooCommerce-XML-Image.jpg\" data-rel=\"lightbox-image-5\" data-rl_title=\"\" data-rl_caption=\"\" title=\"\"><img decoding=\"async\" width=\"850\" height=\"241\" src=\"https:\/\/www.wpallimport.com\/wp-content\/uploads\/2021\/09\/Advanced-Order-Export-for-WooCommerce-XML-Image.jpg\" alt=\"XML imageURL\" class=\"wp-image-4623370\" srcset=\"https:\/\/www.wpallimport.com\/wp-content\/uploads\/2021\/09\/Advanced-Order-Export-for-WooCommerce-XML-Image.jpg 850w, https:\/\/www.wpallimport.com\/wp-content\/uploads\/2021\/09\/Advanced-Order-Export-for-WooCommerce-XML-Image-300x85.jpg 300w, https:\/\/www.wpallimport.com\/wp-content\/uploads\/2021\/09\/Advanced-Order-Export-for-WooCommerce-XML-Image-768x218.jpg 768w\" sizes=\"(max-width: 850px) 100vw, 850px\" \/><\/a><\/figure>\n\n\n\n<p>You have only a few options to change the output of a simple feed. The main way to do this is simply to add, delete, rename, and\/or reorder the columns in the column selection editor, just as you would for a CSV or Excel export. When you do this, the resulting feed structure will change to match your column selection.<\/p>\n\n\n\n<h3 class=\"wp-block-heading ignore-toc\" id=\"advanced-xml-feeds\">Advanced Custom XML Feeds for Order Exports<\/h3>\n\n\n\n<p>To gain complete control over your XML output for order exports, start by choosing <strong>Custom XML Feed<\/strong> as the Feed type.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/www.wpallimport.com\/wp-content\/uploads\/2021\/09\/Advanced-Order-Export-for-WooCommerce-Custom-XML-Feed-Post-Type.jpg\" data-rel=\"lightbox-image-6\" data-rl_title=\"\" data-rl_caption=\"\" title=\"\"><img decoding=\"async\" width=\"850\" height=\"319\" src=\"https:\/\/www.wpallimport.com\/wp-content\/uploads\/2021\/09\/Advanced-Order-Export-for-WooCommerce-Custom-XML-Feed-Post-Type.jpg\" alt=\"Order Export Custom XML Feed\" class=\"wp-image-4623380\" srcset=\"https:\/\/www.wpallimport.com\/wp-content\/uploads\/2021\/09\/Advanced-Order-Export-for-WooCommerce-Custom-XML-Feed-Post-Type.jpg 850w, https:\/\/www.wpallimport.com\/wp-content\/uploads\/2021\/09\/Advanced-Order-Export-for-WooCommerce-Custom-XML-Feed-Post-Type-300x113.jpg 300w, https:\/\/www.wpallimport.com\/wp-content\/uploads\/2021\/09\/Advanced-Order-Export-for-WooCommerce-Custom-XML-Feed-Post-Type-768x288.jpg 768w\" sizes=\"(max-width: 850px) 100vw, 850px\" \/><\/a><\/figure>\n\n\n\n<p>WP All Export responds by opening its XML Editor.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/www.wpallimport.com\/wp-content\/uploads\/2021\/09\/Advanced-Order-Export-for-WooCommerce-XML-Editor.jpg\" data-rel=\"lightbox-image-7\" data-rl_title=\"\" data-rl_caption=\"\" title=\"\"><img decoding=\"async\" width=\"850\" height=\"506\" src=\"https:\/\/www.wpallimport.com\/wp-content\/uploads\/2021\/09\/Advanced-Order-Export-for-WooCommerce-XML-Editor.jpg\" alt=\"Advanced Order Export XML Editor\" class=\"wp-image-4623382\" srcset=\"https:\/\/www.wpallimport.com\/wp-content\/uploads\/2021\/09\/Advanced-Order-Export-for-WooCommerce-XML-Editor.jpg 850w, https:\/\/www.wpallimport.com\/wp-content\/uploads\/2021\/09\/Advanced-Order-Export-for-WooCommerce-XML-Editor-300x179.jpg 300w, https:\/\/www.wpallimport.com\/wp-content\/uploads\/2021\/09\/Advanced-Order-Export-for-WooCommerce-XML-Editor-768x457.jpg 768w\" sizes=\"(max-width: 850px) 100vw, 850px\" \/><\/a><\/figure>\n\n\n\n<p>This editor allows you to manually create your XML structure. You typically start this process by dragging fields from the Available Data panel between the &lt;!-- BEGIN LOOP --&gt; and &lt;!-- END LOOP --&gt; comments, which mark the beginning and end of the loop that will process all the orders that match your filters.<\/p>\n\n\n\n<p>The &lt;post&gt; and &lt;\/post&gt; elements are the default way to mark the start and end of each record, but you don\u2019t have to use them. For example, in the screenshot below, we have changed these record elements to &lt;order&gt; and &lt;\/order&gt; while including the order ID as an attribute named \u201cid\u201d. Using the Available Data panel, we also dragged over the Billing First Name, Billing Last Name, and Weight fields into the XML Editor:<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre class=\"CodeMirror\" data-setting=\"{&quot;showPanel&quot;:false,&quot;languageLabel&quot;:false,&quot;fullScreenButton&quot;:false,&quot;copyButton&quot;:false,&quot;mode&quot;:&quot;xml&quot;,&quot;mime&quot;:&quot;application\/xml&quot;,&quot;theme&quot;:&quot;default&quot;,&quot;lineNumbers&quot;:false,&quot;styleActiveLine&quot;:false,&quot;lineWrapping&quot;:false,&quot;readOnly&quot;:true,&quot;fileName&quot;:&quot;&quot;,&quot;language&quot;:&quot;XML&quot;,&quot;maxHeight&quot;:&quot;400px&quot;,&quot;modeName&quot;:&quot;xml&quot;}\">&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;\n&lt;data&gt;\n  &lt;!-- BEGIN LOOP --&gt;\n  &lt;order id=&quot;{Order ID}&quot;&gt;\n    &lt;BillingFirstName&gt;{Billing First Name}&lt;\/BillingFirstName&gt;\n    &lt;BillingLastName&gt;{Billing Last Name}&lt;\/BillingLastName&gt;\n    &lt;Weight&gt;{Weight}&lt;\/Weight&gt;\n  &lt;\/order&gt;\n  &lt;!-- END LOOP --&gt;\n&lt;\/data&gt;<\/pre><\/div>\n\n\n\n<p>When we do this, note that WP All Export wraps each field in its own corresponding XML element, i.e. the Billing First Name field is automatically embedded between the &lt;BillingFirstName&gt; and &lt;\/BillingFirstName&gt; tags.&nbsp;<\/p>\n\n\n\n<p>These element names are not set in stone. Just as we changed the record element to &lt;order&gt;, we can also remove the word \u201cBilling\u201d from our name elements.&nbsp;<\/p>\n\n\n\n<p>We can also modify this schema in other ways. For example, by adding the quantity as an attribute to the Weight element in the XML Editor:<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre class=\"CodeMirror\" data-setting=\"{&quot;showPanel&quot;:false,&quot;languageLabel&quot;:false,&quot;fullScreenButton&quot;:false,&quot;copyButton&quot;:false,&quot;mode&quot;:&quot;xml&quot;,&quot;mime&quot;:&quot;application\/xml&quot;,&quot;theme&quot;:&quot;default&quot;,&quot;lineNumbers&quot;:false,&quot;styleActiveLine&quot;:false,&quot;lineWrapping&quot;:false,&quot;readOnly&quot;:true,&quot;fileName&quot;:&quot;&quot;,&quot;language&quot;:&quot;XML&quot;,&quot;maxHeight&quot;:&quot;400px&quot;,&quot;modeName&quot;:&quot;xml&quot;}\">&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;\n&lt;data&gt;\n  &lt;!-- BEGIN LOOP --&gt;\n  &lt;order id=&quot;{Order ID}&quot;&gt;\n    &lt;FirstName&gt;{Billing First Name}&lt;\/FirstName&gt;\n    &lt;LastName&gt;{Billing Last Name}&lt;\/LastName&gt;\n    &lt;Weight quantity=&quot;{Quantity}&quot;&gt;{Weight}&lt;\/Weight&gt;\n  &lt;\/order&gt;\n  &lt;!-- END LOOP --&gt;\n&lt;\/data&gt;<\/pre><\/div>\n\n\n\n<p>This will result in the following XML output:<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre class=\"CodeMirror\" data-setting=\"{&quot;showPanel&quot;:false,&quot;languageLabel&quot;:false,&quot;fullScreenButton&quot;:false,&quot;copyButton&quot;:false,&quot;mode&quot;:&quot;xml&quot;,&quot;mime&quot;:&quot;application\/xml&quot;,&quot;theme&quot;:&quot;default&quot;,&quot;lineNumbers&quot;:false,&quot;styleActiveLine&quot;:false,&quot;lineWrapping&quot;:false,&quot;readOnly&quot;:true,&quot;fileName&quot;:&quot;&quot;,&quot;language&quot;:&quot;XML&quot;,&quot;maxHeight&quot;:&quot;400px&quot;,&quot;modeName&quot;:&quot;xml&quot;}\">&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;\n&lt;data&gt;\n  &lt;order id=&quot;223&quot;&gt;\n    &lt;FirstName&gt;Abdel&lt;\/FirstName&gt;\n    &lt;LastName&gt;Wolfendale&lt;\/LastName&gt;\n    &lt;Weight quantity=&quot;5&quot;\/&gt;\n  &lt;\/order&gt;\n  &lt;order id=&quot;224&quot;&gt;\n    &lt;FirstName&gt;Elonore&lt;\/FirstName&gt;\n    &lt;LastName&gt;Goreisr&lt;\/LastName&gt;\n    &lt;Weight quantity=&quot;12&quot;\/&gt;\n  &lt;\/order&gt;\n  &lt;order id=&quot;225&quot;&gt;\n    &lt;FirstName&gt;Mike&lt;\/FirstName&gt;\n    &lt;LastName&gt;Jones&lt;\/LastName&gt;\n    &lt;Weight quantity=&quot;6&quot;\/&gt;\n  &lt;\/order&gt;\n&lt;\/data&gt;<\/pre><\/div>\n\n\n\n<p>\u2026and so on through the rest of the orders.<\/p>\n\n\n\n<p>Our ability to control a custom order feed doesn\u2019t stop there, either. Remember the output_shipping function that we created in the <a href=\"#custom-export-columns\" target=\"_blank\" rel=\"noreferrer noopener\">Custom Export Columns Using PHP<\/a> section of this article?<\/p>\n\n\n\n<p>We can embed that same function in our custom XML template.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/www.wpallimport.com\/wp-content\/uploads\/2021\/09\/Advanced-Order-Export-for-WooCommerce-XML-Editor-04.jpg\" data-rel=\"lightbox-image-8\" data-rl_title=\"\" data-rl_caption=\"\" title=\"\"><img decoding=\"async\" width=\"700\" height=\"348\" src=\"https:\/\/www.wpallimport.com\/wp-content\/uploads\/2021\/09\/Advanced-Order-Export-for-WooCommerce-XML-Editor-04.jpg\" alt=\"XML Editor\" class=\"wp-image-4623401\" srcset=\"https:\/\/www.wpallimport.com\/wp-content\/uploads\/2021\/09\/Advanced-Order-Export-for-WooCommerce-XML-Editor-04.jpg 700w, https:\/\/www.wpallimport.com\/wp-content\/uploads\/2021\/09\/Advanced-Order-Export-for-WooCommerce-XML-Editor-04-300x149.jpg 300w\" sizes=\"(max-width: 700px) 100vw, 700px\" \/><\/a><\/figure>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre class=\"CodeMirror\" data-setting=\"{&quot;showPanel&quot;:false,&quot;languageLabel&quot;:false,&quot;fullScreenButton&quot;:false,&quot;copyButton&quot;:false,&quot;mode&quot;:&quot;xml&quot;,&quot;mime&quot;:&quot;application\/xml&quot;,&quot;theme&quot;:&quot;default&quot;,&quot;lineNumbers&quot;:false,&quot;styleActiveLine&quot;:false,&quot;lineWrapping&quot;:false,&quot;readOnly&quot;:true,&quot;fileName&quot;:&quot;&quot;,&quot;language&quot;:&quot;XML&quot;,&quot;maxHeight&quot;:&quot;400px&quot;,&quot;modeName&quot;:&quot;xml&quot;}\">&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;\n&lt;data&gt;\n  &lt;!-- BEGIN LOOP --&gt;\n  &lt;order id=&quot;{Order ID}&quot;&gt;\n    &lt;FirstName&gt;{Billing First Name}&lt;\/FirstName&gt;\n    &lt;LastName&gt;{Billing Last Name}&lt;\/LastName&gt;\n    &lt;Weight quantity=&quot;{Quantity}&quot;&gt;{Weight}&lt;\/Weight&gt;\n    &lt;ShippingMethod&gt;[output_shipping({Weight})]&lt;\/ShippingMethod&gt;\n  &lt;\/order&gt;\n  &lt;!-- END LOOP --&gt;\n&lt;\/data&gt;<\/pre><\/div>\n\n\n\n<p>Here is the XML output:<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre class=\"CodeMirror\" data-setting=\"{&quot;showPanel&quot;:false,&quot;languageLabel&quot;:false,&quot;fullScreenButton&quot;:false,&quot;copyButton&quot;:false,&quot;mode&quot;:&quot;xml&quot;,&quot;mime&quot;:&quot;application\/xml&quot;,&quot;theme&quot;:&quot;default&quot;,&quot;lineNumbers&quot;:false,&quot;styleActiveLine&quot;:false,&quot;lineWrapping&quot;:false,&quot;readOnly&quot;:true,&quot;fileName&quot;:&quot;&quot;,&quot;language&quot;:&quot;XML&quot;,&quot;maxHeight&quot;:&quot;400px&quot;,&quot;modeName&quot;:&quot;xml&quot;}\">&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;\n&lt;data&gt;\n  &lt;order id=&quot;223&quot;&gt;\n    &lt;FirstName&gt;Abdel&lt;\/FirstName&gt;\n    &lt;LastName&gt;Wolfendale&lt;\/LastName&gt;\n    &lt;Weight quantity=&quot;5&quot;\/&gt;\n    &lt;ShippingMethod&gt;USPS&lt;\/ShippingMethod&gt;\n  &lt;\/order&gt;\n  &lt;order id=&quot;224&quot;&gt;\n    &lt;FirstName&gt;Elonore&lt;\/FirstName&gt;\n    &lt;LastName&gt;Goreisr&lt;\/LastName&gt;\n    &lt;Weight quantity=&quot;12&quot;\/&gt;\n    &lt;ShippingMethod&gt;FedEx&lt;\/ShippingMethod&gt;\n  &lt;\/order&gt;\n  &lt;order id=&quot;225&quot;&gt;\n    &lt;FirstName&gt;Mike&lt;\/FirstName&gt;\n    &lt;LastName&gt;Jones&lt;\/LastName&gt;\n    &lt;Weight quantity=&quot;6&quot;\/&gt;\n    &lt;ShippingMethod&gt;USPS&lt;\/ShippingMethod&gt;\n  &lt;\/order&gt;\n&lt;\/data&gt;<\/pre><\/div>\n\n\n\n<p>The flexibility doesn\u2019t end there, either. You can edit the XML header to define a specific schema. In fact, you can create any kind of custom XML feed that you want with these features. That\u2019s the power of WP All Export!<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"powerful-filter\">3. Advanced Order Export Filters<\/h2>\n\n\n\n<p>WP All Export also offers advanced filtering options that allow you to select specific orders for export. These advanced options include combining multiple filters to create nested filters, using relative date and time formats in filters, and employing PHP for filtering orders.<\/p>\n\n\n\n<p>Let's now look at these filtering features in detail.<\/p>\n\n\n\n<h3 class=\"wp-block-heading ignore-toc\" id=\"nesting-order-export-filters\">Nesting Order Export Filters<\/h3>\n\n\n\n<p>WP All Export allows you to create filter rules using three components: an element, a rule, and a value. You can also create multiple filters and combine them using AND and OR logic. This means that orders must meet all specified conditions (AND) or any one of the conditions (OR) to pass the filter.<\/p>\n\n\n\n<p>For example, this filter selects orders with an Order Total between $25 and $50 and an Order Status of \u201cwc-pending.\u201d<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/www.wpallimport.com\/wp-content\/uploads\/2021\/09\/Advanced-Order-Export-for-WooCommerce-Nested-Filters.jpg\" data-rel=\"lightbox-image-9\" data-rl_title=\"\" data-rl_caption=\"\" title=\"\"><img decoding=\"async\" width=\"789\" height=\"352\" src=\"https:\/\/www.wpallimport.com\/wp-content\/uploads\/2021\/09\/Advanced-Order-Export-for-WooCommerce-Nested-Filters.jpg\" alt=\"WooCommerce Advanced Order Export Filtering Options\" class=\"wp-image-4623436\" srcset=\"https:\/\/www.wpallimport.com\/wp-content\/uploads\/2021\/09\/Advanced-Order-Export-for-WooCommerce-Nested-Filters.jpg 789w, https:\/\/www.wpallimport.com\/wp-content\/uploads\/2021\/09\/Advanced-Order-Export-for-WooCommerce-Nested-Filters-300x134.jpg 300w, https:\/\/www.wpallimport.com\/wp-content\/uploads\/2021\/09\/Advanced-Order-Export-for-WooCommerce-Nested-Filters-768x343.jpg 768w\" sizes=\"(max-width: 789px) 100vw, 789px\" \/><\/a><\/figure>\n\n\n\n<p>But what if we want a more advanced filter, one that selects orders with an Order Total between $25 and $50, or an Order Status of \u201cwc-pending\u201d and an Order Total &gt; 50?<\/p>\n\n\n\n<p>This is how we would write this by hand:<\/p>\n\n\n\n<p>Order Total &gt;= 25 AND Order Total &lt;= 50 OR (Order Status = \u201cwc-pending AND Order Total &gt; 50)<\/p>\n\n\n\n<p>Note the round brackets after the OR condition.<\/p>\n\n\n\n<p>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.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/www.wpallimport.com\/wp-content\/uploads\/2021\/09\/Advanced-Order-Export-for-WooCommerce-Nested-Filters-02.jpg\" data-rel=\"lightbox-image-10\" data-rl_title=\"\" data-rl_caption=\"\" title=\"\"><img decoding=\"async\" width=\"850\" height=\"371\" src=\"https:\/\/www.wpallimport.com\/wp-content\/uploads\/2021\/09\/Advanced-Order-Export-for-WooCommerce-Nested-Filters-02.jpg\" alt=\"Advanced Order Export for WooCommerce Nested Filters 02\" class=\"wp-image-4623439\" srcset=\"https:\/\/www.wpallimport.com\/wp-content\/uploads\/2021\/09\/Advanced-Order-Export-for-WooCommerce-Nested-Filters-02.jpg 850w, https:\/\/www.wpallimport.com\/wp-content\/uploads\/2021\/09\/Advanced-Order-Export-for-WooCommerce-Nested-Filters-02-300x131.jpg 300w, https:\/\/www.wpallimport.com\/wp-content\/uploads\/2021\/09\/Advanced-Order-Export-for-WooCommerce-Nested-Filters-02-768x335.jpg 768w\" sizes=\"(max-width: 850px) 100vw, 850px\" \/><\/a><\/figure>\n\n\n\n<h3 class=\"wp-block-heading ignore-toc\" id=\"relative-date-filters\">Relative Date Filters for Order Exports<\/h3>\n\n\n\n<p>In many export situations, especially for recurring scheduled exports, we don\u2019t want to have to specify exact date filters because these might have to change each time an export is run.<\/p>\n\n\n\n<p>Instead, we want to specify relative dates. For example, this filter selects only those orders with an Order Date newer than two years ago.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/www.wpallimport.com\/wp-content\/uploads\/2021\/09\/Advanced-Order-Export-for-WooCommerce-Relative-Date-Filters.jpg\" data-rel=\"lightbox-image-11\" data-rl_title=\"\" data-rl_caption=\"\" title=\"\"><img decoding=\"async\" width=\"796\" height=\"238\" src=\"https:\/\/www.wpallimport.com\/wp-content\/uploads\/2021\/09\/Advanced-Order-Export-for-WooCommerce-Relative-Date-Filters.jpg\" alt=\"Advanced Order Export Relative Date Filters\" class=\"wp-image-4623471\" srcset=\"https:\/\/www.wpallimport.com\/wp-content\/uploads\/2021\/09\/Advanced-Order-Export-for-WooCommerce-Relative-Date-Filters.jpg 796w, https:\/\/www.wpallimport.com\/wp-content\/uploads\/2021\/09\/Advanced-Order-Export-for-WooCommerce-Relative-Date-Filters-300x90.jpg 300w, https:\/\/www.wpallimport.com\/wp-content\/uploads\/2021\/09\/Advanced-Order-Export-for-WooCommerce-Relative-Date-Filters-768x230.jpg 768w\" sizes=\"(max-width: 796px) 100vw, 796px\" \/><\/a><\/figure>\n\n\n\n<p>This filter returns orders with an order date that equals last month.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/www.wpallimport.com\/wp-content\/uploads\/2021\/09\/Advanced-Order-Export-for-WooCommerce-Relative-Date-Filters-02.jpg\" data-rel=\"lightbox-image-12\" data-rl_title=\"\" data-rl_caption=\"\" title=\"\"><img decoding=\"async\" width=\"789\" height=\"227\" src=\"https:\/\/www.wpallimport.com\/wp-content\/uploads\/2021\/09\/Advanced-Order-Export-for-WooCommerce-Relative-Date-Filters-02.jpg\" alt=\"Relative Date Filters Version 2\" class=\"wp-image-4623472\" srcset=\"https:\/\/www.wpallimport.com\/wp-content\/uploads\/2021\/09\/Advanced-Order-Export-for-WooCommerce-Relative-Date-Filters-02.jpg 789w, https:\/\/www.wpallimport.com\/wp-content\/uploads\/2021\/09\/Advanced-Order-Export-for-WooCommerce-Relative-Date-Filters-02-300x86.jpg 300w, https:\/\/www.wpallimport.com\/wp-content\/uploads\/2021\/09\/Advanced-Order-Export-for-WooCommerce-Relative-Date-Filters-02-768x221.jpg 768w\" sizes=\"(max-width: 789px) 100vw, 789px\" \/><\/a><\/figure>\n\n\n\n<p>Note, that this won\u2019t return any records for the sandbox data because it is too old for that, but terms like \u201clast month\u201d or \u201cthis month\u201d are very common in export scenarios.<\/p>\n\n\n\n<h3 class=\"wp-block-heading ignore-toc\" id=\"filtering-order-exports\">Filtering Order Exports With PHP<\/h3>\n\n\n\n<p>If you need even more advanced order filter capabilities, WP All Export allows you to create any filter imaginable using its API, which is a large set of WordPress hooks that you can <a href=\"https:\/\/www.wpallimport.com\/documentation\/advanced\/action-reference\/\">find here<\/a>.<\/p>\n\n\n\n<p>Using these hooks requires PHP programming skills. For example, here is a filter that you might use to export only product variations whose parents are not set to 'draft'. This is especially useful for <a href=\"https:\/\/www.wpallimport.com\/documentation\/how-to-export-woocommerce-to-google-merchant-center\/\" target=\"_blank\" rel=\"noreferrer noopener\">Google Merchant Center exports<\/a> as they apply Status filters directly to variations by default.<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre class=\"CodeMirror\" data-setting=\"{&quot;showPanel&quot;:false,&quot;languageLabel&quot;:false,&quot;fullScreenButton&quot;:false,&quot;copyButton&quot;:false,&quot;mode&quot;:&quot;php&quot;,&quot;mime&quot;:&quot;text\/x-php&quot;,&quot;theme&quot;:&quot;default&quot;,&quot;lineNumbers&quot;:false,&quot;styleActiveLine&quot;:false,&quot;lineWrapping&quot;:false,&quot;readOnly&quot;:true,&quot;fileName&quot;:&quot;&quot;,&quot;language&quot;:&quot;PHP&quot;,&quot;maxHeight&quot;:&quot;400px&quot;,&quot;modeName&quot;:&quot;php&quot;}\">function exclude_drafts_from_gmc_export($articles, $options, $export_id) {\n\n    \/\/ Only filter GMC exports.\n    if ($options[&quot;xml_template_type&quot;] == &quot;XmlGoogleMerchants&quot;) {\n\n        \/\/ Process every exported product.\n        foreach ($articles as $key =&gt; $article) {\n\n            \/\/ If IDs aren't set to be exported, do nothing.\n            if ( ! empty($article['id']) ) {\n                $post_id = $article['id'];\n                $parent_id = wp_get_post_parent_id($post_id);\n\n                \/\/ Check the parent's Status.\n                if ( get_post_status($parent_id) == &quot;draft&quot; ) {\n\n                    \/\/ Don't export variation if parent is 'draft'.\n                    unset($articles[$key]);\n\n                }\n            }\n        }\n    }\n\n    return $articles;\n}\nadd_filter('wp_all_export_csv_rows', 'exclude_drafts_from_gmc_export', 10, 3);<\/pre><\/div>\n\n\n\n<p>Walking you through this code is beyond the scope of this article. The point is, that WP All Export offers this kind of advanced capability. And, of course, the support team is always available should you need help!\u00a0<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"large-exports\">4. Large WooCommerce Order Exports<\/h2>\n\n\n\n<p>WP All Export is capable of exporting a large volume of orders without slowing down your website.\u00a0Large order exports typically cause two types of problems:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Servers limit the amount of time a process can run. If a process exceeds this time limit, it is said to \u201ctime out\u201d, meaning it will fail. This is necessary because long-running processes might consume all of a server\u2019s resources, causing it to stop working. To avoid this problem, large WooCommerce order exports are typically broken down into batches. But if the batch size is too big, timeouts will still occur.<\/li>\n\n\n\n<li>Each server typically imposes a size limit for the creation of files. Otherwise, a file might use all the available disk space. If the WooCommerce store is big enough, a large order export might exceed the allowable size limit.<\/li>\n<\/ol>\n\n\n\n<p>Fortunately, WP All Export makes it easy to solve both of these problems.<\/p>\n\n\n\n<p>The Export Settings interface has an Advanced Options panel that contains the options you need to manage large WooCommerce order exports.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/www.wpallimport.com\/wp-content\/uploads\/2021\/09\/Xnip2021-09-16_15-24-04.png\" data-rel=\"lightbox-image-13\" data-rl_title=\"\" data-rl_caption=\"\" title=\"\"><img decoding=\"async\" width=\"1024\" height=\"930\" src=\"https:\/\/www.wpallimport.com\/wp-content\/uploads\/2021\/09\/Xnip2021-09-16_15-24-04-1024x930.png\" alt=\"Advanced Order Export for WooCommerce Settings\" class=\"wp-image-4623863\" srcset=\"https:\/\/www.wpallimport.com\/wp-content\/uploads\/2021\/09\/Xnip2021-09-16_15-24-04-1024x930.png 1024w, https:\/\/www.wpallimport.com\/wp-content\/uploads\/2021\/09\/Xnip2021-09-16_15-24-04-300x272.png 300w, https:\/\/www.wpallimport.com\/wp-content\/uploads\/2021\/09\/Xnip2021-09-16_15-24-04-768x697.png 768w, https:\/\/www.wpallimport.com\/wp-content\/uploads\/2021\/09\/Xnip2021-09-16_15-24-04-1536x1394.png 1536w, https:\/\/www.wpallimport.com\/wp-content\/uploads\/2021\/09\/Xnip2021-09-16_15-24-04.png 1736w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure>\n\n\n\n<p>The first option manages the batch size used to process the order export. If your export process fails due to a timeout, lower this number and try again. Just be aware that there is typically a sweet spot for batch size. Set it too small and you will greatly increase the number of batches required to complete the export, which may increase the amount of time required to process the export. Set it too big and you\u2019ll get the timeout error.<\/p>\n\n\n\n<p>To avoid exceeding file-size limits, the second option lets you split your export file into multiple files consisting of a maximum record count. The sweet spot rule applies here, too. Set this number too low and you\u2019ll end up with too many files. Set it too high and you may trigger the maximum file size limit.<\/p>\n\n\n\n<p>But that's not all. WP All Export includes even more advanced features for WooCommerce order exports. Let's take a look at the complete list of these features.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"other-advanced-features\">5. Other Advanced Order Export Features<\/h2>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/www.wpallimport.com\/wp-content\/uploads\/2022\/06\/WPML-Plugin-Image.jpg\" data-rel=\"lightbox-image-14\" data-rl_title=\"\" data-rl_caption=\"\" title=\"\"><img decoding=\"async\" width=\"1024\" height=\"487\" src=\"https:\/\/www.wpallimport.com\/wp-content\/uploads\/2022\/06\/WPML-Plugin-Image-1024x487.jpg\" alt=\"WPML Plugin Image\" class=\"wp-image-5300494\" srcset=\"https:\/\/www.wpallimport.com\/wp-content\/uploads\/2022\/06\/WPML-Plugin-Image-1024x487.jpg 1024w, https:\/\/www.wpallimport.com\/wp-content\/uploads\/2022\/06\/WPML-Plugin-Image-300x143.jpg 300w, https:\/\/www.wpallimport.com\/wp-content\/uploads\/2022\/06\/WPML-Plugin-Image-768x366.jpg 768w, https:\/\/www.wpallimport.com\/wp-content\/uploads\/2022\/06\/WPML-Plugin-Image.jpg 1441w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure>\n\n\n\n<p>WP All Export takes pride in the fact that it can handle all simple export tasks quickly and easily, yet still has the tools to handle the most complex export tasks imaginable.<\/p>\n\n\n\n<p>In addition to the topics described in this article, other advanced features include:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>The ability to use WP_Query to perform order queries that can\u2019t be performed any other way, at least not efficiently<\/li>\n\n\n\n<li>Export your WooCommerce orders in different languages using WPML<\/li>\n\n\n\n<li>Full developer support including an Add-on API and WP-CLI<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">Related Information<\/h2>\n\n\n\n<p><a href=\"https:\/\/www.wpallimport.com\/woocommerce-export-orders-csv\/\">WooCommerce Export Orders to CSV<\/a><\/p>\n\n\n\n<p><a href=\"https:\/\/www.wpallimport.com\/woocommerce-export-orders-excel\/\">WooCommerce Export Orders to Excel<\/a><\/p>\n\n\n\n<p><a href=\"https:\/\/www.wpallimport.com\/woocommerce-best-themes\/\" target=\"_blank\" rel=\"noreferrer noopener\">Best WooCommerce Themes<\/a><\/p>\n\n\n\n<p><a href=\"https:\/\/www.wpallimport.com\/best-host-for-woocommerce\/\" target=\"_blank\" rel=\"noreferrer noopener\">Best Host for WooCommerce<\/a><\/p>\n\n\n\n<p><a href=\"https:\/\/www.wpallimport.com\/best-plugins-for-woocommerce\/\" target=\"_blank\" rel=\"noreferrer noopener\">Best Plugins for WooCommerce<\/a><\/p>\n\n\n\n<p><a href=\"https:\/\/www.wpallimport.com\/best-woocommerce-shipping-plugins\/\" target=\"_blank\" rel=\"noreferrer noopener\">Best WooCommerce Shipping Plugins<\/a><\/p>\n\n\n\n<p><a href=\"https:\/\/www.wpallimport.com\/8-best-photography-plugins-for-woocommerce\/\" target=\"_blank\" rel=\"noreferrer noopener\">8 Best Photography Plugins for WooCommerce<\/a><\/p>\n\n\n\n<p><a href=\"https:\/\/www.wpallimport.com\/best-woocommerce-multilingual-plugins\/\" target=\"_blank\" rel=\"noreferrer noopener\">Best WooCommerce Multilingual Plugins<\/a><\/p>\n\n\n\n<p><a href=\"https:\/\/www.wpallimport.com\/woocommerce-how-to-add-products\/\">WooCommerce How to Add Produc<\/a><a href=\"https:\/\/www.wpallimport.com\/woocommerce-how-to-add-products\/\" target=\"_blank\" rel=\"noreferrer noopener\">t<\/a><a href=\"https:\/\/www.wpallimport.com\/woocommerce-how-to-add-products\/\">s<\/a><\/p>\n\n\n\n<p><a href=\"https:\/\/www.wpallimport.com\/advanced-order-export-for-woocommerce\/\" target=\"_blank\" rel=\"noreferrer noopener\">Advanced Order Export for WooCommerce<\/a><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Related Videos<\/h2>\n\n\n\n<figure class=\"wp-block-embed is-type-video is-provider-youtube wp-block-embed-youtube wp-embed-aspect-16-9 wp-has-aspect-ratio\"><div class=\"wp-block-embed__wrapper\">\n<iframe title=\"How to Let Clients Export WooCommerce Orders\" width=\"500\" height=\"281\" src=\"https:\/\/www.youtube.com\/embed\/hi1xOI0NDi4?feature=oembed\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" referrerpolicy=\"strict-origin-when-cross-origin\" allowfullscreen><\/iframe>\n<\/div><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>WP ALL Export may be easy to use, but it also provides the most advanced order export for WooCommerce in the industry.<\/p>\n","protected":false},"author":96198,"featured_media":4624176,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"_stopmodifiedupdate":true,"_modified_date":"","inline_featured_image":false,"ep_exclude_from_search":false,"footnotes":""},"categories":[7],"tags":[138,139],"content_author":[215],"cta":[],"class_list":["post-4620603","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-tutorials","tag-w-article","tag-w-howto","content_author-joe-guilmette"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.2 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>How to Create Advanced Order Export for WooCommerce<\/title>\n<meta name=\"description\" content=\"Looking to create advanced order export for WooCommerce? Discover the different advanced features that come with WP All Export.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.wpallimport.com\/advanced-order-export-for-woocommerce\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Advanced Order Export for WooCommerce - WP All Import\" \/>\n<meta property=\"og:description\" content=\"WP ALL Export may be easy to use, but it also provides the most advanced order export for WooCommerce in the industry.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wpallimport.com\/advanced-order-export-for-woocommerce\/\" \/>\n<meta property=\"og:site_name\" content=\"WP All Import\" \/>\n<meta property=\"article:author\" content=\"https:\/\/www.facebook.com\/profile.php?id=100087970854517\" \/>\n<meta property=\"article:published_time\" content=\"2021-09-16T07:33:39+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-05-15T23:40:30+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.wpallimport.com\/wp-content\/uploads\/2021\/09\/Advanced-Order-Export-for-WooCommerce.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1200\" \/>\n\t<meta property=\"og:image:height\" content=\"630\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Joe Guilmette\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:title\" content=\"Advanced Order Export for WooCommerce - WP All Import\" \/>\n<meta name=\"twitter:description\" content=\"WP ALL Export may be easy to use, but it also provides the most advanced order export for WooCommerce in the industry.\" \/>\n<meta name=\"twitter:image\" content=\"https:\/\/www.wpallimport.com\/wp-content\/uploads\/2021\/09\/Advanced-Order-Export-for-WooCommerce.jpg\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Joe Guilmette\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"13 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.wpallimport.com\/advanced-order-export-for-woocommerce\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.wpallimport.com\/advanced-order-export-for-woocommerce\/\"},\"author\":{\"name\":\"Joe Guilmette\",\"@id\":\"https:\/\/www.wpallimport.com\/#\/schema\/person\/215\",\"url\":\"https:\/\/www.wpallimport.com\/author\/joe-guilmette\/\"},\"headline\":\"How to Create Advanced Order Export for WooCommerce\",\"datePublished\":\"2021-09-16T07:33:39+00:00\",\"dateModified\":\"2024-05-15T23:40:30+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.wpallimport.com\/advanced-order-export-for-woocommerce\/\"},\"wordCount\":2246,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/www.wpallimport.com\/#organization\"},\"image\":{\"@id\":\"https:\/\/www.wpallimport.com\/advanced-order-export-for-woocommerce\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.wpallimport.com\/wp-content\/uploads\/2021\/09\/Advanced-Order-Export-for-WooCommerce.jpg\",\"keywords\":[\"w-article\",\"w-howto\"],\"articleSection\":[\"Tutorials\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.wpallimport.com\/advanced-order-export-for-woocommerce\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wpallimport.com\/advanced-order-export-for-woocommerce\/\",\"url\":\"https:\/\/www.wpallimport.com\/advanced-order-export-for-woocommerce\/\",\"name\":\"How to Create Advanced Order Export for WooCommerce\",\"isPartOf\":{\"@id\":\"https:\/\/www.wpallimport.com\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.wpallimport.com\/advanced-order-export-for-woocommerce\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.wpallimport.com\/advanced-order-export-for-woocommerce\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.wpallimport.com\/wp-content\/uploads\/2021\/09\/Advanced-Order-Export-for-WooCommerce.jpg\",\"datePublished\":\"2021-09-16T07:33:39+00:00\",\"dateModified\":\"2024-05-15T23:40:30+00:00\",\"description\":\"Looking to create advanced order export for WooCommerce? Discover the different advanced features that come with WP All Export.\",\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wpallimport.com\/advanced-order-export-for-woocommerce\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.wpallimport.com\/advanced-order-export-for-woocommerce\/#primaryimage\",\"url\":\"https:\/\/www.wpallimport.com\/wp-content\/uploads\/2021\/09\/Advanced-Order-Export-for-WooCommerce.jpg\",\"contentUrl\":\"https:\/\/www.wpallimport.com\/wp-content\/uploads\/2021\/09\/Advanced-Order-Export-for-WooCommerce.jpg\",\"width\":1200,\"height\":630,\"caption\":\"Advanced Order Export for WooCommerce\"},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.wpallimport.com\/#website\",\"url\":\"https:\/\/www.wpallimport.com\/\",\"name\":\"WP All Import\",\"description\":\"Import XML &amp; CSV to WordPress\",\"publisher\":{\"@id\":\"https:\/\/www.wpallimport.com\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.wpallimport.com\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.wpallimport.com\/#organization\",\"name\":\"WP All Import\",\"url\":\"https:\/\/www.wpallimport.com\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.wpallimport.com\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/www.wpallimport.com\/wp-content\/uploads\/2020\/02\/logo-v5-no-text.svg\",\"contentUrl\":\"https:\/\/www.wpallimport.com\/wp-content\/uploads\/2020\/02\/logo-v5-no-text.svg\",\"width\":199,\"height\":37,\"caption\":\"WP All Import\"},\"image\":{\"@id\":\"https:\/\/www.wpallimport.com\/#\/schema\/logo\/image\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.wpallimport.com\/#\/schema\/person\/215\",\"name\":\"Joe Guilmette\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.wpallimport.com\/#\/schema\/person\/image\/215\",\"url\":\"https:\/\/www.wpallimport.com\/wp-content\/uploads\/2026\/03\/profile-3.png\",\"contentUrl\":\"https:\/\/www.wpallimport.com\/wp-content\/uploads\/2026\/03\/profile-3.png\",\"caption\":\"Joe Guilmette\"},\"description\":\"Product Manager at Soflyy, in charge of the best data import and export plugin for both WordPress and WooCommerce.\",\"sameAs\":[\"https:\/\/www.wpallimport.com\/author\/josephguilmette\/\"],\"url\":\"https:\/\/www.wpallimport.com\/author\/joe-guilmette\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to Create Advanced Order Export for WooCommerce","description":"Looking to create advanced order export for WooCommerce? Discover the different advanced features that come with WP All Export.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.wpallimport.com\/advanced-order-export-for-woocommerce\/","og_locale":"en_US","og_type":"article","og_title":"Advanced Order Export for WooCommerce - WP All Import","og_description":"WP ALL Export may be easy to use, but it also provides the most advanced order export for WooCommerce in the industry.","og_url":"https:\/\/www.wpallimport.com\/advanced-order-export-for-woocommerce\/","og_site_name":"WP All Import","article_author":"https:\/\/www.facebook.com\/profile.php?id=100087970854517","article_published_time":"2021-09-16T07:33:39+00:00","article_modified_time":"2024-05-15T23:40:30+00:00","og_image":[{"width":1200,"height":630,"url":"https:\/\/www.wpallimport.com\/wp-content\/uploads\/2021\/09\/Advanced-Order-Export-for-WooCommerce.jpg","type":"image\/jpeg"}],"author":"Joe Guilmette","twitter_card":"summary_large_image","twitter_title":"Advanced Order Export for WooCommerce - WP All Import","twitter_description":"WP ALL Export may be easy to use, but it also provides the most advanced order export for WooCommerce in the industry.","twitter_image":"https:\/\/www.wpallimport.com\/wp-content\/uploads\/2021\/09\/Advanced-Order-Export-for-WooCommerce.jpg","twitter_misc":{"Written by":"Joe Guilmette","Est. reading time":"13 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.wpallimport.com\/advanced-order-export-for-woocommerce\/#article","isPartOf":{"@id":"https:\/\/www.wpallimport.com\/advanced-order-export-for-woocommerce\/"},"author":{"name":"Joe Guilmette","@id":"https:\/\/www.wpallimport.com\/#\/schema\/person\/215","url":"https:\/\/www.wpallimport.com\/author\/joe-guilmette\/"},"headline":"How to Create Advanced Order Export for WooCommerce","datePublished":"2021-09-16T07:33:39+00:00","dateModified":"2024-05-15T23:40:30+00:00","mainEntityOfPage":{"@id":"https:\/\/www.wpallimport.com\/advanced-order-export-for-woocommerce\/"},"wordCount":2246,"commentCount":0,"publisher":{"@id":"https:\/\/www.wpallimport.com\/#organization"},"image":{"@id":"https:\/\/www.wpallimport.com\/advanced-order-export-for-woocommerce\/#primaryimage"},"thumbnailUrl":"https:\/\/www.wpallimport.com\/wp-content\/uploads\/2021\/09\/Advanced-Order-Export-for-WooCommerce.jpg","keywords":["w-article","w-howto"],"articleSection":["Tutorials"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.wpallimport.com\/advanced-order-export-for-woocommerce\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.wpallimport.com\/advanced-order-export-for-woocommerce\/","url":"https:\/\/www.wpallimport.com\/advanced-order-export-for-woocommerce\/","name":"How to Create Advanced Order Export for WooCommerce","isPartOf":{"@id":"https:\/\/www.wpallimport.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.wpallimport.com\/advanced-order-export-for-woocommerce\/#primaryimage"},"image":{"@id":"https:\/\/www.wpallimport.com\/advanced-order-export-for-woocommerce\/#primaryimage"},"thumbnailUrl":"https:\/\/www.wpallimport.com\/wp-content\/uploads\/2021\/09\/Advanced-Order-Export-for-WooCommerce.jpg","datePublished":"2021-09-16T07:33:39+00:00","dateModified":"2024-05-15T23:40:30+00:00","description":"Looking to create advanced order export for WooCommerce? Discover the different advanced features that come with WP All Export.","inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wpallimport.com\/advanced-order-export-for-woocommerce\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.wpallimport.com\/advanced-order-export-for-woocommerce\/#primaryimage","url":"https:\/\/www.wpallimport.com\/wp-content\/uploads\/2021\/09\/Advanced-Order-Export-for-WooCommerce.jpg","contentUrl":"https:\/\/www.wpallimport.com\/wp-content\/uploads\/2021\/09\/Advanced-Order-Export-for-WooCommerce.jpg","width":1200,"height":630,"caption":"Advanced Order Export for WooCommerce"},{"@type":"WebSite","@id":"https:\/\/www.wpallimport.com\/#website","url":"https:\/\/www.wpallimport.com\/","name":"WP All Import","description":"Import XML &amp; CSV to WordPress","publisher":{"@id":"https:\/\/www.wpallimport.com\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.wpallimport.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.wpallimport.com\/#organization","name":"WP All Import","url":"https:\/\/www.wpallimport.com\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.wpallimport.com\/#\/schema\/logo\/image\/","url":"https:\/\/www.wpallimport.com\/wp-content\/uploads\/2020\/02\/logo-v5-no-text.svg","contentUrl":"https:\/\/www.wpallimport.com\/wp-content\/uploads\/2020\/02\/logo-v5-no-text.svg","width":199,"height":37,"caption":"WP All Import"},"image":{"@id":"https:\/\/www.wpallimport.com\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/www.wpallimport.com\/#\/schema\/person\/215","name":"Joe Guilmette","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.wpallimport.com\/#\/schema\/person\/image\/215","url":"https:\/\/www.wpallimport.com\/wp-content\/uploads\/2026\/03\/profile-3.png","contentUrl":"https:\/\/www.wpallimport.com\/wp-content\/uploads\/2026\/03\/profile-3.png","caption":"Joe Guilmette"},"description":"Product Manager at Soflyy, in charge of the best data import and export plugin for both WordPress and WooCommerce.","sameAs":["https:\/\/www.wpallimport.com\/author\/josephguilmette\/"],"url":"https:\/\/www.wpallimport.com\/author\/joe-guilmette\/"}]}},"_links":{"self":[{"href":"https:\/\/www.wpallimport.com\/wp-json\/wp\/v2\/posts\/4620603","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wpallimport.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wpallimport.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wpallimport.com\/wp-json\/wp\/v2\/users\/96198"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wpallimport.com\/wp-json\/wp\/v2\/comments?post=4620603"}],"version-history":[{"count":0,"href":"https:\/\/www.wpallimport.com\/wp-json\/wp\/v2\/posts\/4620603\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.wpallimport.com\/wp-json\/wp\/v2\/media\/4624176"}],"wp:attachment":[{"href":"https:\/\/www.wpallimport.com\/wp-json\/wp\/v2\/media?parent=4620603"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wpallimport.com\/wp-json\/wp\/v2\/categories?post=4620603"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wpallimport.com\/wp-json\/wp\/v2\/tags?post=4620603"},{"taxonomy":"content_author","embeddable":true,"href":"https:\/\/www.wpallimport.com\/wp-json\/wp\/v2\/content_author?post=4620603"},{"taxonomy":"cta","embeddable":true,"href":"https:\/\/www.wpallimport.com\/wp-json\/wp\/v2\/cta?post=4620603"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}