Multi Vendor Marketplace Plugin | WCFM Marketplace › Forums › WC Marketplace › New order / New booking emails
Tagged: email order booking
- This topic has 22 replies, 3 voices, and was last updated 6 years, 2 months ago by Bingal.
- AuthorPosts
- September 7, 2018 at 2:46 pm #31067VinzParticipant
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
- September 8, 2018 at 4:20 pm #31166WCFM ForumMember
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
- September 9, 2018 at 9:08 am #31205VinzParticipant
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
- September 11, 2018 at 9:01 am #31310WCFM ForumMember
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
- September 11, 2018 at 9:34 am #31318VinzParticipant
Yes no problem for us because our customers will make bookings one by one, and there is one vendor by product!
Thanks ! - September 11, 2018 at 12:26 pm #31343WCFM ForumMember
Hi,
OK, hope new Booking notification with all details will be fine for your purpose, right?
Thank You
- September 11, 2018 at 1:33 pm #31346VinzParticipant
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 !
- September 11, 2018 at 2:12 pm #31348WCFM ForumMember
Hi,
Yeah off course, we will add this in next update.
Between, template for what? Notification emails?
Thank You
- September 11, 2018 at 3:22 pm #31357VinzParticipant
Ok good news ! When will you outcome the next update?
Yes the template of the current notification email 🙂Thanks very much !
- September 11, 2018 at 4:54 pm #31367WCFM ForumMember
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
- September 18, 2018 at 1:40 pm #31944VinzParticipant
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
- September 18, 2018 at 4:23 pm #31955WCFM ForumMember
Hi,
“Woocommerce admin emails?” – Can you please know me exactly which emails you want to send to vendors?
Thank You
- September 18, 2018 at 4:34 pm #31956VinzParticipant
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!
- September 19, 2018 at 4:22 pm #32012WCFM ForumMember
Hi,
Ok, I will give you code for this.
Thank you
- September 19, 2018 at 6:51 pm #32019VinzParticipant
Super ! Thanks !
- September 21, 2018 at 7:43 am #32152VinzParticipant
Hi WC LOVERS,
When do you think having times to write those codes?
Let me know! 🙂
Thanks!
- September 21, 2018 at 7:32 pm #32192WCFM ForumMember
Hi,
I will give you this by tomorrow, sorry for delay.
Thanks for your patience and cooperation 🙂
- September 21, 2018 at 7:44 pm #32193VinzParticipant
No worries ! Thanks again 🙂
- September 25, 2018 at 5:54 am #32479WCFM ForumMember
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
- September 26, 2018 at 7:32 am #32563VinzParticipant
Thanks very much !
- September 27, 2018 at 2:04 pm #32677WCFM ForumMember
You are welcome 🙂
Sir, is this resolved your requirement?
Thank You
- September 28, 2018 at 12:59 pm #32782VinzParticipant
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
- September 28, 2018 at 2:47 pm #32795BingalGuest
Hi,
Yeah off course, this code is not depending upon that settings.
In fact it is outside WCfM Notification system.
Thank you
- AuthorPosts
- The topic ‘New order / New booking emails’ is closed to new replies.