Hi,
I can see a way to potentially do it.
The simplest with just HikaShop would be to create custom fields of the table "user":
- One field of the type "single dropdown", with the "please select" choice and the "required" setting activated to choose "company" or "employee" (so two values in the "data" area)
- One field with the "display limited to" setting set to "company" as an "text" so that companies registering can enter their company name
- One field of the type "single dropdown" with the "please select" choice, with a MySQL query for the data which would be:
SELECT xxx as value FROM #__hikashop_user WHERE xxx != ''
where xxx is to be replaced by the column name of the second field where the companies enter their name. That will generate a dropdown with the name of all the companies for the employees
That way, you'll know which user is for which company.
Then, you can create a custom order field if you need to get that information for each order, and you can have a mass action to fill the custom order field with the third custom user field above when the order is being created.