Ahojte ako upravit tento kod? 9 je skupina ale potrebujem tam pridat este aj 7, ako na to?
Kód:
$allowOrder = false;
$realStock = intval($child["product_in_stock"]) - intval($child["product_ordered"]);
if ($realStock > 0 ||
(intval($child_product->shoppergroup_id) > 6 &&
$child['product_available_date'] != '0000-00-00 00:00:00') ||
in_array(9, $this->shoppergroup_ids)
) {
$allowOrder = true;
}
$products[$i]['child'] = $child;
$products[$i]['child']["realStock"] = $realStock;
$products[$i]['prices'] = $prices;
$products[$i]["allow_order"] = $allowOrder;
$i++;
D.