Hi,
Bundled products on products with variants is not supported now.
However, looking into it, I think it could be added with a few lines of code.
Try adding the code:
$query = 'SELECT product_parent_id FROM #__hikashop_product WHERE product_parent_id > 0 AND product_id IN ('.implode(',', $bundle_product_ids).')';
$this->database->setQuery($query);
$parents = $this->database->loadObjectList('product_parent_id');
if(!empty($parents)) {
foreach($parents as $k => $v) {
$bundle_product_ids[ (int)$k ] = (int)$k;
}
}
before the line:
$query = 'SELECT pr.product_id as `bundle_id`, pr.product_related_id as `product_id`, pr.product_related_quantity, p.product_name, p.product_code, p.product_tax_id '.
in the file administrator/components/com_hikashop/classes/order_product.php and it should hopefully do it.
Note also that the stock will be updated based on the "Update the product stock on confirmed status" option of the HikaShop configuration. If that option is activated, the status of the order needs to be confirmed for the stock to be updated.