Banner Logo

Be a part of the family: Connect, Receive Support,
Contribute, and Reap Abundant Rewards

Display vendor email in custom emails

WCMp Mangopay Marketplace

Tagged: 

Resolved
Viewing 5 reply threads
  • Author
    Posts
    • #137184
      Hadhemi Ragoubi
      Participant

      Hello ,
      I am trying to customise vendors emails (approved-vendor-account,suspend-vendor-account,rejected-vendor-account).So I want to display the vendor email his user name .I wrote the following codes :
      <?php printf( esc_html__( “Vendor Username: %s”, ‘dc-woocommerce-multi-vendor’ ), $user_login ); ?> //It succeded to display the username
      <?php printf( esc_html__( “Vendor email: %s”, ‘dc-woocommerce-multi-vendor’ ), $vendorWCMP->user_data->vendor_email ); ?> //It shows nothing
      <?php printf( esc_html__( “Vendor email: %s”, ‘dc-woocommerce-multi-vendor’ ), $user_object->user_email ); ?> //It shows nothing

      Please Help me

    • #137198

      Hi,
      Kindly let me know how did get those variable – $vendorWCMP and $user_object.

      Kindly share screenshot where do you want to show which data. so we will help you out.

      Regards,

    • #137245
      Hadhemi Ragoubi
      Participant
      This reply has been marked as private.
    • #137276

      Hi,
      Using below code you can get the email

      $user = get_user_by('login', $user_login );
      echo $user->data->user_email;
      Copy

      Regards,

    • #137289
      Hadhemi Ragoubi
      Participant

      Hello,
      Thank you for your response
      I tried the solution and it worked wonderfully
      Thank you so much , Keep up the good work

    • #137294

      Great to know that @Hadhemi Ragoubi

      We would love it if you shared your experience by giving us 5/5 review here : https://wordpress.org/support/plugin/dc-woocommerce-multi-vendor/reviews/#new-post
      Seeing glowing reviews from existing customers makes others more comfortable knowing they’ll get the support they need should an issue with our services arise.

Viewing 5 reply threads

The topic ‘Display vendor email in custom emails’ is closed to new replies.