[Resolved] Resources becomes unavailable even if they are.
This thread is resolved. Here is a description of the problem and solution.
Problem: The client is creating a bookable virtual product with selectable resources and custom people enabled, where each person counts as a reservation. With WCML active, after booking a resource for fewer people than the resource's total availability, the resource becomes unavailable for that day if more than one resource is selected. Solution: We recommend updating WPML, Strings Translation, and WooCommerce Multilingual & Multicurrency to the latest versions as this resolved the issue in a similar case. Please check if the updates solve the problem on your site. If the issue persists, we suggest recording the steps you took using a screencast service like Komodo and sharing it with us for further investigation.
Please note that this solution might be irrelevant if it's outdated or not applicable to your specific 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 continues, please open a new support ticket for personalized assistance.
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'm creating a bookable virtual product with a fixed timeslot (day), resources selectable by users, and people with custom people enabled. I'm multiplying prices for the number of people, and each person counts as a reservation. I have a production website where the issue is occurring, but I'm submitting the debug info for a local website with the default theme and no other plugins active.
Symptoms:
With WCML active, after booking a resource, even for fewer people than the resource availability, the resource becomes unavailable for that day. It only happens if I select more than one resource.
Questions:
Why does the resource become unavailable with WCML active even when the number of people is less than the total resource availability?
Thank you for contacting WPML support. While you are waiting for one of my colleagues to take this ticket and work on it, let me provide you with first debugging steps or if I can perhaps help with the issue quickly. Can you confirm that this issue is only happening with WoOCommerce Multlingual active?
Also, is this only happening if you are trying to book the product in the second language, or is this happening in all languages?
Could you check the workaround offered there, or try installing the beta of WCML available from the Beta channel of your account downloads page, which should have a fix.
If that doesn't help then it seems like your issue may be distinct and we will have to review that specifically. In which case we will likely need access to your site and may need to take a copy. To expedite that, let me set a private reply for you to share credentials in case that is needed.
Otherwise, if you need further help with this, please share the access details to your site with me. I'm enabling a private message for the following reply.
Privacy and Security Policy
We have strict policies regarding privacy and access to your information. Please see: https://wpml.org/purchase/support-policy/privacy-and-security-when-providing-debug-information-for-support/ **IMPORTANT**
- - Please back up the site files and database before providing us access. --
-- If you have a staging site where the problem can be reproduced, it is better to share access to the staging site.--
I'm going to setup a basic staging enviroment, because the issue is not resolved yet event with the errata (it allows you to make 2 bookings, but then the resource become unavailable again) also with just WC/WCML/WCBookings and base theme active
Thanks for reproducing the problem on the sandbox site. However, I can not reproduce it now. I used the Test Booking product to order more than one person (fewer than the 10 persons defined in the resource). Before trying this, I've updated WPML, Strings Translation, and WooCommerce Multilingual & Multicurrency to their latest versions (the new versions we released yesterday). Maybe this is what solved the issue. Please see the video I recorded while trying this.
hidden link
Have I missed a step or settings?
If so, please clearly specify what I have missed and what precisely the steps are that I need to take to make the problem occur?
It would be great if you could add a video. You can use the free online screencast service Komodo - hidden link.