Skip Navigation

[Resolved] Multiple recepients to woocommerce emails

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Our next available supporter will start replying to tickets in about 0.63 hours from now. Thank you for your understanding.

This topic contains 6 replies, has 2 voices.

Last updated by Waqar 1 month, 1 week ago.

Assigned support staff: Waqar.

Author
Posts
#1909391

Hi there,

So when you buy a camp on our site, there are 3 people who needs a confirmation email:
1) The customer
2) The host of the camp
3) The admin of the site

Is it possible that the host and the admin both get an email when a camp is bought? The tricky part is, that the host of a camp can be different from camp to camp. So i don't know how to solve it. The admin is always the same.

#1910219

Waqar
Supporter

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

Hi Mai,

When an order is completed, WooCommerce automatically sends an emails to the customer and the website's admin.

Can you please test by placing an order as a customer and then completing it manually from the order edit screen in the admin area?

For the adding the camp's host as a recipient of that email, you'll need to add some customization and the second code snippet from this article should help:
hidden link

Note: You'll have the order information through "$order" parameter and you can extract the related camp's details through that order's product, using the pointers from the second code snippet that I shared in my earlier reply:
https://toolset.com/forums/topic/add-information-to-email-continued/page/2/#post-1885927

If you find it difficult to customize this code as per your need, it would be best to hire a professional with WooCommerce customization experience.
( ref: https://toolset.com/contractors/ )

regards,
Waqar

#1912947

Hi Waqar,

1) The email snippet (hidden link) - as i read it the BCC email is not dynamic. Which means that the host will have to be the same every time. I found this snippet myself too but since there can be different hosts for different camps through Toolset i would ask you on how to solve it. During the process of creating the host profile, the host has to type in his or hers email. Can we use that?

2) I already put in this snippet in my functions.php - but as i mentioned in another ticket - even though all my data is in the snippet you created for me they do not appear in the emails.

#1915663

Hi Waqar - just commenting so the ticket won't close

#1917383

Waqar
Supporter

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

Hi Mai,

For someone proficient with PHP code customizations, the example snippets from the other thread ( ref: https://toolset.com/forums/topic/add-information-to-email-continued/page/2/#post-1885927 ) should be enough to dynamically fetch the camp's host email, in the email recipients snippet.

Unfortunately, as per our support policy, we can only assist in understanding how different Toolset features and functions can be used together and 1-1 customization is beyond the scope of support that we can provide over the forum:
https://toolset.com/toolset-support-policy/

Since your customization requirements are becoming more complex, it would be more efficient to hire a professional contractor:
https://toolset.com/contractors/

I hope you'll understand.

regards,
Waqar

#1918231

Hi Waqar,

Okay thanks for your input - i will try and see if i can get it solved somehow.

#1918569

Waqar
Supporter

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

Thank you for understanding.

You're welcome to start a new ticket for a new question or concern.