So I have some order data that gets grabbed from our ERP by a HTTP node. I want to use this data to create an order in our WooCommerce store. I tried using an expression to put in the item ID and quantity, but I quickly realised this would just create a new single item order for each product in the list.
Is there a way I can create a single order with all the items in this list without manually adding a new line item for each item part of the order?
Yes this can be done.
If you have for example 10 items from one order you can use the list items node to aggregate them into one item which would then contain an array of the order lines.
Just a quick example of splitting and aggregating items:
Sorry for the delay in response. I’m still having problems with this. The last WooCommerce create:order step in the workflow you sent still requires me to create a line item for each individual line for it to work. Any ideas?