WooCommerce Driver
The WooCommerce driver provides full support for importing products, including complex variable products, pricing, inventory, and attributes.
Supported Features
Section titled “Supported Features”- Product Types: Simple, Variable, Grouped, External/Affiliate
- Pricing: Regular and Sale prices
- Inventory: Stock management, status, and backorders
- Shipping: Weight and dimensions
- Attributes: Global and local product attributes
- Variations: Full support for variable products
- Media: Product gallery and featured images
- Downloads: Downloadable files and limits
Core Product Fields
Section titled “Core Product Fields”| Field Name | Type | Description |
|---|---|---|
name | Text | Product Name |
type | Select | simple, variable, grouped, external |
sku | Text | Unique Stock Keeping Unit |
regular_price | Number | Normal price |
sale_price | Number | Discounted price |
description | HTML | Main product description |
short_description | HTML | Short description (next to image) |
status | Select | publish, draft, pending, private |
catalog_visibility | Select | visible, catalog, search, hidden |
featured | Boolean | Mark as featured product |
Inventory Fields
Section titled “Inventory Fields”manage_stock: Enable stock management (true/false)stock_quantity: Number of items in stockstock_status:instock,outofstock,onbackorderbackorders:no,notify,yes
Shipping & Tax
Section titled “Shipping & Tax”weight: Product weightlength,width,height: Product dimensionstax_status:taxable,shipping,nonetax_class: Slug of the tax class (standard, reduced-rate, zero-rate)
Product Attributes
Section titled “Product Attributes”To import attributes (e.g., Color, Size), map them to the corresponding taxonomy fields:
- Global Attributes:
tax_pa_color,tax_pa_size(prefixed withtax_pa_) - Values: Can be names, slugs, or IDs. Multiple values are supported.
Variable Products
Section titled “Variable Products”Importing variable products requires two steps or a structured format:
- Parent Product: Import the main product with
type: "variable" - Variations: Import variations with
type: "variation"and link to the parent.
Variation Fields:
parent_id: ID or SKU of the parent productvariation_description: Specific description for this variation- Attributes must be defined on the parent first.
Media & Gallery
Section titled “Media & Gallery”image_id: URL for the main product imagegallery_image_ids: Array (or comma-separated string) of URLs for the gallery
Linked Products
Section titled “Linked Products”upsell_ids: IDs or SKUs of Upsell productscross_sell_ids: IDs or SKUs of Cross-sell products
Example Payload (Simple Product)
Section titled “Example Payload (Simple Product)”{ "name": "Premium T-Shirt", "type": "simple", "sku": "TSHIRT-001", "regular_price": "29.99", "manage_stock": true, "stock_quantity": 100, "tax_pa_color": ["Blue", "Red"], "tax_pa_size": ["L", "XL"], "image_id": "https://example.com/tshirt.jpg"}