I am trying to add woocommerce order details like customer name, address, contact, email along with ordered product details like product name, quantity, amount to pre-designed PDFfiller form. I tested this successfully when a single item is present in the order. But i am stuck now when there are multiple products in one order.
I want to use this for doctors prescription, packing slip, shipping label etc. creation purpose.
As you probably know, woocommerce given comma separated names for order items. I have used formatt
I have set this in format to split the comma separated product names to a list.
So, i got desired output like below
Now comes the real problem, when i push this data to a pre-designed PDF Form on PDFfiller, all 10 items are shown in one single textbox. I tried using different ‘Segment Index’ as well. I got below output from this method.
So, i am requesting your expertise on this.
Below is my desired output.
Best answer by nicksimardView original