Public Ticket #3494951

Tiered sub-accounts

Closed
Comments
2 Tickets
Nigel started the conversation 3 years ago on October 9, 2023 at 8:20pm

Is it possible for you to expand the subaccount feature - which is really good - to allow an extra level?

The scenario is:
A shop owner is the top level
Each shop owner has many managers
Each manager has many staff/operators under them

It would work the same as it currently does for subaccounts but the shop owner would be able to see all orders placed either by their managers or the staff under them - same with lists and any other permissions.

2,762
KingsPlugins replied 3 years ago on October 9, 2023 at 8:44pm

Hi Nigel,

It is possible to enable a 3rd level of subaccounts, by adding this PHP code snippet to the site:

add_filter('b2bking_allow_multiple_subaccount_levels', '__return_true');

shop owner would be able to see all orders placed either by their managers or the staff under them

This should be how it works then.


Kind regards,

Stefan

2 Tickets
Nigel replied 3 years ago on October 9, 2023 at 9:45pm

Nice!

That mostly works well.

I've found that if I login as a subaccount, create another subaccount, login as that account, and click the button to switch back to the main account it only goes up one level and then the switch button is gone.

Also, can you add a hook to 

b2bking_orders_placed_by_column_content

So that we can use a company name (or combination of fields) to be displayed instead.

Sign In