AutomationFlowsE-commerce › Create Update And Get A Product From Woocommerce

Create Update And Get A Product From Woocommerce

Create Update And Get A Product From Woocommerce. Uses manualTrigger, wooCommerce. Event-driven trigger; 4 nodes.

Event trigger★★☆☆☆ complexity4 nodesWoo Commerce
E-commerce Trigger: Event Nodes: 4 Complexity: ★★☆☆☆

The workflow JSON

Copy or download the full n8n JSON below. Paste it into a new n8n workflow, add your credentials, activate. Full import guide →

Download .json
{
  "nodes": [
    {
      "name": "On clicking 'execute'",
      "type": "n8n-nodes-base.manualTrigger",
      "position": [
        220,
        300
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "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": "<your credential>"
      },
      "typeVersion": 1
    },
    {
      "name": "WooCommerce1",
      "type": "n8n-nodes-base.wooCommerce",
      "position": [
        630,
        300
      ],
      "parameters": {
        "operation": "update",
        "productId": "={{$node[\"WooCommerce\"].json[\"id\"]}}",
        "updateFields": {
          "stockQuantity": 100
        }
      },
      "credentials": {
        "wooCommerceApi": "<your credential>"
      },
      "typeVersion": 1
    },
    {
      "name": "WooCommerce2",
      "type": "n8n-nodes-base.wooCommerce",
      "position": [
        830,
        300
      ],
      "parameters": {
        "operation": "get",
        "productId": "={{$node[\"WooCommerce\"].json[\"id\"]}}"
      },
      "credentials": {
        "wooCommerceApi": "<your credential>"
      },
      "typeVersion": 1
    }
  ],
  "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
          }
        ]
      ]
    }
  }
}

Credentials you'll need

Each integration node will prompt for credentials when you import. We strip credential IDs before publishing — you'll add your own.

About this workflow

Create Update And Get A Product From Woocommerce. Uses manualTrigger, wooCommerce. Event-driven trigger; 4 nodes.

Source: https://github.com/Zie619/n8n-workflows — original creator credit. Request a take-down →

More E-commerce workflows → · Browse all categories →