• newbii

    (@newbii)


    When using WPML and WPML support addon, room search return different results if page is in another language, search query also ignores adults field, e.g. if 3 adults were selected, room capacity that are less than 3 will also display.

    Could you please fix the issue?

    Thank you 🙂

Viewing 1 replies (of 1 total)
  • Thread Starter newbii

    (@newbii)

    Is it a mistake that you commented out the return on line 48 on this file?

    wp-hotel-booking-wpml-support\inc\class-hbwp-support.php

    if ( $this->current_language_code === $this->default_language_code ) {
    	//return;
    }

    Without the return, search page return no results on default language. And the adults arg always equal 0 in hb_search_query function, that leads to wrong search results on search pages other than the default language.

    The issues are fixed temporarily on my site, but still hoping for an official update.

Viewing 1 replies (of 1 total)

The topic ‘WPML support not working’ is closed to new replies.