n8n Workflow

Create Update And Get A Product From Woocommerce

This n8n workflow automates tasks using WooCommerce. Create Update And Get A Product From Woocommerce - ready to import and run in your n8n instance.

n8n workflow.json

About This Script

This n8n workflow automates tasks using WooCommerce. Create Update And Get A Product From Woocommerce - ready to import and run in your n8n instance.
Features:
  • Integrates with WooCommerce
  • Retrieves data from external sources
Source Code
{
    "nodes": [
        {
            "name": "On clicking 'execute'",
            "type": "n8n-nodes-base.manualTrigger",
            "position": [
                220,
                300
            ],
            "parameters": [],
            "typeVersion": 1,
            "id": "97595e24-27e0-4859-99d0-a1a145a1629b"
        },
        {
            "name": "WooCommerce",
            "type": "n8n-nodes-base.wooCommerce",
            "position": [
                430,
                300
            ],
            "parameters": {
                "name": "n8n Sweatshirt",
                "imagesUi": {
                    "imagesValues": []
                },
                "metadataUi": {
                    "metadataValues": []
                },
                "additionalFields": {
                    "description": "Stay warm with this sweatshirt!",
                    "regularPrice": "30"
                }
            },
            "credentials": {
                "wooCommerceApi": "woocommerce"
            },
            "typeVersion": 1,
            "id": "c1234bd3-e6e1-4a16-9bdc-3411f0360d83"
        },
        {
            "name": "WooCommerce1",
            "type": "n8n-nodes-base.wooCommerce",
            "position": [
                630,
                300
            ],
            "parameters": {
                "operation": "update",
                "productId": "={{$node[\"WooCommerce\"].json[\"id\"]}}",
                "updateFields": {
                    "stockQuantity": 100
                }
            },
            "credentials": {
                "wooCommerceApi": "woocommerce"
            },
            "typeVersion": 1,
            "id": "84905088-91dd-42ad-9ba9-9f7d48a5b01d"
        },
        {
            "name": "WooCommerce2",
            "type": "n8n-nodes-base.wooCommerce",
            "position": [
                830,
                300
            ],
            "parameters": {
                "operation": "get",
                "productId": "={{$node[\"WooCommerce\"].json[\"id\"]}}"
            },
            "credentials": {
                "wooCommerceApi": "woocommerce"
            },
            "typeVersion": 1,
            "id": "04249020-922f-4645-ad3c-76ce8153e25b"
        }
    ],
    "connections": {
        "WooCommerce": {
            "main": [
                [
                    {
                        "node": "WooCommerce1",
                        "type": "main",
                        "index": 0
                    }
                ]
            ]
        },
        "WooCommerce1": {
            "main": [
                [
                    {
                        "node": "WooCommerce2",
                        "type": "main",
                        "index": 0
                    }
                ]
            ]
        },
        "On clicking 'execute'": {
            "main": [
                [
                    {
                        "node": "WooCommerce",
                        "type": "main",
                        "index": 0
                    }
                ]
            ]
        }
    },
    "n8n_version": "1.5.0"
}
Requirements
n8n instance, Woocommerce API credentials
Tags
#n8n #automation #workflow
Quick Actions
More in n8n Workflows