Get more for your money each Wednesday with big savings on selected extensions. Shop this week's deals.
Product Icon

Product Vendors for WooCommerce

by Woo
Turn your store into a multi-vendor marketplace

Option to define which emails should be sent to vendors

It would be nice to have the option to exclude some emails to be sent to vendors when specific status are triggered.

on the file class-wc-product-vendors-order-email-to-vendor.php

please consider replace this:

add_action( ‘woocommerce_order_status_pending_to_processing_notification’, array( $this, ‘trigger’ ) );
add_action( ‘woocommerce_order_status_on-hold_to_processing_notification’, array( $this, ‘trigger’ ) );
add_action( ‘woocommerce_order_status_pending_to_completed_notification’, array( $this, ‘trigger’ ) );
add_action( ‘woocommerce_order_status_pending_to_on-hold_notification’, array( $this, ‘trigger’ ) );
add_action( ‘woocommerce_order_status_failed_to_processing_notification’, array( $this, ‘trigger’ ) );
add_action( ‘woocommerce_order_status_failed_to_completed_notification’, array( $this, ‘trigger’ ) );
add_action( ‘woocommerce_order_status_failed_to_on-hold_notification’, array( $this, ‘trigger’ ) );

by this:

$array_actions_to_send_email = array(
‘woocommerce_order_status_pending_to_processing_notification’,
‘woocommerce_order_status_on-hold_to_processing_notification’,
‘woocommerce_order_status_pending_to_completed_notification’,
‘woocommerce_order_status_pending_to_on-hold_notification’,
‘woocommerce_order_status_failed_to_processing_notification’,
‘woocommerce_order_status_failed_to_completed_notification’,
‘woocommerce_order_status_failed_to_on-hold_notification’,
);

foreach( apply_filters(‘wc_product_vendors_emails_actions’,$array_actions_to_send_email) as $action) {
add_action( $action, array( $this, ‘trigger’ ) );
}

Author

Current Status

Open

Last updated: January 17, 2020

0 comments

Log in to comment on this feature request.

Use of your personal data
We and our partners process your personal data (such as browsing data, IP Addresses, cookie information, and other unique identifiers) based on your consent and/or our legitimate interest to optimize our website, marketing activities, and your user experience.