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: Documentation request
This topic contains 5 replies, has 2 voices.
Last updated by Dražen 1 year, 5 months ago.
Assisted by: Dražen.
Author | Posts |
---|---|
July 26, 2023 at 3:26 pm #14105519 | |
Verbal |
Working on an online classes' website that sells classes using Woocommerce Bookings. I found how to not translate wc_bookings, but not how to prevent copy/translations of Woocommerce Products with "booking" type's options. Could you help me with this? |
July 27, 2023 at 6:17 am #14107743 | |
Dražen Supporter
Languages: English (English ) Timezone: Europe/Zagreb (GMT+01:00) |
Hello, thanks for contacting us. I am afraid that is not possible out of box and not expected, as translated product / should share the same availability, it is the same product, just translated. You can create a new one in 2nd language manually, which is not connected to the original language product, thus won't share any information, and are not same product. Another way would be manually adjusting related custom fields from WPML > Settings, but that could cause other issues, so I wouldn't recommend it. - https://wpml.org/documentation/getting-started-guide/translating-custom-fields/ Regards, |
July 31, 2023 at 1:09 pm #14127573 | |
Verbal |
Thank you Drazen, Following your recommendation, I do not translate products. When booking/ordering, a duplicate booking in the second language (with an ID of the original booking + 1) is still created, and displays this error message "It appears the booking product associated with this booking has been removed." See screenshot of translated booking #59312 (English shown, product booked in French with booking ID #59311) How can I prevent WPML from translating/duplicating bookings? Regards, |
July 31, 2023 at 1:14 pm #14127659 | |
Dražen Supporter
Languages: English (English ) Timezone: Europe/Zagreb (GMT+01:00) |
Hello, as I have said we do not recommend this way as it can cause another issue as you can see from the example shared. What I recommended is having booking left as TRANSLATABLE, and then not translating products, but creating new product A in EN and new product B in FR, not connected to each other. Separate products. That way clients can book A in EN or B in FR; without sharting availability or booking options. Regards, |
July 31, 2023 at 3:17 pm #14128547 | |
Verbal |
Alright. Thank you Drazen! |
August 1, 2023 at 6:16 am #14130415 | |
Dražen Supporter
Languages: English (English ) Timezone: Europe/Zagreb (GMT+01:00) |
Thanks and feel free to contactct us again fi anything we can help you with. Regadrs, |