Skip to content

WooCommerce Driver

The WooCommerce driver provides full support for importing products, including complex variable products, pricing, inventory, and attributes.

  • 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
Field NameTypeDescription
nameTextProduct Name
typeSelectsimple, variable, grouped, external
skuTextUnique Stock Keeping Unit
regular_priceNumberNormal price
sale_priceNumberDiscounted price
descriptionHTMLMain product description
short_descriptionHTMLShort description (next to image)
statusSelectpublish, draft, pending, private
catalog_visibilitySelectvisible, catalog, search, hidden
featuredBooleanMark as featured product
  • manage_stock: Enable stock management (true/false)
  • stock_quantity: Number of items in stock
  • stock_status: instock, outofstock, onbackorder
  • backorders: no, notify, yes
  • weight: Product weight
  • length, width, height: Product dimensions
  • tax_status: taxable, shipping, none
  • tax_class: Slug of the tax class (standard, reduced-rate, zero-rate)

To import attributes (e.g., Color, Size), map them to the corresponding taxonomy fields:

  • Global Attributes: tax_pa_color, tax_pa_size (prefixed with tax_pa_)
  • Values: Can be names, slugs, or IDs. Multiple values are supported.

Importing variable products requires two steps or a structured format:

  1. Parent Product: Import the main product with type: "variable"
  2. Variations: Import variations with type: "variation" and link to the parent.

Variation Fields:

  • parent_id: ID or SKU of the parent product
  • variation_description: Specific description for this variation
  • Attributes must be defined on the parent first.
  • image_id: URL for the main product image
  • gallery_image_ids: Array (or comma-separated string) of URLs for the gallery
  • upsell_ids: IDs or SKUs of Upsell products
  • cross_sell_ids: IDs or SKUs of Cross-sell products
{
"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"
}