Hi @luanne12, thanks for getting in touch with us.
Currently, there is no such option to send the mail to admin, when vendor is adding note. We will provide you a code for this.
Hi @luanne12, we have added a new filter on our end, so for now kindly use the latest version from here and use this filter to trigger the admin mail for private note.
mvx_vendor_private_comment
So, after downloading the plugin , follow these steps :
– Delete the installed MultiVendorX via wp-admin >> plugin
– Unzip the GitHub plugin
– Rename the folder as “dc-woocommerce-multi-vendor” and remove the other tag. Now, zip this folder again.
– Install this plugin on your site.
After that add the custom code to trigger the mail.
We will add the same filter in our next official update.
@luanne12, Kindly use this following code with the fixed version :
add_filter('mvx_vendor_private_comment', 'mvx_vendor_private_comment_mail');
function mvx_vendor_private_comment_mail( $args ) {
$email_note = WC()->mailer()->emails['WC_Email_Customer_Note'];
$email_note->trigger(array(
'order_id' => $args[ 'order_id' ],
'customer_note' => $args[ 'private_note' ],
));
}
Has this been updated yet to the fixed version? I added the above code to my website theme functions php, but when I add a private note to an order, the email still gets sent to the customer, not me.
Hello there,
We have already included the mentioned fix in our update. Additionally, we have tested the provided code on our end, and when a vendor submits a private note ( Reference ), the admin receives the corresponding email notification as expected ( Reference ).
Could you please check again on your end carefully? If the issue persists, feel free to reach out to our team for further assistance via our Support Forum.