register existing customer as vendor

WCMp Core

Resolved
Viewing 4 reply threads
  • Author
    Posts
    • #195636
      vijay
      Participant

      Hi team,
      is it possible to upgrade the existing user with a role of customer/subscriber to vendor

      i am trying to use registration form to apply any visitor or existing customer to become vendor,
      but if an existing customer fills the form then we are getting error message as
      “Error: An account is already registered with your email address. Please log in.”
      tried to add the user from admin panel also but also i got error like “Username already exists”

    • #195639

      You can update user role by going to Admin dashboard>>Users>>All users, select the user you want to change user role click on edit and once redirected to the edit user page update the user role (https://prnt.sc/52N3hmub5DnY) accordingly.

    • #195938
      vijay
      Participant

      In the file

      vendor_registration.php
      Copy

      (located at

      wp-content/plugins/dc-woocommerce-multi-vendor/templates/shortcode/vendor_registration.php
      Copy

      ), i have copied this file to (wp-content/themes/flatsome-child/MultiVendorX/shortcode/vendor_registration.php).

      it’s evident that the

      is_user_logged_in()
      Copy

      function is being used. This implies that user authentication is already being managed to determine whether a user is logged in or not.

      Now, my objective is to modify the user’s role to “dc_pending_vendor” if they are logged in.

    • #195946

      @vijay, can you please explain the flow you are looking for, so we can assist you with this.

    • #204008

      Its been a while and we have not heard back from you. We presume your query is solved now. We are closing this thread. If you need help or face issue in future please create a new support topic.

Viewing 4 reply threads

The topic ‘register existing customer as vendor’ is closed to new replies.