Send WCMp Refund & Cancel order emails to Vendors

We're shifting our Forum based support to a more dedicated support system!

We'll be closing our Forum support from 10th June, 2020 and move to Email Support assistance.

  • If you are a WCFM premium add-ons user, contact us- here
  • Want to know more before buying our add-ons? Send Pre sale queries- here
  • If you are a WCFM free user, please open a support ticket at WordPress.org
  • For WCFM App related queries, reach us- here
From now the forum will be read-only!

Multi Vendor Marketplace Plugin | WCFM Marketplace Forums WC Marketplace Send WCMp Refund & Cancel order emails to Vendors

Viewing 10 reply threads
  • Author
    Posts
    • #25302
      clevelook
      Participant

      Hello,

      How to hide “Epeken Product Config” tab in product editor ?

      Thanks

    • #25316
      WCFM Forum
      Member

      Hi,

      Kindly add this line to your site for the purpose –

      add_filter( 'wcfm_is_allow_epeken', '__return_false' );

      Thank You

    • #25338
      cleve
      Guest

      Hello,

      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.

    • #25341
      WCFM Forum
      Member

      Hi,

      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

    • #25344
      cleve
      Guest

      I am using wc-marketplace

      Can it be applied on wc-marketplace ?.

    • #25354
      WCFM Forum
      Member

      Hi,

      Yeah it’s possible to implement, but these comes under custom development.

      Please know me your thoughts.

      Thank You

    • #25423
      cleve
      Guest

      Well, 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.

    • #25466
      WCFM Forum
      Member

      Hi,

      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

    • #25467
      WCFM Forum
      Member

      Topic title updated and moved to WC Marketplace forum.

    • #25469
      cleve
      Guest

      Thanks, hope this function already included in the next release……
      Very good.

    • #25470
      WCFM Forum
      Member

      Hi,

      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

Viewing 10 reply threads
  • The topic ‘Send WCMp Refund & Cancel order emails to Vendors’ is closed to new replies.