• Resolved Eva

    (@evasonder)


    Good morning,

    I have problems with the search in my page. When I search “siesta” and press enter, said that “It looks like nothing was found at this location. Maybe try one of the links below or a search?”, but the fuzzy search is operating because he display the results in a pull-down menu.

    If I writte the compllete name show: https://sonderregulacion.com/en/?s=siesta+105+wifi

    I have woocommerce, with polylanguage for 4 languages, in “customify” template and “outfit” theme.
    Plugin for serach: Advanced Woo Search

    These happens for english, french, and german, in spanish works correctly.

    Thanks in advance for your hardwork, without will be not possible my job

    • This topic was modified 4 years, 9 months ago by Eva.

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author ILLID

    (@mihail-barinov)

    Hello,

    Looks like the problem is in /home-en/, /home-fr/, /home-de/ inside search page URLs.
    Looks like you set static page as your home page. Is that true?

    Looks like I found how to solve this.
    Please open advanced-woo-search/includes/class-aws-markup.php file, find lines

    $form_action = home_url( '/' );
                if ( function_exists( 'pll_home_url' ) ) {
                    $form_action = pll_home_url();
                }

    and replace with

    $form_action = home_url( '/' );
    
            if ( function_exists( 'pll_home_url' ) ) {
    
                $form_action = pll_home_url();
    
                if ( get_option( 'show_on_front' ) === 'page' ) {
    
                    $current_language = pll_current_language();
                    $default_language = pll_default_language();
    
                    if ( $current_language != $default_language ) {
                        if ( strpos( $form_action, '/' . $current_language ) !== false ) {
                            $language_subdir = $current_language.'/';
                            $form_action = home_url( '/' . $language_subdir );
                        }
                    }
    
                }
    
            }

    Regards

    Plugin Author ILLID

    (@mihail-barinov)

    I will also add this changes to the next plugin release.

    Thread Starter Eva

    (@evasonder)

    It’s already working perfectly!

    Thank you very much. You make my job possible.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Breaked search in other languages’ is closed to new replies.