WordPress: Move WooCommerce staging to main site.

Have you made changes within the staging environment of your online store and want to start implementing these changes within your main site? Then this requires some different steps than if you have a Wordpress website without WooCommerce.

Are you not using WooCommerce? Then you can follow the steps in the following article: WordPress: Move staging environment to main domain.

Required Plugins

You will need a total of 3 plugins to install on both your main site and your staging environment. For logging into your WordPress website, see the article WordPress: Login and Dashboard.

  1. Order Export & Order Import for WooCommerce
    ( https://wordpress.org/plugins/order-import-export-for-woocommerce/ )
  2. Product Import Export for WooCommerce
    ( https://wordpress.org/plugins/product-import-export-for-woo/ )
  3. Import Export WordPress Users and WooCommerce Customers
    ( https://wordpress.org/plugins/users-customers-import-export-for-wp-woocommerce/ )

WordPress: Plugins, woocommerce switch (NL).png

Note: It is recommended to put your main site in maintenance mode before exporting your customers, products and orders. You can also use a plugin like Maintenance (https://wordpress.org/plugins/maintenance/) for this purpose.

Data exporteren

  1. Install and activate the 3 plugins mentioned above on the main site and staging environment.
  2. Main Site Dashboard, put your WordPress website in maintenance mode (advised).
  3. Main Site Dashboard, in the left menu hover over the text WebToffee Import Export (Basic) with your mouse and then click Export.
    WooCommerce: Move Staging 1 (NL).png
  4. A new page opens and you can select the type of data you want to export here. Order is selected by default, so we will export the orders first. Click on Step 2: Select an export method.
    WooCommerce: Move Staging 2 (NL).png
  5. You have the choice here to perform a Quick export or an Advanced export, we choose Quick export for both orders, products and customers. Click Export and repeat these steps for the products (Product) and customers (User/Customer).
    WooCommerce: Move Staging 3 (NL).png
  6. Have you exported the orders, products and customers? Then it's now time to log into your staging environment.

Data importeren

Note: When importing, make sure you always import the customers first because they are tied to orders and products.

  1. Staging site Dashboard, in the navigation bar on the left, hover over the text WebToffee Import Export (Basic) with your mouse, then click Import.
  2. Here, select User/Customer first and at Step 2 choose Quick Import where you drag the downloaded export file from your customers into the field, or click on the field so you can select the file.
    WooCommerce: Move Staging 4 (NL).png
  3. Then press Import and repeat these steps for your orders and products.

Once you have performed these steps, it is time to clone your staging website to your main site. It is recommended here to temporarily disable any caching plugins, examples of these plugins are LiteSpeed Cache, WP Rocket and WP Super Cache.

Move WooCommerce staging to main site.

To clone a website to the main domain, you can use the following article Wordpress: Cloning Website to Another (Sub)Domain. Below we briefly describe the main steps.

  1. Login to Plesk and go to WordPress in the left menu.
  2. At the WordPress website (domain) you want to clone, click Clone.
  3. Within the cloning screen, under Target choose Use Existing Domain and select your main site here. Make sure to remove staging from the search path. A message will display that WordPress is already installed at the destination, select Yes so the installation can be overwritten, then click Start.
    Plesk: WordPress, Clone website, domain (EN).png
  4. After cloning is complete, turn any caching plugins back on or clear the cache and you're done updating your website!

If you need some help, you can always reach our support desk by email support@cloud86.io and on weekdays from 10:00 am to 4:00 pm you can also reach us by phone and via the chat in My Cloud86.