Banner Logo

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

Contact Vendor

WCMp Advanced Frontend Manager

Resolved
Viewing 11 reply threads
  • Author
    Posts
    • #121988
      DragNfLy
      Participant

      Hi,

      Firstly:
      When testing the “WCMp: Contact Vendor” widget; – the email that is received by the vendor has a from email address. Where is this email address fetched from? Is it the same as set in WooCommerce From field? Can I change the WCMp from address without changing the email set in WooCommerce?

      Secondly: The email that is received by the vendor has a cc email address which is the site admin address. I do not want the Vendor to see this CC address. Can it be updated to BCC instead?

      I look forward to hearing from you.

      Kind regards,
      Dale

    • #122001

      Hi,
      Firstly: >>>>
      Yes. It is coming from woocommerce email settings. Here is the woocommerce doc : https://docs.woocommerce.com/document/woocommerce-email-customizer/
      Secondly: >>>>
      use this below code in your currently active theme functions.php file to remove cc email

      add_filter('wcmp_vendor_contact_widget_email_goes_to_admin', '__return_false');
      Copy
    • #122038
      DragNfLy
      Participant

      Hi Guy,

      Thank you for your reply.

      The link you provided for the WooCommerce doc links to a plugin.

      My question 1 was: ” Can I change the WCMp from address without changing the email set in WooCommerce?

      As for the 2nd question: The code provided works but I would still like to keep an Archive of Vendor Contact emails for spam and abuse monitoring.
      Can I not rather have the CC email to admin be a BCC to admin so I get the email for archiving and the Vendor does not see the admin email address?

      I look forward to hearing from you.

      Kind regards,
      Dale

    • #122050

      Dale, our team will check and get back to you.

      Kindly provide them some time.

    • #122123

      Hi,
      We are completely inherited woocommerce mail. There is no other way to change from address except woocommerce email settings.
      the second >>>> for converting it to bcc email you need to do customization. You can check this link
      https://www.businessbloomer.com/woocommerce-add-to-cc-bcc-order-email-recipients/
      It may help.
      Thanks

    • #122203
      DragNfLy
      Participant
      This reply has been marked as private.
    • #122235

      Hi,
      You might have some errors in your site after adding your code. WordPress has a feature to display errors on your site. You need to on debug log for that. This link https://wordpress.org/support/article/debugging-in-wordpress/ may help you out.
      * As per woocommerce email structure every email has a unique id. For our contact vendor this id is —

      vendor_contact_widget_email
      Copy

      .So you need to change if ( ‘customer_completed_order’ == $email_id ) { this line with if ( ‘vendor_contact_widget_email’ == $email_id ) {
      —————————————————
      By the way, only for you, we are providing a completely tested demo code. Use this code in your currently active theme functions.php file
      But before that remove https://multivendorx.com/support-forum/topic/contact-vendor-2/#post-122001 this provided code
      By using, this code your cc email will be removed, and add a bcc mail. Here is the proof — https://www.loom.com/share/ddd9aaf253f34c8e8ba66186ee0bff86
      Now you can change as per your requirement —
      Here is the code –

      // remove cc mail
      add_filter('wcmp_vendor_contact_widget_email_goes_to_admin', '__return_false');
      //add bcc mail
      add_filter('wcmp_vendor_contact_widget_email_headers', function( $header, $email_id, $object ) {
          $header .= 'Bcc: Admin <rajsekhar+5@dualcube.com>'."\r\n";
          return $header;
      }, 99, 3);
      Copy
    • #122253
      DragNfLy
      Participant

      Hi Raju,

      The code works beautifully. Thank you so much.

      The email received by the vendor uses the template > vendor-contact-widget-email.php

      This template does not output correctly in the email.

      The email reads “Hello Test Vendor,<br>A customer is trying to contact you. Details are as follows:

      So you can see the line break <br> is output in the email and is on the same line. There is no break.

      Can this be addressed please. Line 20 of the template file mentioned above.

      Kind regards,
      Dale

    • #122268

      Hi,
      Thank you very much for finding this issue. We have also recreated this on our end. We have already added solve on our Github. So that for now you can download https://github.com/cool-raju/dc-woocommerce-multi-vendor/tree/fix/858 this version from our GitHub to fix this issue. We will fix this in our next update. If you don’t know how to download the plugin from GitHub then https://scrnli.com/6KrNmAHHeUv1kJ this link may help you out.
      Thanks

    • #122291
      DragNfLy
      Participant

      Hi Raju,

      Only a pleasure; – thank you for assisting with custom code for this issue and updating the vendor-contact-widget-email.php template file.

      All the best.
      Dale

    • #122292

      I hope you are satisfied with our assistance and plugin. A 5/5 review here- https://wordpress.org/support/plugin/dc-woocommerce-multi-vendor/reviews/#new-post, would be a great way to share your experience with others.

      This motivates us to continue providing the best experience possible and also helps others know how WC-Marketplace can make their life easier.

    • #125496

      Hi, we haven’t heard back from you for a while. We presume this issue has been fixed.

      Please open another thread if you need any further help

Viewing 11 reply threads

The topic ‘Contact Vendor’ is closed to new replies.