Public Ticket #3177623

Multiple Sales Agents

Closed
Comments
2,762
KingsPlugins replied 4 years ago on November 29, 2022 at 9:33pm

Hi Darren,

If you'd like, it's possible to allow all agents to place orders for / manage all customers. To do that, you would go to SalesKing -> Settings -> Agent Capabilities and enable "All agents can manage / shop for all customers".


Besides that setting, there is no way to actually assign multiple agents to the same customer. This is because for example the agent assigned will get the commission (if commissions are used) for the customer's orders - so there can be only 1 agent assigned.


Kind regards,

Stefan

2,762
KingsPlugins replied 4 years ago on November 30, 2022 at 11:07pm

Hi again,

Do you mean when the agent places the order successfully for the customer? In that moment you would like them to be automatically redirected back to the dashboard, without having to click on 'Switch to Agent'? Did I understand that correctly?


I think we could write a code snippet for that - my main concern with that is: If the agent would be immediately redirected,  could that be confusing for the agent, because the agent wouldn't know if the order was placed successfully or not? 

17 Tickets 18
Darren Robinson replied 4 years ago on December 6, 2022 at 12:20pm

Hi, your right it maybe confusing as the agent wont know if the order has gone through!

Another question, Can the my orders tab be hidden in the agent dashboard but still leave the agent assigned column in the admin orders side? Also can the edit customer button in the agent my customers tab be changed to say view instead of edit?


Thank you for your time

Darren

17 Tickets 18
Darren Robinson replied 4 years ago on December 15, 2022 at 9:29am

Hi Stefan,


Thank you. the agent column in the admin orders page is needed just for information so the admin knows which agent is assigned to the order. The my orders tab in the agent dashboard is not needed.

Thank foe the new version of sales king to allow me to chnage then edit text


Darren

Thank you for the 

2,762
KingsPlugins replied 4 years ago on December 18, 2022 at 7:19pm

To achieve that (hide agent tab in vendor dashboard only), you can add this PHP code snippet to your site:

add_filter('option_salesking_agents_can_manage_orders_setting', function($val){
    if (!is_admin()){
        $val = 0;
    } else {
        $val = 1;
    }
    return $val;
}, 10, 1);

Have a great week,


Kind regards,

Stefan

Sign In