Approved Vendor Account email

WCMp Vendor Staff

Approved Vendor Account email Resolved

Viewing 4 reply threads
  • Author
    Posts
    • #21546
      nlschutz
      Participant

      Hi Support,
      In the approved-vendor-account.php line 19, which is like this:
      <?php printf( __( “Applicant Username: %s”, ‘dc-woocommerce-multi-vendor’ ), $user_login ); ?>
      It appears that woocommerce will let user login with either their full email address(e.g. uname@domain.com) or their partial email address without the domain portion(e.g. uname). I definitely want to ask users to login with their full email address.
      Therefore, in line 19, I want to change the $user_login to be the user email. But I am not sure what variable name to use. I tried $user_email and $ $email. Both invalid.
      Hope to hear from you soon.
      Nan

    • #21562
      WCMp Admin
      Keymaster

      As we can understand, you want to add Vendor’s email in the “Approved Vendor account” email, for that please override the “approved-vendor-account.php” template file via dc-woocommerce-multi-vendor/templates/emails and replace this line :

      <?php printf( __( “Applicant Username: %s”, ‘dc-woocommerce-multi-vendor’ ), $user_login ); ?>
      Copy

      with

      <?php 
      $user = get_user_by('login', $user_login);
      printf( __( “Applicant Useremail: %s”, ‘dc-woocommerce-multi-vendor’ ), $user->user_email ); ?>
      Copy
    • #21567
      nlschutz
      Participant
      This reply has been marked as private.
    • #21676
      WCMp Admin
      Keymaster
      This reply has been marked as private.
    • #22032
      nlschutz
      Participant

      Thanks! You can close the ticket.

Viewing 4 reply threads

The topic ‘Approved Vendor Account email’ is closed to new replies.

Buy all Marketplace addons together, check out our Bundle

Buy at Slashed Price