Hello,
Sorry for the delay.
I needed to performed some tests in order to be sure of my answer.
I understand your request and it could be something interesting to put in HikaMarket.
Creating a dynamic filter in order to check the vendor completion will be a little bit complicated.
For the products, it requires to add a link with the hikashop product table.
In HikaMarket, you have a trigger for the vendor listing :
www.hikashop.com/support/documentation/1...VendorListingDisplay
So thanks to a custom plugin, you can add your own filters and you can modify dynamically the query which will be processed by HikaMarket.
In the parameter $sql_params, you can add a SQL join for the product table.
But if you want to only display the vendor with products, it will require to perform an "HAVING" in the SQL query and currently, there is no parameter for that (so we need to add it).
In the file "components/com_hikamarket/views/vendormarket/view.html.php"
Replacing:
By
$order = '';
$having = array();
And
'order_accept' => &$orderingAccept
);
By
'order_accept' => &$orderingAccept,
'having' => &$having
);
And finally
if($this->params->get('random'))
$order = ' ORDER BY RAND()';
By
if($this->params->get('random'))
$order = ' ORDER BY RAND()';
if(!empty($having))
$order = ' HAVING ' . implode(' AND ', $having) . $order;
Then it will be possible in the plugin to modify "join" to like with the HikaShop table products, "select" to get the count of products and "having" to only get vendor with products.
$sql_params['join']['vendor_products'] = 'LEFT JOIN #__hikashop_product AS hkp ON hkp.product_vendor_id = vendor.vendor_id AND hkp.product_published = 1 and hkp.product_type = \'main\'';
$sql_params['select']['vendor_products'] = 'COUNT(hkp.product_id) AS vendor_products';
$sql_params['having']['vendor_products'] = 'vendor_products > 0';
And it should do the trick !
Regards,