Hi,
>> Fetch all product by using vendor location, categories.
— vendor location is saved as a meta key named ‘_vendor_city’,’_vendor_country’,’_vendor_state’.
— get the all vendor using ‘get_wcmp_vendors($args = array(), $return = ‘object’)’ function set argument with meta_query.
— create a product query with arguments author as vendor ids and tax_query for categories.