Skip Navigation

This thread is resolved. Here is a description of the problem and solution.

Problem:
The client is experiencing issues with bookings not being completed after payment through WooCommerce, with an error message stating "It appears the booking product associated with this booking has been removed." Additionally, the ticket types are not displayed in the confirmation email.
Solution:
We have resolved this issue in the latest update of WooCommerce Multilingual. We recommend updating to WooCommerce Multilingual version 5.3.0. If you're experiencing this issue, please update the plugin to the latest version. If this solution doesn't seem relevant to your situation, or if you encounter any further issues, please open a new support ticket with us.

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.

Tagged: 

This topic contains 10 replies, has 2 voices.

Last updated by Long Nguyen 1 year ago.

Assisted by: Long Nguyen.

Author Posts
March 28, 2023 at 11:52 am #13348975

Merlis

I am trying to: make a booking on the website and pay for it instantly. For instance with PayPal

Link to a page where the issue can be seen: hidden link

I expected to see: After payment woocommerce order and booking being created and in the email there are shown the ticket types that were bought.

Instead, I got: only WooCommerce order is being created and the booking associated with the order is not complete. It shows message "It appears the booking product associated with this booking has been removed.", but there has been no changes made to the website.
Also in the email it does not show the ticket types.

Annotate-a-local-image.png
March 29, 2023 at 8:39 am #13355499

Long Nguyen
Supporter

Languages: English (English )

Timezone: Asia/Ho_Chi_Minh (GMT+07:00)

Hi Merlis,

Thank you for contacting WPML support, I'd be happy to help you with this issue.

Can you please follow some troubleshooting steps below and see if it helps?

1. Increase WP memory limit: While checking the debug info, I see that the WordPress Memory Limit is below the requirements. The minimum requirements are 128M, but we do recommend 256M and the debug information of your site shows it set to 40M. Please check this link for more details https://wpml.org/home/minimum-requirements/.
You can increase it by adding the following code in your wp-config.php file, right before the /* That’s all, stop editing! Happy publishing. */ line:


define( 'WP_MAX_MEMORY_LIMIT', '256M' );
define( 'WP_MEMORY_LIMIT', '128M' );

After adding the code you can confirm that the memory was changed correctly from WPML > Support > WordPress > Memory limit.

2. Enable a minimal environment:
- Deactivate all plugins except WPML, WooCommerce, WooCommerce Bookings and their addon plugins
- Switch to a standard theme of WordPress
❌ IMPORTANT: Please backup your database and website before proceeding ❌

3. Ensure the booking product is translated completely. If it cannot be translated, please refer to this documentation https://wpml.org/errata/a-booking-cannot-be-translated-anymore-if-it-has-been-booked-before/

Look forward to your reply.
Thanks

March 29, 2023 at 11:25 am #13357247

Merlis

Hi!

1. Added memory limit to wp-config.php file and confirmed it was changed. This did not change anything.
2. I have tested with minimum environment already (before opening this ticket). When WooCommerce Multilingual & Multicurrency plugin was deactivated then there was no problem.
3. Not all booking products need to be translated.

Best regards

March 30, 2023 at 1:38 am #13362967

Long Nguyen
Supporter

Languages: English (English )

Timezone: Asia/Ho_Chi_Minh (GMT+07:00)

Hi,

Thank you for your feedback.

It could be a compatibility issue between WooCommerce Bookings and WPML, we will address that by reporting this to the compatibility team.

To be able to report the compatibility issues we need to replicate the issue on a clean installation. I created a clean installation of WordPress, WPML, and all necessary WPML add-ons. You can access the WordPress dashboard using the link below:
hidden link

Kindly follow the steps below:

- Install WooCommerce Bookings plugin.
- Try to replicate the issue.
- Then let me know the steps to replicate it.

This will help us to report the probable issue to the compatibility team and solve the possible problem faster.

Look forward to your reply.
Thanks

March 30, 2023 at 11:27 am #13366749

Merlis

Hi!

I have added WooCommerce and WooCommerce Booking plugin. PayPal payment sandbox is also set up and added one test product.

The system did not send out the emails to admin or to the customer, but the issue remains on the admin side. Booking is not created.

Steps to replicate the issue:
1. Go to shop > open the test product.
2. Choose ticket type and date from the calendar. Add the tour to the cart.
3. Go to checkout and choose Paypal as the payment method. Use sandbox credentials to pay for the cart.
4. Go to Bookings - no booking is created.
5. Go to WooCommerce orders and open the order > Choose view booking > you see there is an error message "It appears the booking product associated with this booking has been removed." and that the booked product is N/A and ticket type/correct person type is not displayed.

Best regards

March 31, 2023 at 2:12 am #13371531

Long Nguyen
Supporter

Languages: English (English )

Timezone: Asia/Ho_Chi_Minh (GMT+07:00)

Hi Merlis,

Thank you for your feedback.

After translating the bookable product to the second language (ET), and book a slot in the frontend, complete the order, I see the booking in the backend display booked product as well. Can you please confirm this?

It might relate to the known issue as I shared above https://wpml.org/errata/a-booking-cannot-be-translated-anymore-if-it-has-been-booked-before/
the bookable product should be translated before making it available for booking.

If you do not want to translate the product into a second language, just duplicate it by following the documentation https://wpml.org/documentation/translating-your-contents/displaying-untranslated-content-on-pages-in-secondary-languages/#how-to-duplicate-pages-and-posts-in-bulk

Look forward to your reply.
Thanks

March 31, 2023 at 10:50 am #13374933

Merlis

Hi!

Yes, this solution works with creating the booking correctly. But I do not wish to display the duplicate tours to public. What are the options to hide them?

Best regards

April 3, 2023 at 2:32 am #13386211

Long Nguyen
Supporter

Languages: English (English )

Timezone: Asia/Ho_Chi_Minh (GMT+07:00)

Hi,

Thank you for your feedback.

I see if you set the status of the translation product to Draft, the product is only available for the administrator, not for other users/visitors on the frontend. And the booked product also displays in the booking item as well.

I'm asking our 2nd tier support about this issue and see if there is a complete solution. Meanwhile, you can use this workaround on your site.

Thanks for your patience.

April 3, 2023 at 9:12 am #13388139

Merlis

Thank you for the workaround. I will be looking forward for the complete solution.

April 4, 2023 at 1:47 am #13395215

Long Nguyen
Supporter

Languages: English (English )

Timezone: Asia/Ho_Chi_Minh (GMT+07:00)

Hi,

Thank you for your feedback.

I will update you here when I have something to share.

Regards.

January 4, 2024 at 8:26 am #15149498

Long Nguyen
Supporter

Languages: English (English )

Timezone: Asia/Ho_Chi_Minh (GMT+07:00)

FYI, this issue has been fixed in the new version of WooCommerce Multilingual 5.3.0.