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.
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.
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:
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:
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/ )
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.
Hi Waqar - just commenting so the ticket won't close
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:
Since your customization requirements are becoming more complex, it would be more efficient to hire a professional contractor:
I hope you'll understand.
Okay thanks for your input - i will try and see if i can get it solved somehow.
Thank you for understanding.
You're welcome to start a new ticket for a new question or concern.