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) 2Price2]
Qty3 - Item2 (Meta3) ePrice3]
How would one go about separating these pieces of data and then rearranging them to be in the format like above?