Hi,
Totally right.
In the file "components/com_hikamarket/views/ordermarket/view.html.php" please replace
if($config->get('display_order_statistics', 0)) {
$query = 'SELECT o.order_status, COUNT(o.order_id) as `total` FROM '.hikamarket::table('shop.order').' AS o WHERE o.order_type = \'sale\' GROUP BY o.order_status';
$db->setQuery($query);
$order_stats = $db->loadObjectList('order_status');
ksort($order_stats);
}
By:
if($config->get('display_order_statistics', 0)) {
if($vendor->vendor_id > 1) {
$query = 'SELECT o.order_status, COUNT(o.order_id) as `total` FROM '.hikamarket::table('shop.order').' AS o WHERE o.order_type = \'subsale\' AND o.order_vendor_id = '.(int)$vendor->vendor_id.' GROUP BY o.order_status';
} else {
$query = 'SELECT o.order_status, COUNT(o.order_id) as `total` FROM '.hikamarket::table('shop.order').' AS o WHERE o.order_type = \'sale\' GROUP BY o.order_status';
}
$db->setQuery($query);
$order_stats = $db->loadObjectList('order_status');
ksort($order_stats);
}
For your "forbidden" problem, would it be possible to have an access (with FTP if possible) in order to check it directly ?
Regards,