Print Extra Field In Invoice Pdf

Hello,

we have 2 extra fields in product options called Height and Length.

These fields must be stored in the Extra field of cscart_order_details table.

Its under the price_calc tag below:

a:12:{s:10:"price_calc";a:3:{s:10:"Length";s:3:"350";s:8:"Height";s:3:"160";s:16:"total_price_calc";d:226.64;}.................

We want these fields to be displayed on the Print Order Invoice PDF for each product.

What file do i have to edit and what code do i have to add to do that?

Thank you in advance

Avelstorm

design/backend/templates/views/orders/details.tpl

design/backend/mail/templates/orders/invoice.tpl

design/themes/THEME/templates/views/orders/details.tpl

design/themes/THEME/mail/templates/orders/invoice.tpl

Use the orders:items_list_row hook

And how exactly can i reference the specific fields of Length and Height by using the orders:items_list_row hook?

Thank you

Avelstorm

it depends on how the data is stored. To see the whole content of the product data, please use the following code:

{$product|fn_print_r}

for e-mail templates:

{$oi|fn_print_r}