Tnx it works great.
So I've added a text snippet in front of the code which says delivery
echo "Delivery: "; $class = hikashop_get("class.product");
$data = $class->get($product->product_id);
echo $data->deliverytime;
Not all my products use the above custom field.
So the problem now is that the text "Dilvery" is displaying in the pdf invoice even if the custom field is NOT filled out.
So I need to add an "If condition" so that the text "delivery" only displays when the custom field is filled out in the product and displayed in the invoice.
Any advice on how to write the if condition in the above code ?
tnx