I have made an addon that builds an extra field for product. I want to show this value in the invoice. I get the value from this column and add to order_info
order.pre.php
<br />
if ($mode == 'print_invoice') {<br />
<br />
$order_info = fn_get_order_info($_REQUEST['order_id']);<br />
<br />
$products = $order_info['products'];<br />
<br />
foreach ($products as $k => $v) {<br />
<br />
$fatura_basligi = db_get_field("SELECT ?:products.fatura_basligi FROM ?:products ".<br />
"LEFT JOIN ?:order_details ON ?:order_details.product_id = ?:products.product_id ".<br />
"WHERE ?:order_details.product_id = ?i AND ?:order_details.order_id = ?i", $v['product_id'], $v['order_id']);<br />
<br />
if (!empty($fatura_basligi)) {<br />
$products[$k]['fatura_basligi'] = $fatura_basligi;<br />
}<br />
Registry::get('view')->assign('products', $products);<br />
<br />
<br />
}<br />
<br />
}<br />
<br />
```<br />
<br />
invoice.tpl<br />
```php
<br />
{foreach from=$order_info.products item="oi"}<br />
{$oi.fatura_basligi}<br />
{/if}<br />
```<br />
<br />
$products[$k]['fatura_basligi'] is not empty. I can see it in orders.pre.php and get but can not pass the value in invoice.tpl. Nothing appears. Where am I making mistake? <img src="upload://n4syhXZrRhsStKvmS4jT3Mp2S3k.png" class="bbc_emoticon" alt=":(">