<b>Symptoms: </b>
I expected to receive only one user email notification for pending reservations, but instead, I receive multiple emails when I make a reservation.
<b>Questions: </b>
Why am I receiving multiple emails for pending reservations?
How can I configure the system to send only one email notification for pending reservations?
I've found a fix that works for me that I would like to report.
Thank you for reaching out to WPML support. While one of my colleagues reviews your ticket, I’d like to provide some initial debugging steps and see if I can assist you in the meantime.
Before we look into the fix you mentioned, could you please confirm whether you are testing with the latest version of WooCommerce Multilingual & Multicurrency 5.5.1? I noticed that you referred to version 5.4.0 in your initial message. The issue you reported should already be resolved, as noted in our errata here: https://wpml.org/errata/woocommerce-bookings-multiple-booking-confirmation-emails-sent-for-each-language/
Looking forward to your confirmation so we can proceed accordingly.
my mistake, I meant WooCommerce Multilingual & Multicurrency 5.5.1.
In the preview ticket I’ve deactivated all plugins except WPML, String Translation, WCML, WooCommerce and WooCommerce Bookings and test it all with a WordPress standard theme but the problem was still there.
In the file …/wp-content/plugins/woocommerce-multilingual/compatibility/WcBookings/Emails.php file we’ve added a couple of fix that solved the issue.
Could it be useful if I share it with you what we've done?
I created a bookable product in the same way I did on my website and I made a reservation request. As you see in Orders page you can find order #120 Jane Doe that I did from the websites's italian version.
In Wp Mail Logging there are 3 pending reservation mail (one for each language).
The user receives multiple emails....
In the sandbox site I installed the beta version (5.5.2-b.1) and, as far as I can see, it's working as expected. Feel free to check it there, and let us know if something is still not OK.