A sometimes overlooked, but useful feature of WooCommerce 1.5.3 is the included dummy data file, which can be imported to create a number of products, and even attaches product images! This is useful when setting up test/development environments and you want a range of products available without having to manually create them.
Step 1 – Locate the Dummy Data File
The sample data file is included with the woocommerce plugin. To verify you do indeed have it, look for
dummy_data.xml in the woocommerce plugin directory:
wp-content/plugins/woocommerce/. This file is simply a standard WordPress export file, and we will use the WordPress Importer to import it and fill up our store.
Step 2 – Install the WordPress Importer
From the WordPress admin, click on Tools > Import to bring up the import screen.
Click on the WordPress link at the bottom of the list, and if prompted install and activate the Importer plugin.
Step 3 – Load the Dummy Data File
Click the file picker and navigate to and select the
dummy_data.xml file from the WooCommerce plugin directory, and click ‘Upload file and import’. Next you will be presented with a screen with a couple of options:
Select a user to assign the posts (products) to. Then check the box next to “Download and import file attachments”. Doing this will cause the importer to download the product images from the WooThemees server.
Step 4 – Enjoy
Your store site should now be filled with sample products: