Products¶
The Products push creates and updates products in the store, such as items from the ERP. To change the price or stock of one variation of a variable product, use Variations.
On a push connector, select Products as the WooCommerce Import Type. The push offers Insert, Update and Insert/Update. See Insert and Update for how Id decides between creating and updating.
Fields¶
Id is WooCommerce's id for the product. Map it to update a product, or from an empty field to catch the new product's id.
The other fields follow WooCommerce's own:
- Name, Slug, Type, Status, Featured, Catalog Visibility, Description, Short Description, Purchase Note and Menu Order;
- SKU;
- Regular Price and Sale Price, with the On Sale from Date and On Sale to Date fields;
- Manage Stock, Stock Quantity, Stock Status, Backorders and Sold Individually;
- Tax Status and Tax Class;
- Weight, Length, Width and Height;
- Is Virtual, Is Downloadable, Download Limit and Download Expiry Days;
- External URL and Button Text, for an external product;
- Reviews Allowed;
- Parent, the id of a grouped product's parent.
Type and Status¶
Type is simple, variable, grouped or external. A new product with no Type is simple. Status is publish, draft, pending or private. A new product with no Status goes live at once. Create products as draft to check them in WooCommerce before shoppers see them.
Prices¶
Set Regular Price, and Sale Price for a reduction. WooCommerce works out the price shoppers pay from the two and the sale dates. The Price field has no effect: WooCommerce ignores a price sent to it directly.
A variable product has no price of its own. Set the prices of its variations with the Variations push.
Stock¶
Stock Quantity takes effect only when Manage Stock is True. With Manage Stock False, set Stock Status instead: instock, outofstock or onbackorder.
Category and Image¶
- Default Category takes one category, by WooCommerce's id for it, not its name. It replaces the product's categories with that one.
- Default Image Url takes the address of one image. WooCommerce downloads the image into the media library and makes it the product image, replacing the product's images. WooCommerce downloads it again every time the push sends it. Map the field only when the image changes.
To find a category's id, see Products > Categories in WordPress, or use a lookup on products/categories.
What the Push Cannot Set¶
- Attributes. The push cannot set a product's attributes, such as Colour or Size, or the options a variable product offers. Set them in WooCommerce.
- More than one category or image.
- Downloadable files. The push can mark a product downloadable, but cannot add the files.
- Meta data.
WooCommerce Reference¶
Products in the WooCommerce REST API documentation.