New order / New booking emails

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!

Viewing 22 reply threads
  • Author
    Posts
    • #31067
      Vinz
      Participant

      Hi WC LOVERS,

      By default, Woocommerce sends email to Admin for new order and new booking. I would like to change the recipient field from Admin to WCFM marketplace vendor email address. Is there a shortcode to do this?

      Thank you !

      Vincent

    • #31166
      WCFM Forum
      Member

      Hi Vincent,

      Thanks for get in touch with us.

      Well, WCFM send out notification to vendor for all these – New Order, Booking

      You are not getting this as vendor?

      Thank You

    • #31205
      Vinz
      Participant

      Hi,

      I have emails from WCFM but it’s just notifications; I mean, there is no information about the order; just the order’s link.
      I would like to send default Woocommerce emails to Vendors instead of Admin. Do you think it’s possible?

      Thanks

      Vincent

    • #31310
      WCFM Forum
      Member

      Hi,

      Yeah off course possible, but if an order has more than one vendor’s product then it will goo for you to send out full mail to each vendor?

      Thank You

    • #31318
      Vinz
      Participant

      Yes no problem for us because our customers will make bookings one by one, and there is one vendor by product!
      Thanks !

    • #31343
      WCFM Forum
      Member

      Hi,

      OK, hope new Booking notification with all details will be fine for your purpose, right?

      Thank You

    • #31346
      Vinz
      Participant

      Yes exactly ! You think you can manage with this for next update? 🙂
      Meanwhile, where can I find the current template? I don’t find it..

      Thanks !

    • #31348
      WCFM Forum
      Member

      Hi,

      Yeah off course, we will add this in next update.

      Between, template for what? Notification emails?

      Thank You

    • #31357
      Vinz
      Participant

      Ok good news ! When will you outcome the next update?
      Yes the template of the current notification email 🙂

      Thanks very much !

    • #31367
      WCFM Forum
      Member

      Hi,

      Next update will be there late tonight.

      Well, there is no such template for those notification emails.
      Actually those are dynamically generated depending upon notification type.

      You may off course change email texts using translation (Loco Translate).

      Thank You

    • #31944
      Vinz
      Participant

      Hi WC LOVERS,

      Thanks for adding this feature (sending new booking email to vendors and not only to admin)

      But is it possible to do this for all default Woocommerce admin emails? (not to customers of course)
      Because I don’t use the default notification email of WCFM.

      Thanks !!

      Vincent

    • #31955
      WCFM Forum
      Member

      Hi,

      “Woocommerce admin emails?” – Can you please know me exactly which emails you want to send to vendors?

      Thank You

    • #31956
      Vinz
      Participant

      Hi,

      I would like to send those default woocommerce emails to vendors (not only to admin):

      – New order
      – Cancel order
      – Admin booking cancel
      – Cancel booking request (from customer)

      That all I think 🙂

      Thanks!

    • #32012
      WCFM Forum
      Member

      Hi,

      Ok, I will give you code for this.

      Thank you

    • #32019
      Vinz
      Participant

      Super ! Thanks !

    • #32152
      Vinz
      Participant

      Hi WC LOVERS,

      When do you think having times to write those codes?

      Let me know! 🙂

      Thanks!

    • #32192
      WCFM Forum
      Member

      Hi,

      I will give you this by tomorrow, sorry for delay.

      Thanks for your patience and cooperation 🙂

    • #32193
      Vinz
      Participant

      No worries ! Thanks again 🙂

    • #32479
      WCFM Forum
      Member

      Hi,

      I am really sorry for the delay.

      Here is your code for the purpose –

      function wcfm_filter_wc_emails_to_vendor( $recipients, $this_email ) {
      	global $WCFM;
      	if ( ! empty( $this_email ) ) {
      		if( $WCFM->is_marketplace ) {
      			
      			$vendor_email = $WCFM->wcfm_vendor_support->wcfm_get_vendor_email_from_product( $this_email->product_id );
      			if ( isset( $recipients ) ) {
      				$recipients .= ',' . $vendor_email;
      			} else {
      				$recipients = $vendor_email;
      			}
      	
      		}
      	}
      
      	return $recipients;
      }
      add_filter( 'woocommerce_email_recipient_new_order', 'wcfm_filter_wc_emails_to_vendor', 20, 2 );
      add_filter( 'woocommerce_email_recipient_cancelled_order', 'wcfm_filter_wc_emails_to_vendor', 20, 2 );
      add_filter( 'woocommerce_email_recipient_admin_booking_cancelled', 'wcfm_filter_wc_emails_to_vendor', 20, 2 );
      add_filter( 'woocommerce_email_recipient_booking_cancelled', 'wcfm_filter_wc_emails_to_vendor', 20, 2 );

      Thank You

    • #32563
      Vinz
      Participant

      Thanks very much !

    • #32677
      WCFM Forum
      Member

      You are welcome 🙂

      Sir, is this resolved your requirement?

      Thank You

    • #32782
      Vinz
      Participant

      Hi,

      I’m going to test it in detail next week and I will let you know 🙂
      But, in your latest update, you have added the possibility to setup notification/email for admin and vendors. So, your code and this feature will work fine together?

      Regards,

      Vincent

    • #32795
      Bingal
      Guest

      Hi,

      Yeah off course, this code is not depending upon that settings.

      In fact it is outside WCfM Notification system.

      Thank you

Viewing 22 reply threads
  • The topic ‘New order / New booking emails’ is closed to new replies.