Hi,
1. You can find the subtotal into
$data->cart->order_subtotal
2. Because your custom field is a text custom field, you just need to display the content of the field ; you do not need to convert the value into a "title".
echo $data->cart->trackingnummer
Otherwise, I suppose that your order custom field is not available in the frontend but only in the backend ; which would explain why the field is not loaded (the first parameter "frontcomp" indicate the front end component).
3. There is a setting in HikaShop to show or not the product code.
The email read that setting to display (or not) the product code.
'ORDER_PRODUCT_CODE' => (bool)$config->get('show_code', false),
Regards,