/*wp_block_styles_on_demand_placeholder:69b30d1757a43*/ /*# sourceURL=wp-block-library-inline-css */

Downloading and Importing WooCommerce Sample Data

COMPLEXITY

Easy

TIME

5 Minutes

ASSUMPTIONS

  • Basic knowledge of WordPress and WooCommerce.
  • WooCommerce is already installed and configured.

 

VERSIONS

Divi 4.9.2
WooCommerce 5.1.0
WordPress 5.7

There certainly is no shortage of online tutorials on how to do some cool stuff with WooCommerce, but sometimes when you are still getting started, something simple like not having products in your database can make these tutorials daunting. Something not a lot of folks know is that WooCommerce already comes with a set of products ranging from simple to variable products, all you need to do is import them! In this tutorial, we will show you exactly how you would go about importing this WooCommerce sample data.

Awesome, right?

In this article, we will show you step-by-step how to quickly and easily import these products so that you can start becoming a WooCommerce expert in no time.

Why add WooCommerce Sample Data?

You should only consider importing the Sample Products if you are working on a site that does not currently have enough products in the database. The main reason we want some products in there is that this allows you to see how the various WooCommerce pages update as we work through some awesome tutorials. It is all about that instant gratification baby! Depending on the tutorial, it could also be helpful to have some products loaded in the database so that you can add them to the cart and see the updates you’ve made there.

Now that we’ve established why we want some Sample Data Imported into our WooCommerce database, let’s jump in and get it done.

Downloading the WooCommerce Sample Data

Speedrun

Download WooCommerce from this page -> http://wordpress.org/extend/plugins/woocommerce/

Extract the downloaded Zip file

Locate sample_products.csv in /WooCommerce/Sample-Data

UPDATE: We created our very own enhanced WooCommerce Sample Products CSV Import File which you can download HERE!

Every time you install the WooCommerce plugin it places a few files Sample Data files that you can import into your WordPress install. You can get to these sample files in 2 ways:

 

  • Download the WooCommerce plugin manually, extract the Zip file, then access the files in the Sample-Data folder
  • FTP into your WordPress install and extract the files that way
For this tutorial, we will download and unzip the plugin files manually, then import them. To do that, let’s browse over to https://wordpress.org/plugins/woocommerce/ and click the download button. Make sure to save the zip file somewhere where you can easily track it down so that we can extract the zip file.

Once downloaded, head over to the file and extract it using your favorite unarchiving utility. If you now navigate to [download location]/WooCommerce/Sample-Data you will sample_products.csv and sample_products.xml, we will use one of these to import out Sample Products with just a few clicks.

Downloading and Extracting WooCommerce

Importing the Sample Products

Speedrun

WooCommerce > Products > Start Import

Choose sample_products.csv

Next > Run the Importer

Done!

Now that we have our sample_products.csv file, all we need to do is import it using the WooCommerce Products screen. If there are no products in your database, then you will have the option to “Start Import”.

Once we click the button we are asked to “Import products from a CSV file”, so let’s select the file we downloaded and click “Next”.

PRO TIP: We can also import products on the WordPress Import screen, but since we are importing WooCommerce products, it just makes more sense to import it within a more relevant context.
This is where we would “map” all the fields required by WooCommerce for a product, to a field in the CSV file we downloaded. Since this CSV file is straight from the WooCommerce team, it is already perfectly formatted, so we do not have to do any manual field mapping.

We can just scroll to the bottom of the page and click on “Run the Importer”.

After a few seconds of furious computing, we will be informed that we have successfully imported 25 products into our database.

 

Importing WooCommerce Products
That’s it! Now when we click on the Products we will see the list of 25 sample products that we just imported.

Couldn’t be easier! Now is a great opportunity to try one of our other tutorials that will help you convert visitors into customers!

For more information on BodyCommerce and its awesome features, take a look at our feature page and start dreaming of how you will use BodyCommerce to build amazing websites with Divi and WooCommerce.

0 Comments

Submit a Comment

Explore more from Divi Engine

Divi Form Builder

Divi Form Builder

From simple contact forms to complex frontend post or product creation, Divi Form Builder has you covered.

Divi Form Builder
Find out more
Divi Machine

Divi Machine

Build complex websites that displays dynamic fields you can filter, search and so much more with the Divi Builder.      

Divi Machine
Find out more
Divi BodyCommerce

Divi BodyCommerce

A versatile toolkit for developers using Divi and WooCommerce together, designed to boost your e-commerce site and achieve greater conversion rates.    

Divi BodyCommerce
Find out more
Divi Handoff

Divi Handoff

Let clients update content without touching the Divi Builder. Design layouts once, connect them to Flexible Content fields, and give editors simple forms for text, images, and sections.

Divi Handoff
Find out more
Divi Loop Extender

Divi Loop Extender

Unlock the Full Power of Divi 5 Loop Builder Add advanced sorting, filtering, and relationship logic right inside the Visual Builder.

Divi Loop Extender
Find out more
Divi Membership

Divi Membership

Monetize your Divi websites by transforming them into membership sites with seamless subscription management, user-friendly interfaces, and customizable membership tiers.

Divi Membership
Find out more
Divi Machine Accounts

Divi Machine Accounts

Build an account area for your customers to edit their details, access wishlist, submitted posts and more. *Note: Requires Divi Machine installed and active

Divi Machine Accounts
Find out more
Divi Ajax Filter

Divi Ajax Filter

Filter WooCommerce, Posts & Custom Posts without reloading the page.    

Divi Ajax Filter
Find out more
Divi Mobile

Divi Mobile

Divi Mobile helps you create beautiful looking mobile menus without having to code.

Divi Mobile
Find out more
Divi Nitro

Divi Nitro

Give your Divi website that extra boost of speed with our Divi Nitro plugin to enhance your customer's experience.

Divi Nitro
Find out more
Divi Protect

Divi Protect

Password protect the content of your Divi website with our Divi Protect plugin. Keep unwanted eyes out!

Divi Protect
Find out more
Divi Mega Menu

Divi Mega Menu

Create stunning, responsive, and content-rich mega menus using the Divi Builder you already know. No coding required.  

Divi Mega Menu
Find out more