Hi,
In the HikaShop product views (product page and product listing) you have access to the product's vendor object.
So you can modify the view "product | quantity" to display or not the "add to cart" button or the stock depending the vendor.
You shoud use
to access to the vendor of the processing product (if you are in a listing, the quantity view will be call for each product).
The vendor group is stored with the vendor access
$access = $this->row->vendor->vendor_access;
if(is_string($access))
$access = explode(',', $access);
if(in_array('@3', $access)) { // @3 means the group with the id 3.
// the vendor is in the group 3. Do some special stuff
}
The accesses starting with a @ are groups, otherwise it indicate the HikaMarket right (like "product_edit" or "order_listing").
Regards,