How to Migrate WooCommerce and WordPress Data
To migrate WooCommerce and WordPress data from one site to another, export it from the source site using WP All Export, then import it on the destination site with WP All Import. Because these two plugins understand each other, you can migrate WooCommerce and WordPress data with just a few clicks.
Step 1: Select the Type of WooCommerce or WordPress Data That You Want to Migrate
Navigate to All Export › New Export and choose the type of data that you want to migrate.
You can migrate WooCommerce and WordPress data of all types, even from custom themes and plugins.
Once you choose what to export, click Customize Export File at the bottom of the screen (not shown).
Step 2: Decide Which Data Fields to Migrate
The next screen to appear is the Drag & Drop interface. In this screen, the fields available to export are listed on the right. Drag and drop those you want to migrate into the column selection area, or click Add All to include everything.
As with a regular export, you can rename and rearrange the fields as needed. You can also use PHP code to modify the export data.
Once you've finished selecting and configuring your export columns, click Continue (not shown).
Step 3: Confirm & Run the Export
Verify the final export settings, then click on Confirm & Run Export.
Step 4: Download the Export Bundle for Migrations
Download the export bundle ZIP file using the Bundle button. This file is designed to support WooCommerce and WordPress migrations, as it contains an import template in addition to the export data. There's no need to unzip the file.
Step 5: Upload the Export Bundle to WP All Import
Start a new import at All Import › New Import on your destination site, then upload the ZIP bundle file that you downloaded in the previous step.
By using the export bundle, it automatically configures the import, allowing you to click Skip to Step 4.
Step 6: Confirm & Run the Import to Complete the Migration
Step 4 shouldn't need any changes — just click Continue. Then click Confirm & Run Import on the following page to run the import.
That's all you have to do to migrate WooCommerce and WordPress data. It really is that simple!
Migrate WooCommerce and WordPress Data – Advanced Topics
Using Filters to Migrate Only Some Records
You can use filters in two different places:
- WP All Export, to only export certain selected records. For example, to limit the exported WordPress posts to those which contain "Offer" in the title. See Filter Exported WordPress Data.
- WP All Import, to select which records to import. For example, to limit the imported WooCommerce products to those which have a price equal to or higher than 30. See Filtering with XPath.
By using either export or import filters, you can decide which records will be migrated. Either option will work.
Migrate WooCommerce or WordPress Data from Third-Party Plugins or Themes
When you include all fields in Step 2 (see above), this will also migrate all custom fields created by third-party plugins or themes. However, this will only include custom fields that are stored in the regular WordPress post meta database table.
If the data is stored in a custom database table, you'll have to use custom code (see documentation) along with our API (see documentation) to migrate the data. Here's an example for the import portion of this: Import Data to Custom Database Table.
Difference Between Migrating Posts or Other Post Types
This Quickstart guide shows how to migrate WordPress posts, but the same steps can be used to migrate any post type or custom post type.
The main impact of migrating different post types is that the plugin options will change according to the post type being imported or exported.
Migrate WooCommerce and WordPress Data – Frequently Asked Questions
Will Your Plugins Migrate Taxonomies, Images, and Custom Fields, Too?
Yes. Our plugins will automatically migrate the taxonomies attached to the post type being migrated. This includes default taxonomies (such as categories or tags) along with custom taxonomies (added by a third-party plugin or with custom code).
The same is true for all images and all custom fields that are attached to the migrated records.
How to Maintain Links Between the Migrated Data?
Our plugins can maintain all relationships and links that exist between your migrated data. For example, when you migrate WooCommerce customers, products, and orders, the relationship between them is maintained as long as you migrate the orders last.
How to Keep the Same IDs When Migrating WooCommerce or WordPress Data?
You can achieve this using custom code (see documentation) along with our API (see documentation). When you migrate WooCommerce data (such as products or orders) or WordPress data (such as posts or pages), you can apply the following workaround: Keep old IDs when migrating products or posts.
This workaround attempts to maintain the old ID, but it's only an attempt. If the requested ID is not available, a new ID is generated upon import.
How to Migrate WooCommerce or WordPress Sites Manually?
In some cases, you may want to migrate the whole site, including files and its database. This can be achieved by following the Moving WordPress guide.
How to Migrate WooCommerce Customers and Orders?
In general, follow the instructions in this guide but select WooCommerce Customers and WooCommerce Orders as the post types (i.e., two separate migrations with customers first and orders last). For specific instructions, see How to Migrate WooCommerce Customers to a Different Site and How to Migrate WooCommerce Orders.
Migrate WooCommerce and WordPress Data – Related Docs
Describes how to migrate WordPress users.
Explains how to migrate WooCommerce products.
Learn how to o export WordPress data to a CSV, Excel, or XML file.