Home›Support›English Support›[Resolved] WooCommerce Booking is showing duplicated reservation orders on the booking calendar in the administ...
[Resolved] WooCommerce Booking is showing duplicated reservation orders on the booking calendar in the administ...
This thread is resolved. Here is a description of the problem and solution.
Problem:
You are managing booking reservations using WooCommerce Booking and encountering issues with duplicated reservation orders on the booking calendar in the administration. Each duplicate appears to be an automatic translation. Additionally, when editing a reservation in English, an error occurs causing all reservations to disappear from the calendar.
Solution:
We have identified that the duplication issue does not occur when translating Booking Products into English. We recommend creating a test Booking Product set as a private post and translating it to English to confirm the results.
Please test this solution on your end and provide us with your feedback.
If this solution does not resolve your issue or seems irrelevant due to being outdated or not applicable to your case, we highly recommend checking related known issues at https://wpml.org/known-issues/, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. If the problem persists, please open a new support ticket.
0% of people find this useful.
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.
Background of the issue:
I am trying to manage booking reservations on our site using WooCommerce Booking. I expected to see single reservations in the calendar, which can be up to 80 per hour.
Symptoms:
WooCommerce Booking is showing duplicated reservation orders on the booking calendar in the administration. After verification, each duplicate is an automatic translation.
Questions:
Why are there duplicated reservations in the booking calendar?
How can I prevent automatic translations from creating duplicate reservations?
I tried a workaround by adding the following code to the theme’s functions.php file and then made a couple of bookings. The booking calendar is no longer showing duplicate entries.
I made two tests in staging site after adding your code.
The first one was with no duplicate, but I verified the extensions and WooCommerce Multilingual was deactivated, after activation I did another test and the duplicate is there.
It seems that something in WooCommerce Multilingual triggers the duplication.
By the way, staging has been purged of all client information you can duplicate the site if you need, to test it on your side.
Thank you for the updates. It would be great if you could reproduce the issue on the sandbox site. This will allow us to escalate the ticket directly to our Compatibility team.
Have you already imported the site into the sandbox environment: hidden link? Because the sandbox site is only for recreating the bugs in a clean installation.
Therefore, can you please try to reproduce the bug here: hidden link
DO NOT MIGRATE YOUR SITE HERE
Use this sandbox site to reproduce your issue in a minimal environment.
So I don't understand what should I import or how...
plus, in the original conversation you asked the following:
Bigul : 2) Please allow me to make a copy of your site using the Duplicator plugin (https://wordpress.org/plugins/duplicator/) for detailed testing and escalation
Fernando : Yes but I would need to delete all our customers orders to protect their privacy
Bigul : Ok. Please do it on your staging site and update us. We will make a copy after that
Thank you for the updates. I consulted with our team, and this appears to be a compatibility issue that requires further debugging and escalation.
As part of our escalation procedure, we need to replicate the issue on a clean installation. For this, I have set up the following sandbox site (a fresh installation):
hidden link
WPML and WooCommerce are already activated on the site. Please follow these steps and let us know if the issue can be reproduced:
- Install and activate the WooCommerce Bookings plugin
- Configure it as you have on your live site
- Create a Booking Product and translate it
- Make a booking
- Check if the Calendar shows duplicate entries
This will help us investigate the issue in a controlled environment. Looking forward to your feedback.
The issue persists after the initial troubleshooting steps. Therefore, the ticket has been escalated to our developers for further investigation. A fix will be included in a future version of WooCommerce Multilingual.
We will update you as soon as we receive any feedback from our developers. Please wait.
Hello, I would like to add the following related issues I noticed.
The translation of the booking item is affecting the display of the reservations on the calendar, basically each reservation is automatically translated creating a duplicate not only in the calendar but also the email notifications.
For example, if a reservation is shown in the calendar and I edit it in English there is an error (no console track) and all reservations disappear from the calendar. When editing a reservation I need to make sure I click on the French view to avoid this error.
Thank you for the feedback. We have an update on this. The booking duplication issue does not occur when we translate the Booking Products into English. We confirmed this by creating a test Booking Product (set as a private post) and translating it to English. The results were as expected.
Refer to the following post and screencast links for more details.
hidden link (Test Post)
hidden link (Booking from existing post after translating it)
hidden link (Booking from the test post after translating it)
Please test it on your end now and let us know your feedback.