Skip Navigation

This is the technical support forum for WPML - the multilingual WordPress plugin.

Everyone can read, but only WPML clients can post here. WPML team is replying on the forum 6 days per week, 22 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Europe/Madrid (GMT+01:00)

This topic contains 20 replies, has 3 voices.

Last updated by Marcel 10 months, 3 weeks ago.

Assisted by: Marcel.

Author Posts
March 9, 2024 at 1:22 am #15391028

william-johnH-2

OK, But is there a solution to multiple emails and multiple bookings?

March 11, 2024 at 9:23 am #15393742

Marcel
Supporter

Languages: English (English ) German (Deutsch )

Timezone: Europe/Madrid (GMT+01:00)

Our compatibility team will check this based on the reproduction of the Sandbox.

Best Regards
Marcel

March 12, 2024 at 2:49 pm #15400126

Marcel
Supporter

Languages: English (English ) German (Deutsch )

Timezone: Europe/Madrid (GMT+01:00)

Hi Billy,

We found out that this seems to be related to the "Check this box if the booking requires admin approval/confirmation. Payment will not be taken during checkout" option in the product. An option would be to deactivate it in case you do not actually need ID.

If yes, a temporary workaround would be this:

1) Edit .../wp-content/plugins/woocommerce-multilingual/compatibility/WcBookings/Emails.php file.

2) Look for line 63.

3) Just below, add this code:

		add_action( 'woocommerce_booking_pending-confirmation', $this->handle( [
			\WC_Email_Booking_Pending_Confirmation::class,
		] ), self::PRIORITY_BEFORE_EMAIL_TRIGGER );

Does this work for you? If you confirm, we will include it in one of the next WooCommerce Multilingual releases.

Best Regards
Marcel

March 13, 2024 at 7:09 am #15402164

william-johnH-2

Many thanks for all your help!!

Some of our products have Check Availability enabled at the product level as we need to go to a 3rd party to see if it is available. Then if it is a YES, we change the booking status from Pending Confirmation to Booking Confirmed.

Will this additional code affect this?

And will this stop booking being made in all 6 translations even though it arrive in EN?

Regards
Billy

March 13, 2024 at 7:28 am #15402188

william-johnH-2

Hi,

I have added the code, and it seems to have stopped multiple emails going out to customers for the same purchase (They would buy or request availability on a product and get an email in each language as confirmation).

But then it is still creating a booking entry for each language for the booking that was made in EN - hidden link

On confirming the booking made in EN, I then received a Booking Confirmed email in NL - hidden link

So, it's better, but there are still some issues.

Thanks
Billy

March 13, 2024 at 2:56 pm #15404754

Marcel
Supporter

Languages: English (English ) German (Deutsch )

Timezone: Europe/Madrid (GMT+01:00)

Hi Billy,

Our compatibility team confirmed that it's an expected behaviour for WooCommerce Multilingual to create one booking per language.

We published this erratum: https://wpml.org/errata/woocommerce-bookings-multiple-booking-confirmation-emails-sent-for-each-language/

On confirming the booking made in EN, I then received a Booking Confirmed email in NL - hidden link

We can only handle this if it's reproducible on the Sandbox provided. Can you please check if you can replicate that?

Thank You!

Best Regards
Marcel

The topic ‘[Closed] Woocommerce Bookings – Multiple bookings being created’ is closed to new replies.