• I have a problem with the search, when I write “pr7” in the bar and do “see all results” it goes directly to the product page instead of searching for all results.

    Another concern: when I’m on the search results page, not all of the results are displayed …
    there is no possibility to see the other products

    thank you in advance

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

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

    (@mihail-barinov)

    Hello,

    Can you please tell me the name o your theme and the link to it?

    Regards

    Thread Starter jeremyadine

    (@jeremyadine)

    Dyad 2

    Thanks

    Plugin Author ILLID

    (@mihail-barinov)

    Well I see that the problem can be in the theme itself.

    Please try to use following code

    add_filter( 'aws_searchbox_markup', 'my_aws_searchbox_markup' );
    function my_aws_searchbox_markup( $markup ) {
        $hidden = '<input type="hidden" name="post_type" value="product">';
        $markup = str_replace( $hidden, '', $markup );
        return $markup;
    }
    
    add_filter( 'aws_searchpage_enabled', 'my_aws_searchpage_enabled' );
    function my_aws_searchpage_enabled( $enabled ) {
        if ( isset( $_GET['s'] ) && isset( $_GET['type_aws'] ) ) {
            return true;
        }
        return $enabled;
    }

    You need to add it somewhere outside the plugins folder. For example, inside functions.php file of your theme or use some plugin for adding code snippets.

    Regards

    Thread Starter jeremyadine

    (@jeremyadine)

    They doesn’t work…

    Plugin Author ILLID

    (@mihail-barinov)

    Hm, I don’t see that the code than I give your was added correctly.
    Please tell me where you add this code snippet? Also – if you have any caching plugins please refresh the cache.

    Regards

    Thread Starter jeremyadine

    (@jeremyadine)

    I use code snippets plugin because i dont have acces at function.php of the theme

    When i use you code they make a strange apparence on website résults : https://bergeracmotorsport.fr/?s=injecteur&type_aws=true&aws_id=1&aws_filter=1

    Plugin Author ILLID

    (@mihail-barinov)

    Hm, strange. The page looks in this way only when adding those code snippets?

    Thread Starter jeremyadine

    (@jeremyadine)

    Exactly

    Plugin Author ILLID

    (@mihail-barinov)

    Maybe you can give me the screenshot of how this code snippets looks inside your admin dashboard?

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Research page’ is closed to new replies.