Hi,
In the file "administrator/components/com_hikamarket/classes/statistics.php" you will find the different "requests" that HikaMarket can perform for the statistics in the control panel.
The first one (products_count) in the "getVendor" function is the request which count the number of products.
The idea is to add a filter to just count the products with the" product_type = 'main' ":
Replacing:
'filters' => array(
'product_published' => 'product.product_published = 1',
'product_vendor_id' => ('product.product_vendor_id = ' . (int)$vendor_id)
)
By
'filters' => array(
'product_published' => 'product.product_published = 1',
'product_type' => 'product.product_type = ' . $this->db->Quote('main'),
'product_vendor_id' => ('product.product_vendor_id = ' . (int)$vendor_id)
)
I think I will integrate this modification into HIkaMarket.
Regards,