Okay
  Public Ticket #3568938
Is possible to define a sales agent that can see all orders from his dashboard?
Closed

Comments

  •  1
    Gennaro started the conversation

    Is possible to define a sales agent that can see all orders from his dashboard?
    Or is possible to define that every agent can see all orders made by every one in his dashboard?


  •  1,906
    WebWizards replied

    Hi Gennaro,


    It is possible to allow all agents to see all orders in their dashboard.

    To do this, please add the following PHP code snippet to your site:

    add_filter('salesking_agents_see_all_orders','__return_true');
    


    This snippet can be added to functions.php, or by following our guide here: https://woocommerce-b2b-plugin.com/docs/how-to-add-a-snippet-php-or-js/


    If you would like, we can also make the snippet work for only a specific agent, by setting the agent user ID in the snippet. In that case, please let me know what the user ID you want to target is.


    Looking forward to your response,


    Kind regards,

    Stefan