Reputation: 323
I am trying to find a way to automatically import products into Woocommerce. I was wondering if someone had any experience with this, whether using a CSV or directly writing to the database.
Upvotes: 15
Views: 60886
Reputation: 2532
You can easily import CSV files into WooCommerce using the CSV Import Extension: http://www.woothemes.com/extension/product-csv-import-suite/
Or you can use the more flexible WP All In One Import: http://www.wpallimport.com/woocommerce-product-import/
Automating product import from CSV is possible with this WooCommerce plugin
There is also a free solution via this plugin: https://wordpress.org/plugins/product-import-export-for-woo/
Woocommerce Products are regular WordPress posts, with a custom post type of product
. This means that each product is stored in the wp_posts
table (or replace wp
with your table prefix). There are many post_type values here. The ones for WordPress have a post_type="product"
All additional product info is stored in the table wp_postmeta
and connected by the post_id
column to the wp_posts
table. There are many meta key/values used, but the most common ones for WooCommerce are fairly intuitive, such as: _visibiilty, _price, _sku, _stock, _length, _width, _height, etc...
I suggest you manually input several products into the WP Admin and then study the data in the tables to make sure you have all the data you need... then you can write your own custom import suite.
Doing it yourself probably will not work as well as some of the pre-made solutions which provide you with good error checking of the input data, and additional fields and preprocessing functions.
Upvotes: 28
Reputation: 1299
The WordPress Importer will import the following content from a WordPress export file:
You can use WordPress Importer plugin for import products into Woocommerce.
Installation of the Plugin-
Usage of the Plugin-
Step 1 : Go to the Tools -> Import screen
Step 2 : Click on WordPress.
Step 3 : Select Input File from a computer.
Step 4: Click on Import
Video Tutorial- The video tutorial on the following page might also be a good resource for import products -
Upvotes: 1
Reputation: 11841
If you have CSV full of WooCommerce simple Products , you can import all those along with images from URL in one click with this free plugin
Upvotes: 1