Best answer

How to convert order line items data received from WooCommerce webhook into readable format?

  • 15 August 2021
  • 1 reply
  • 58 views

Hello!

 

I have order data coming from WooCommerce via a webhook.  Each order can have a variable number of Line Items.  The Data comes over like this…

 

Item1,Item2,Item3

Price1,Price2,Price3,

Meta1,Meta2,Meta3

Qty1,!ty2,Qty3

 

What I am trying to do is loop through these line items and put it in a human readable format to put in an Asana task so that my employees can then fulfill the order.

 

So,

 

Qty1 - Item1 (Meta1) [Price1]

Qty2 - Item2 (Meta2) [Price2]

Qty3 - Item2 (Meta3) [Price3]

 

How would one go about separating these pieces of data and then rearranging them to be in the format like above?

 

 

 

icon

Best answer by Troy Tessalone 16 August 2021, 16:30

View original

This post has been closed for comments. Please create a new post if you need help or have a question about this topic.

1 reply

Userlevel 7
Badge +14

Hi @pdac 

Try using the Looping app: https://zapier.com/apps/looping/integrations