Skip to main content

WooCommerce

The WooCommerce node allows you to automate work in WooCommerce, and integrate WooCommerce with other applications. Robbot Automation has built-in support for a wide range of WooCommerce credentials, including creating and deleting customers, orders, and products.

On this page, you'll find a list of operations the WooCommerce node supports and links to more resources.

!!! note "Credentials" Refer to WooCommerce credentials for guidance on setting up authentication.

!!! note "Examples and templates" For usage examples and templates to help you get started, take a look at Robbot Automation's WooCommerce list.

Basic Operations

  • Customer
    • Create a customer
    • Delete a customer
    • Retrieve a customer
    • Retrieve all customers
    • Update a customer
  • Order
    • Create a order
    • Delete a order
    • Get a order
    • Get all orders
    • Update an order
  • Product
    • Create a product
    • Delete a product
    • Get a product
    • Get all products
    • Update a product

Example Usage

This workflow allows you to create, update, and get a product from WooCommerce. You can also find the workflow on Robbot Automation. This example usage workflow uses the following nodes.

1. Start node

The start node exists by default when you create a new workflow.

2. WooCommerce node (create: product)

This node will create a new product in WooCommerce.

  1. First of all, you'll have to enter credentials for the WooCommerce node. You can find out how to do that here.
  2. Enter the product name in the Name field.
  3. Click on Add Field and select 'Description'.
  4. Enter a description in the Description field.
  5. Click on Add Field and select 'Regular Price'.
  6. Enter the price in the Regular Price field.
  7. Click on Save to run the node.

3. WooCommerce1 node (update: product)

This node will update the product that we created in the previous node. We will update the quantity of the product.

  1. Select the credentials that you entered in the previous node.
  2. Select 'Update' from the Operation dropdown list.
  3. Click on the gears icon next to the Product ID field and click on Add Expression.
  4. Select the following in the Variable Selector section: Nodes > WooCommerce > Output Data > JSON > id. You can also add the following expression: {{$node["WooCommerce"].json["id"]}}.
  5. Click on Add Field and select 'Stock Quantity'.
  6. Set the quantity in the Stock Quantity field.
  7. Click on Save to run the node.

4. WooCommerce2 node (get: product)

This node will get the information about the product that we created using the WooCommerce node.

  1. Select the credentials that you entered in the previous node.
  2. Select 'Update' from the Operation dropdown list.
  3. Click on the gears icon next to the Product ID field and click on Add Expression.
  4. Select the following in the Variable Selector section: Nodes > WooCommerce > Output Data > JSON > id. You can also add the following expression: {{$node["WooCommerce"].json["id"]}}.
  5. Click on Save to run the node.