Reply To: We would like to pay for customization

Home Forums Product Support Forums Ajax Search Pro for WordPress Support We would like to pay for customization Reply To: We would like to pay for customization

Ernest Marcinko
Ernest Marcinko

The issue is when you try the domain without the www, but the requests are referring back to non-www version. Check the error console:

I have tried on mobile devices and desktop browser as well, but only the http://www... version is working. You might need to set a .htaccess rule or a DNS policy to either redirect to the www subdomain version at all times or vice-versa.
It is not permitted to make ajax requests, nor any other ones from subdomains to TLD:
The easiest solution (this is what I’m using) is to redirect everything to www via .htaccess.

Also, you can allow the search to accept empty phrases:

1. Put this function into the functions.php file in your active theme directory. It’s located in wp-content/themes/theme-name/functions.php

add_filter("asp_final_phrases", "asp_add_empty_phrase", 1, 1);
function asp_add_empty_phrase($phrases_array) {
    if ( empty( $phrases_array ) )
        return array("");
    return $phrases_array;

2. Allow the plugin to trigger the search with 0 characters entered and triggering when facet changes:

Ernest Marcinko

If you like my products, don't forget to rate them on codecanyon :)