WCMp Advanced Frontend Manager
Tagged: contact vendor
-
AuthorPosts
-
-
May 21, 2021 at 6:09 PM #121988DragNfLyParticipant
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 -
May 21, 2021 at 7:57 PM #122001Raju The Cool GuyKeymaster
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 emailadd_filter('wcmp_vendor_contact_widget_email_goes_to_admin', '__return_false');
Copy -
May 22, 2021 at 5:17 PM #122038DragNfLyParticipant
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 -
May 22, 2021 at 6:50 PM #122050NerdySupportExpert MoumitaKeymaster
Dale, our team will check and get back to you.
Kindly provide them some time.
-
May 24, 2021 at 8:21 PM #122123Raju The Cool GuyKeymaster
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 -
May 26, 2021 at 3:13 PM #122203DragNfLyParticipantThis reply has been marked as private.
-
May 26, 2021 at 8:28 PM #122235Raju The Cool GuyKeymaster
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 -
May 27, 2021 at 1:57 AM #122253DragNfLyParticipant
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 -
May 27, 2021 at 5:43 PM #122268Raju The Cool GuyKeymaster
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 -
May 27, 2021 at 7:55 PM #122291DragNfLyParticipant
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 -
May 27, 2021 at 8:07 PM #122292Raju The Cool GuyKeymaster
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.
-
July 27, 2021 at 12:21 PM #125496MVX Support NinjaKeymaster
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
-
-
AuthorPosts
The topic ‘Contact Vendor’ is closed to new replies.