Create, update and get a product from WooCommerce

For WooCommerce, this workflow allows you to create, update, and retrieve product information effortlessly. Triggered manually, it streamlines product management by enabling quick updates to stock quantities and providing instant access to product details, enhancing inventory control and sales efficiency.

7/8/2025
4 nodes
Simple
manualsimplewoocommerce
Categories:
Manual TriggeredSimple Workflow
Integrations:
WooCommerce

Target Audience

  • E-commerce Managers: Individuals managing online stores who need to streamline product management processes.
    - Digital Marketers: Professionals looking to automate product updates and maintain accurate inventory data.
    - Developers: Those who want to integrate WooCommerce functionalities into their applications or workflows.
    - Small Business Owners: Entrepreneurs who manage their own WooCommerce stores and seek to automate repetitive tasks.
  • Problem Solved

    This workflow automates the process of creating, updating, and retrieving product information in WooCommerce, eliminating manual entry errors and saving valuable time. It ensures that product details are consistently updated, which is essential for maintaining accurate stock levels and providing customers with the latest information.

    Workflow Steps

  • Manual Trigger: The workflow initiates when the user clicks 'execute'.
    2. Create Product: A new product called n8n Sweatshirt is created with a description of Stay warm with this sweatshirt! and a regular price of $30.
    3. Update Stock Quantity: After creation, the workflow updates the stock quantity of the newly created product to 100.
    4. Get Product Details: Finally, the workflow retrieves the updated details of the product, ensuring that all information is current and accurate.
  • Customization Guide

  • Change Product Details: Users can modify the name, description, and regularPrice fields in the WooCommerce node to create different products.
    - Adjust Stock Quantity: The stockQuantity value in the update node can be changed to reflect the desired inventory levels.
    - Additional Fields: Users can add more fields in the additionalFields section to include attributes like SKU, categories, or tags as needed.
    - Trigger Type: The workflow can be set to trigger automatically based on external events (e.g., a new order), instead of manually, by configuring the trigger node accordingly.