Hi,
Please edit the file "administrator/components/com_hikashop/helpers/helper.php" and replace the contents
$ret = array('w' => 0, 'x' => 0, 'y' => 0, 'z' => 0);
if(empty($order->products))
return $ret;
By
$ret = array();
if(empty($order->products))
return array('w' => 0, 'x' => 0, 'y' => 0, 'z' => 0);
And also the content:
$qty = 1;
if(!empty($product->cart_product_quantity))
$qty = (int)$product->cart_product_quantity;
if(!empty($product->order_product_quantity))
$qty = (int)$product->order_product_quantity;
By
$qty = 1;
if(isset($product->cart_product_quantity))
$qty = (int)$product->cart_product_quantity;
if(isset($product->order_product_quantity))
$qty = (int)$product->order_product_quantity;
if($qty == 0)
continue;
You can also replace
} else {
if(empty($this->weightHelper))
$this->weightHelper = hikashop_get('helper.weight');
$weight += ((float)$this->weightHelper->convert($product->product_weight, $product->product_weight_unit, $weight_unit));
}
By
} else {
if(empty($this->weightHelper))
$this->weightHelper = hikashop_get('helper.weight');
$weight += ((float)$this->weightHelper->convert($product->product_weight, $product->product_weight_unit, $weight_unit));
}
if($weight == 0)
continue;
to exclude virtual products.
It should, I thing, fix your issue.
Regards,