PDF Invoice Feature

Tól től Ismeretlen
Tagság dec. -0001 óta

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
Tól től Sweden
Tagság febr. 2013 óta

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

Tól től Ismeretlen
Tagság dec. -0001 óta

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.

Te
Ez a weboldal nem használ cookie-kat és nem használ harmadik féltől származó nyomkövetési technológiát. Úgy gondoljuk, hogy jobban tudjuk csinálni, mint mások, és tényleg gondolunk az Ön magánéletére.