Now when this segment of code is run
$productClass = hikashop_get('class.product');
$product_id = $order->products[0]->product_id;
$product = $productClass->get($product_id);
The error on the attachment is seen.
A Second unrelated problem am getting is with the email templates. found here index.php?option=com_hikashop&ctrl=email
I edited the email templates for order creation notification and order status notification. But i notice is for any change in order status, only this email template is used - order status notification.
We need a different message printed when an order is created so we edited the order creation notification template. But it doesnt use this rather it uses the old order status notification. Please how do i fix this.