PDF Invoice Feature

من مجهول
عضو منذ ديسمبر -0001

Hello,

I have been customizing the PDF invoice add-on and it's coming along nicely. One thing that springs to mind, however, is that the product description could possibly include the order options, i.e.

Instead of:
""Pants""

Then:
""Pants - Size SM - Blue""

I did not find an easy way to echo the $order->data array, so I am unsure where to get the values from and how to output them to the script. Please, could you provide some insight? Many, many thanks!

All the best,
Joe

Main Crew
من Sweden
عضو منذ فبراير 2013

You could find some code in the printable order copy that could be useful for you.

من مجهول
عضو منذ ديسمبر -0001

Hi, many thanks, I have tried that. Only, when trying to traverse the $order->data['options'] array, I got empty. Also, in the database the array is serialized. Do I need to unserialize it first? I am unsure which page is feeding the $order->data array to the pdf invoice.

أنت
This website uses no cookies and no third party tracking technology. We think we can do better than others and really think about your privacy.