Best Multi Vendor Marketplace Plugin for WordPress › Forums › WC Marketplace › Send WCMp Refund & Cancel order emails to Vendors
- This topic has 10 replies, 3 voices, and was last updated 6 years, 11 months ago by
WCFM Forum.
- AuthorPosts
- June 23, 2018 at 4:27 pm #25302
clevelook
ParticipantHello,
How to hide “Epeken Product Config” tab in product editor ?
Thanks
- June 24, 2018 at 4:44 am #25316
WCFM Forum
MemberHi,
Kindly add this line to your site for the purpose –
add_filter( 'wcfm_is_allow_epeken', '__return_false' );
Thank You
- June 24, 2018 at 1:24 pm #25338
cleve
GuestHello,
Why cancelled order and refunded order emails are sent to customer but not also the vendor ?
How to make these email also sent to vendor ? Thanks. - June 24, 2018 at 3:03 pm #25341
WCFM Forum
MemberHi,
Cancel and refunded orders emails are triggered from WooCommerce core, so only customers are receiving these.
Can you please know me which multi-vendor plugin you are using ?
Thank You
- June 24, 2018 at 4:21 pm #25344
cleve
GuestI am using wc-marketplace
Can it be applied on wc-marketplace ?.
- June 25, 2018 at 6:12 am #25354
WCFM Forum
MemberHi,
Yeah it’s possible to implement, but these comes under custom development.
Please know me your thoughts.
Thank You
- June 26, 2018 at 7:12 am #25423
cleve
GuestWell, the thought is simple:
Vendor also received the “cancellation email” and “refund email” notification besides the customer, so the vendor knows that this order has been taking an action.
The marketplace website take an action and responsibility even the vendor does not shipped the items. - June 26, 2018 at 8:56 am #25466
WCFM Forum
MemberHi,
Kindly add this code to your site for the purpose –
function wcfm_filter_order_emails_recipient( $recipients, $order ) { $recipients = ''; if( $order && is_object( $order ) ) { $line_items = $order->get_items( apply_filters( 'woocommerce_admin_order_item_types', 'line_item' ) ); foreach ( $line_items as $item_id => $item ) { $vendor = get_wcmp_product_vendors( $item->get_product_id() ); if( $vendor ) { $vendor_id = $vendor->id; $vendor_data = get_userdata( $vendor_id ); if ( ! empty( $vendor_data ) ) { if ( isset( $recipients ) ) { $recipients = $vendor_data->user_email; } } } } } return $recipients; } add_filter( 'woocommerce_email_recipient_customer_refunded_order', 'wcfm_filter_order_emails_recipient', 20, 2 ); add_filter( 'woocommerce_email_recipient_cancelled_order', 'wcfm_filter_order_emails_recipient', 20, 2 );
Thank You
- June 26, 2018 at 9:00 am #25467
WCFM Forum
MemberTopic title updated and moved to WC Marketplace forum.
- June 26, 2018 at 9:02 am #25469
cleve
GuestThanks, hope this function already included in the next release……
Very good. - June 26, 2018 at 9:19 am #25470
WCFM Forum
MemberHi,
No, we are not going to add this in WCfM core.
For orders vendor emails triggered from WC Marketplace. WCfM has functions but disabled.
You just add this code to your site.
Thank You
- AuthorPosts
- The topic ‘Send WCMp Refund & Cancel order emails to Vendors’ is closed to new replies.