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.

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.
We'd like to translate some products (ex: "Apprendre ABC en Français" to "Learn ABC in English") WITHOUT sharing availability (classes in French will have different schedule/options/techer/etc. from classes in English).

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,
Drazen

July 31, 2023 at 1:09 pm #14127573

Verbal

Thank you Drazen,

Following your recommendation, I do not translate products.
In WMPL/Settings/Post Types Translation I set "Bookings (wc_booking)" to not "Not translatable"

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,

Screenshot 2023-07-31 at 09-02-56 Settings.png
Screenshot 2023-07-31 090657.png
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,
Drazen

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,
Drazen