This website uses cookies to personalize your experience. By using this website you agree to our cookie policy.

Forum Replies Created

Viewing 15 posts - 3,301 through 3,315 (of 18,427 total)
  • Author
    Posts
  • in reply to: Filtered Results Show Duplicate Posts #45657
    Ernest MarcinkoErnest Marcinko
    Keymaster

    You cannot access this content.

    in reply to: Reset Button issue #45652
    Ernest MarcinkoErnest Marcinko
    Keymaster

    You cannot access this content.

    in reply to: Issues on translating En in other languages #45651
    Ernest MarcinkoErnest Marcinko
    Keymaster

    Hi,

    Sure, I can help you with that, but it requires changing one of the core files unfortuantely. I need to inform you that this change may have some negative effects, as the response body is not in json format, so the other plugin may encounter issues when trying to deserialize.

    To change the header type:
    – Open up the wp-content\plugins\ajax-search-pro\includes\classes\Hooks\Ajax\Search.php file on your server
    – Go to line 121, which should be this: Ajax::prepareHeaders();
    – Change it to: Ajax::prepareHeaders('application/json');
    – Save the file

    Now the responses from the live search are marked with the application/json header.

    in reply to: Unable to save (redirect to an error page) #45650
    Ernest MarcinkoErnest Marcinko
    Keymaster

    You cannot access this content.

    in reply to: Fuzzy search and submit no results #45640
    Ernest MarcinkoErnest Marcinko
    Keymaster

    You cannot access this content.

    in reply to: Loading new results jumps to top on safari #45639
    Ernest MarcinkoErnest Marcinko
    Keymaster

    You cannot access this content.

    in reply to: Loading new results jumps to top on safari #45637
    Ernest MarcinkoErnest Marcinko
    Keymaster

    You cannot access this content.

    in reply to: Loading new results jumps to top on safari #45634
    Ernest MarcinkoErnest Marcinko
    Keymaster

    You cannot access this content.

    in reply to: Fuzzy search and submit no results #45633
    Ernest MarcinkoErnest Marcinko
    Keymaster

    Hi Boris,

    Interesting question. I had to look into the source to see if there is any simple way of doing this, but I’m afraid this is not possible at the moment.

    I think it might be doable though, I am not a 100% sure. I will take this into a feature request and see what I can do about it in a future release. (Possibly 4.27.1+, as 4.27 is very close to release).

    in reply to: Qualified search results #45632
    Ernest MarcinkoErnest Marcinko
    Keymaster

    Do you mean in relation to the filters?
    If the page is not marked with the parent categories, then it may not be possible, because in that case it is not in direct relation to them.

    in reply to: Slider Range with two custom fields? #45629
    Ernest MarcinkoErnest Marcinko
    Keymaster

    You cannot access this content.

    in reply to: Slider Range with two custom fields? #45625
    Ernest MarcinkoErnest Marcinko
    Keymaster

    You cannot access this content.

    in reply to: Slider Range with two custom fields? #45622
    Ernest MarcinkoErnest Marcinko
    Keymaster

    Hi,

    Well, I’m afraid this is not possible, maybe via a custom code. I have constructed a possible solution, but I could not test this, so be very careful. Make sure to create a range slider for the minTimezone custom field for this to work. The code will automatically identify and then separate it to two individual min/max query arguments with the correct fields right before the search.

    Try adding this code via the Code Snippets plugin or to the functions.php file in your theme/child theme directory – make sure to have a full server back-up first for safety. For more details you can check the safe coding guidelines.

    add_filter("asp_query_args", "asp_query_args_change", 10, 2);
    function asp_query_args_change($args, $search_id) {
    	global $wpdb;
    	foreach ( $args['post_meta_filter'] as $k => $filter) {
    		if ( $filter['key'] == 'minTimezone' ) {
    			$min = $filter['value'][0];
    			$max = $filter['value'][1];
    			unset($args['post_meta_filter'][$k]);
    			
    			// add the min
    			$args['post_meta_filter'][] = array(
    				'key'     => 'minTimezone',
    				'value'   => $min,
    				'operator'=> '>=',
    				'allow_missing' => false 
    			);
    			
    			// add the max
    			$args['post_meta_filter'][] = array(
    				'key'     => 'maxTimezone',
    				'value'   => $max,
    				'operator'=> '<=',
    				'allow_missing' => false 
    			);
    			
    			break;
    		}
    	}
    	return $args;
    }
    in reply to: Floating search button #45621
    Ernest MarcinkoErnest Marcinko
    Keymaster

    You cannot access this content.

    in reply to: WPML and Products are not displaying #45620
    Ernest MarcinkoErnest Marcinko
    Keymaster

    Yes please – that would be very nice. Let me know if you setup and I will test.

Viewing 15 posts - 3,301 through 3,315 (of 18,427 total)