Black Friday50% off every Pro template and membership with code50% off with Ends in 01days21hrs01min27secShop the sale →

How to Export Data from WooCommerce

Why should you use third-party plugins to export data from WooCommerce? As you know, when you run an online store, you will certainly need, in some situations, to export various kinds of data relating to your orders, customers, and products.…

How to export data from WooCommerce?

Why should you use third-party plugins to export data from WooCommerce?

As you know, when you run an online store, you will certainly need, in some situations, to export various kinds of data relating to your orders, customers, and products. This data creates great opportunities to grow your WooCommerce business. WooCommerce also comes with a wide range of features that help you build an online store easily, including a built-in product export that offers CSV file format. However, the platform also has some limitations; for example, it only supports exporting orders to XML. Therefore, you need the help of third-party tools to export this data in CSV.

How to export data from WooCommerce Using a Plugin

Nowadays, there are tons of powerful plugins on the internet. It is difficult to choose which one to start with. In today’s tutorial, we highly recommend the WP All Export plugin for several reasons.

First of all, WP All Export is considered one of the leading plugins that enable you to export your WooCommerce data in different formats. In addition, this plugin is useful for uploading your items to the Google Merchant Center to support online advertising campaigns or automatically integrate your data with 100+ apps by using Zapier.

Moreover, if you used to spend a lot of time editing your products one by one in WooCommerce, now with the support of WP All Export you can export them to a spreadsheet, bulk edit them, and then re-import them in no time. You can even migrate your entire store to another site easily.

Now, without wasting time, we are going to show you how to use this convenient sandbox feature, choosing WooCommerce Store as the demo type, through the tasks below.

A Simple WooCommerce Customer Export

For example, suppose you want to create a list of Californian customers for a marketing campaign. Follow the process below to export from WP All Export.

Step 1: Select the type of data that you want to export:

  • Click on All Export > New Export in your dashboard. This will open the New Export screen.
  •  Here you can choose “WooCommerce Customers” as the post type.

image1

You can also select any type of WordPress or WooCommerce data from the drop-down list, including data from third-party add-ons or plugins.

Step 2: Apply filters (optional)

1. After you have chosen a post type, an Add Filtering Options panel will appear near the bottom of the screen. Specify this simple filter.

image2

2. Click on the “Add Rule” button. After that, WP All Export will automatically apply your filter to the clients that will be exported. In our test data collection, there are 8 clients from California.

Step 3: Choose the export columns

  • Now, click on the “Customize Export File” button. This will open the Drag & Drop screen. Take a look at the right-hand side of the screen and you will see an “Available Data panel” displaying a set of data sources. Expand the “Standard data source” and drag the “First Name & Last Name” fields into the column selection area.
  •  Remove the “User Login” field from the selection area by dragging it over to the Available Data Panel. Your screen will now be similar to the screenshot below.

image3 2

Step 4: Complete the export

  • Scroll down to the bottom of the screen and click on the “Continue” button. This will open the “Export Settings” screen.
  • On the right-hand side, click on the “Confirm & Run Export” button to move to the Confirm & Run screen.
  • Once the export is done, click on the “CSV” button in the “Click to Download” section in the lower half of the screen to download the export file.
  • Now, open the downloaded file in your preferred spreadsheet app. Below is our simple data displayed in Microsoft Excel.

image4 1

And that’s it — a simple list of customers from California!

One of the great things about this plugin is that every export always follows the same basic process.

To learn more about exporting customers, see Export WooCommerce Customers to XML& CSV.

Exporting WooCommerce Products to the Google Merchant Center

The process of exporting products to the Google Merchant Center is also similar to the previous process. However, you need to choose Woocmmerce Products as the post type instead of WooCommerce Customers.

In addition, you can also utilize the same filtering process, which can be as complex as you want:

image5 1

In our example, we are asking for items that sell for less than $20 and have more than 30 units in stock.

Click on the “Customize Export File” button.

Normally, you would start by choosing columns. However, suppose you want to export your products to Google Merchant Center – a goal with very specific requirements. To meet these requirements, you need to expand the “Export Type panel” at the bottom of the Drag & Drop screen and then choose Feed instead of Spreadsheet as the primary export type. Then choose the “Feed” option, Google Merchant Center item data, as a subtype.

image6 1

Once you do this, WP All Export will generate a number of additional panels to guide you through the Google Merchant Center options.

image16 1

Here is an example. There are a lot of options for the Basic Product Information panel.

image18 1

Take a close look at some of the options in this panel, such as where to pull product descriptions, links, or images. How would you handle these problems without a wizard guiding you through the process?
And check out this panel for Product Categories, which enables you to map your WooCommerce product categories to Google product categories. Again, how would you tackle this if WP All Export didn’t set it up for you in advance?

export data from woocommerce

The process is the same for the rest of the Google Merchant Center panels. Once you complete these panels, click on the Continue button at the bottom of the screen. It opens the same Export Settings screen as before. But once you hit the Confirm & Run Export button, WP All Export will set up your export as a URL and give you the instructions that you need to upload your data to the Google Merchant Center successfully.

export data from woocommerce

This is how WP All Export turns a very complicated process into a list of simple, sequential tasks.

Bulk Editing Products

