Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
My website in in 3 languages. When I try to add a room to the cart, it is only added if I do it from the original language node, "FR" in my case, but in the other languages I get always the error "The room is not available for this date", no matter the date I choose.
The 3 nodes of the same room have the same configuration: Room Code, Room type and room type settings.
Comments
Comment #1
manicato CreditAttribution: manicato commentedDoes anybody have an idea why this is happening?
Comment #2
manicato CreditAttribution: manicato commentedDoes anybody have idea, why this is happening? I am a little bit lost.
Comment #3
manicato CreditAttribution: manicato commentedAfter analyzing the code for a few hours, I think having found the problem. It's in the code. When room availability is checked, the script looks up the nid of the node "hotel_booking_get_available_rooms()".
This is wrong, because the script must check the availability of the default language node. In my case this would be:
$tnodes = translation_node_get_translations($node->tnid);
$tnid = array($tnodes['fr']->nid);
But there are surely other cases in the code of this module, where this is a problem.
Comment #4
sygnetica CreditAttribution: sygnetica commentedI have the same problem. Any idea ?
Comment #5
giupenni CreditAttribution: giupenni commentedsame problem