Dear fellow Prestashoppers!
I have this situation:
I am constructing a B2B site where on the one hand I have a provider of office material.
On the other hand there is a large corporation with many offices spread around the country.
Within the corporation there are several companies.
Each of the offices belong to one of these companies.
Every company has a purchasing manager that should see his offices, but not the others.
So, with respect to the standard installation, I thought that every office should be a customer and a purchasing manager should be a new role in the employee class.
I created a new class "Company" and I added it as an attribute to the Customer and to the Employee classes. This way there is a link between an Employee (purchasing manager) and a Customer (office).
Now, when a purchasing manager logs in to the ps admin interface he should only see the profiles and the orders of the offices that belong to his company.
I understand that I should intervene on the AdminCustomers and the AdminOrders modules. But how? I have no clue.
Anybody?
Thanks a lot!