Suppose you are going to create a sale campaign featuring all items with a price greater than $20. To do this, you want to temporarily edit the titles of the sale items so that they begin with the phrase “ON SALE”. However, the sale will affect many products, and you don’t want to edit them one by one.

Luckily, WP All Export will help you resolve this problem.

First of all, you need to export all items with a Price > 20 and utilize the default column selection. After completing this process, you can download your CSV file and open it in a spreadsheet.

In the spreadsheet, add a new column beside the existing Title column and then type a formula in the new column that will insert the prefix “ON SALE” to the existing Title contents. In Excel, you can utilize this formula.

=”ON SALE -“&B2

After this formula is added, it will generate a value like “ON SALE – Soflyy T-Shirt”

Simply copy this formula and apply it to all the rows in your new column so that your spreadsheet will look like the screenshot below.

image6 1 1

Next, copy all the values from your new column into the old Title column. Paste them as values to remove the formula. Then delete your new column and don’t forget to save the file.

Finally, import your modified item file by following the steps below.

  1. Click All Export -> Manage Exports.
  2. You should see your product export at the top of the list in the Manage Exports screen.

export data from woocommerce

3. Look at the information under the Info & Options section, click on Import with WP All Import. This will start the import process.

4. In the New Import screen, click on Upload a file and choose your modified product file. After your file is uploaded, your screen will look like this:

image4 1 1

5. Click on the Continue to Step 2 button. Keep hitting the Continue button on all subsequent screens until you reach the Confirm & Run screen, where you simply click the Confirm & Run Import button.

After the import process has been completed, you will get a confirmation like this:

image1 1

Now, if you check the affected products in WooCommerce, you will see that they have all been updated with the “ON SALE – “ prefix:

export data from woocommerce

As you can see, this solution saves you a lot of time and effort!

Are you wondering how WP All Import knew how to handle all of those import screens where you clicked Continue? Here is the explanation.

WP All Export and WP All Import are specially designed to work together. So, when your import file provides the required information, WP All Import knows what to do with it.

For more information on exporting products, see Easily Export WooCommerce Products to XML & CSV.

WooCommerce Order Exports

And how do you export orders? You do it the same way as the previous exports. Similarly, you need to choose WooCommerce Orders as the post type.

Except for the product-specific Google Merchant Center section, everything we did with customers and products also applies to orders. However, there are some big differences with order exports:

  • Order information is often required for external sales reports. If the target system offers good data manipulation tools, you can regularly export orders in CSV or Excel by using the default processes. However, if you are responsible for the data manipulation, you may need more advanced features such as WP_Query and PHP functions.
  • In addition, migrating data from one store to another store can be more complicated for order data than customer or product data since order data has dependencies on these other data elements. Fortunately, WP All Export offers a lot of powerful features to handle these issues.

We can’t cover all the features in today’s blog, but we will look at one of them. Let’s take a look.

Custom Fields Using PHP

You will find it easy to create custom fields in WP All Export. For example, in order to merge a customer’s first and last billing names into a single name field, you only need to click on the “Add Field” button in the Drag and Drop interface.export data from woocommerce

This will bring you to the Export form. You define your new export field by using these steps:

  1. Choose the Custom Export field option.
  2. In the given text area, drag and drop the “Billing First Name” and “Billing Last Name” fields from the Available Data Customer list, and leave a space between them.
  3. In the Column Name box at the top, type ” Name“.

Your form might now look like this.

image9

Now, if you hit the Preview button, you will see that the Name field displays the combined first and last billing names.

Nevertheless, sometimes this kind of simple custom field is not enough. You can ignore the preview( if open) then click on the “Save” button to finish.

Suppose you would like to add a shipping method to your orders based on their weight. If an order weighs less than 10lbs, it should be sent using “USPS“. If its weight is between 10-30lbs, “DHL” will be a valid method. And finally, when the order is heavier than 30lbs, it should be sent through ‘Knight-Swift Freight’.

Here’s how to do this:

  • Click on the Add Field button to re-open the Add Field to Export form.
  • Choose the Custom export field option.
  • In the given text area, type “[output_shipping({Weight})]” without the quotes. This is a function call. Note that the Weight field is surrounded by curly brackets.
  •  Enter the following PHP function in the Function Editor between the PHP tags:

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”;

}

}

  • Click on the Save Functions button.
  • In the Column name box, type ” Shipping Method“.

Now, it might look like this.

export data from woocommerce

Remember to click on the “Save” button to save the field. This will bring you to the Drag and Drop interface; drag the Items -> Advanced -> Weight field from the Available Data panel into the column selection area and then click on the Preview button:

export data from woocommerce

Looking at the contents of the Shipping Method column, you can see that the output_shipping function works correctly.

Wrap up

We have just covered all the steps to export data from WooCommerce by using WP All Export. Hopefully, this method is useful for your online store. In addition, this tutorial should help you handle most data export tasks in WooCommerce.

If you have any queries or need our assistance, please leave a comment in the box below. We will give you support as soon as possible. Moreover, if you want to explore more third-party plugins to export vital information from WooCommerce, see WordPress Export Plugin.

Build it with a template

Start from a finished design: Joomla templates, WordPress themes or the AI-ready block themes. Every template has a free version and a live demo.

Free download

We'll send the link, setup tips and update notices, and you can reach us anytime through our AI assistant and contact form.

The download starts at once. We email you the link and ask you to confirm your address. Privacy policy.