Hi,
Indeed, the id of the products is not included. But I think it's a good starting point for what you want.
There is no option to add the id though. I think you would have to change the line:
$widget->exportFields=array('order_product_name', 'quantity');
to something like this:
$widget->exportFields=array('order_product_name', 'quantity', 'product_id');
in the file administrator/components/com_hikashop/classes/widget.php
Ideally, you would want to do a class override of that file and override the data function where that line of code is, in order to replace that line in the override function. That way, you would keep your change during updates of HikaShop.
You can read more about class override here:
www.hikashop.com/support/documentation/6...ntation.html#classes