• Resolved luanne12

    (@luanne12)


    I would like to know if there is a hook, or some code to enable an email sent to admin. when a private note is sent from an order from vendors dashboard. Thank-you.

    The page I need help with: [log in to see the link]

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Support mouindi

    (@mouindi)

    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.

    Plugin Support mouindi

    (@mouindi)

    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.

    Plugin Support mouindi

    (@mouindi)

    @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' ],
    ));
    }
    Thread Starter luanne12

    (@luanne12)

    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.

    Plugin Support sangi00

    (@sangi00)

    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.

Viewing 5 replies - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.