• Resolved Giuseppe Milo

    (@pixael)


    Hi there, I’ve created a double room in bot english and italian but I’ve just realised that the availability of the rooms will double. I have 4 double rooms but with the translations I actually have 8 double rooms! This is an issue because I could easily have an overbooking.

    Here is an example:
    https://ibb.co/nsw9ZLZw

    I’ve made a reservation for today and it should say 3 rooms available but in italian it says 4 and in english it says 3…

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author benitolopez

    (@benitolopez)

    Hello,

    There is a plugin that works with WPML that solves this issue: https://docs.wphotelier.com/faqs/wpml.html

    Other multilingual plugins are not supported and you need to find a way to sync the availability to prevent double bookings.

    Best,

    Thread Starter Giuseppe Milo

    (@pixael)

    Ok thanks I’ll have a look at that plugin and see what they are doing.

    Thanks for the plugin btw it has a lot of cool features.

    Thread Starter Giuseppe Milo

    (@pixael)

    I’ve used a few filters and actions to do the same with polylang. If interested I can send you the code. In the plugin for wpml I think it would be better to change the room id when you create the booking instead of when you add it to the cart, otherwise the customer will see the room name in another language?
    Also I’ve hooked into the available rooms number too otherwise the customer will be able to select more rooms than available in the rooms listing.

    Just to let you know, maybe you already did that.

    Plugin Author benitolopez

    (@benitolopez)

    Hi Giuseppe, if you can create a gist on Github that will be awesome! Then I can share it with those who use Polylang.

    Thread Starter Giuseppe Milo

    (@pixael)

    Plugin Author benitolopez

    (@benitolopez)

    Awesome, thank you very much!

Viewing 6 replies - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.