Create Category and Product
A 3-step recipe with WooCommerce. We can help you get access.
Recipe · 3 steps
Create Category and Product
with WooCommerce · Product Lifecycle Management
Create a category, create a product in it, and confirm the product.
- Create the product category that the new product will be assigned to.
- Create a product and assign it to the category created in the previous step.
- Retrieve the created product to confirm it persisted with the assigned category and pricing.
What you'll need to have ready
- categoryName: Name of the product category to create.
- categorySlug: Optional URL-friendly slug for the category.
- productName: Name of the product to create.
- regularPrice: Regular price of the product as a decimal string.
- sku: Stock-keeping unit identifier for the product.
For your developer
Arazzo workflow woocommerce:create-category-and-product, 3 operations: createProductCategory → createProduct → getProduct. Specs on APIs.io.