Blond moment ...
Add products_id to:
PHP Code:
$orders_products = $db->Execute("select orders_products_id, products_name, products_model,
products_price, products_tax, products_quantity,
final_price, onetime_charges,
product_is_free,
products_id
from " . TABLE_ORDERS_PRODUCTS . "
where orders_id = '" . (int)$order_id . "'");
And add products_id to:
PHP Code:
$this->products[$index] = array('qty' => $new_qty,
'id' => $orders_products->fields['products_id']
'name' => $orders_products->fields['products_name'],
'model' => $orders_products->fields['products_model'],
'tax' => $orders_products->fields['products_tax'],
'price' => $orders_products->fields['products_price'],
'onetime_charges' => $orders_products->fields['onetime_charges'],
'final_price' => $orders_products->fields['final_price'],
'product_is_free' => $orders_products->fields['product_is_free']);
Then call it in the invoice.php with: $order->products[$i]['id']
Bookmarks