• Resolved bobsouza

    (@bobsouza)


    Hello folks, how you doing?

    Is there a way to notify vendors only when order is processing? By default, the vendors are notified every time a new order is placed, regardless its status.

    I’ve edited the file includes/Emails/VendorNewOrder.php as pictured on this screenshot https://share.getcloudapp.com/WnubpYWA, but that doesn’t work on my staging or production server ??

Viewing 4 replies - 1 through 4 (of 4 total)
  • Hello @bobsouza,

    Thanks for your ticket.

    If you do not want to get vendor any email when another order status changing then you need to modify into dokan plugin. VendorNewOrder.php is only for New order email.

    Kindly check this file- /dokan-lite/includes/functions.php and check this function dokan_stop_sending_multiple_email

    Cheers!

    Thread Starter bobsouza

    (@bobsouza)

    Hi @nazmulhassann20 , thanks for your support. I have solved my issue using replacing this block of code at includes/Emails/VendorNewOrder.php:

    add_action( "woocommerce_order_status_pending_to_completed_notification", array( $this, "trigger" ), 10, 2 );
    add_action( "woocommerce_order_status_pending_to_on-hold_notification", array( $this, "trigger" ), 10, 2 );
    add_action( "woocommerce_order_status_failed_to_processing_notification", array( $this, "trigger" ), 10, 2 );
    add_action( "woocommerce_order_status_failed_to_completed_notification", array( $this, "trigger" ), 10, 2 );
    add_action( "woocommerce_order_status_failed_to_on-hold_notification", array( $this, "trigger" ), 10, 2 );

    with this one add_action( "woocommerce_order_status_on-hold_to_processing_notification", array( $this, "trigger" ), 10, 2 );

    Now the vendor is only notified when a order has a processing status.

    • This reply was modified 4 years, 7 months ago by bobsouza.
    • This reply was modified 4 years, 7 months ago by bobsouza.

    The dokan_stop_sending_multiple_email works with the admin email, but it still sends new order emails to the vendor.

    Is there a way to insert a filter im the functions.php of the child theme, to prevent sending new order emails to the vendors?

    Hello @ricardo122 ,

    This particular request was on a different topic.

    I have already replied in another thread with updated information on how to disable new order notification for vendors. If you have any other questions please create a new thread.

    Thank you ??

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Vendor new order notification’ is closed to new replies.