Adding Staff Supervisor

WCMp Vendor Staff

Adding Staff Supervisor Resolved

Viewing 4 reply threads
  • Author
    Posts
    • #52697
      rumeau
      Participant

      Hello. I’m new to WCMP, and i have a client with some requirements. And im not sure if its possible.

      He has WC, WCMP and de Vendor Staff addon already installed.

      The questions are:

      1.- Can I add a supervisor user (can be another staff memeber) to each staff member?
      – I now I can customize the staff form in order to allow this.
      2.- Once a customer purchases a product from a vendor does all staff members get an email?, only the vendor?, or only one staff member?
      3.- If the staff member receives the email, is it possible to add a CC to this staff member supervisor?, what hook should i have to subscribe?

      Thanks in advance.

      Greetings.

    • #52757

      Hi @rumeau, our replies are inline :

      1.- Can I add a supervisor user (can be another staff memeber) to each staff member?
      – I now I can customize the staff form in order to allow this.

      >> As we assign the vendor staffs to the vendor. Hence in order to add another staff, who will act as a supervisor to the other staffs, you have to do custom code and add this support.

      2.- Once a customer purchases a product from a vendor does all staff members get an email?, only the vendor?, or only one staff member?
      3.- If the staff member receives the email, is it possible to add a CC to this staff member supervisor?, what hook should i have to subscribe?

      >> Only the vendor of the site receives the email. However, you can do the custom code to add vendor staff’s email for this.

      For this you need to use this filtre woocommerce_email_recipient_notify_shipped, you can reffer to this code snippet for further reffernce :

      add_filter('woocommerce_email_recipient_notify_shipped', 'sent_admin_too'); function sent_admin_too($recipient)
      { 
      $recipient .= ', sent_email_here'; 
      return $recipient; 
      }
      copy

      Let us know if you have any further query.

    • #52791
      rumeau
      Participant

      Thanks for the reply @moumita. I’ve managed to customize the Add Staff form. Unfortunately saving the information is made through AJAX call and data is hardcoded in the javascript. So i cant add additional fields to the post data.

      Is there another way to achieve this, or the only option is to override the plugin Javascript file and use custom one? I dont want to touch the plugin code but I’m running out of options.

      Thanks

    • #52860

      Hi @rumeau, yes you are rights. Currently, there is no hooks/filters provided to save extra data. It’s limited fields handled by script.

      You can dequeue our script and add your own or you can update user data manually after stuff is created. We will fix it in our next update.

    • #86091
      susmita
      Moderator

      Hi @rumeau,

      I presume that your issue is resolved, since, we haven’t heard back from you.

      We are marking this thread as resolved.

      Kindly open a new thread if you face any further query.

Viewing 4 reply threads

The topic ‘Adding Staff Supervisor’ is closed to new replies.

WCMp bundle is available at a slashed price

Grab It Now