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…
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.
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?
Best answer by Troy TessaloneView original