Is there a way to add a filter to the Search preview? We have a custom field that we are using as a facet and we want it included with a hardcoded value for all searches. We added the custom field input as a hidden input in the search form. When you submit the form, the facet is correctly applied and reduces results to those that match.
The problem is the search preview. It seems to submit no other form fields from the search form. Looking at the JS, I'm not sure how to force it to include the custom field. This looks like the code firing off the search and it's very specific to what it sends
Is there a trick to make it include the extra facet without having to modify runtime.js?
The problem is the search preview. It seems to submit no other form fields from the search form. Looking at the JS, I'm not sure how to force it to include the custom field. This looks like the code firing off the search and it's very specific to what it sends
Code:
AJAX_Call_Module( function( response ) { self.Search_Callback( response, value ); }, 'runtime', 'cmp-cssui-searchfield', 'Search', 'Search=' + encodeURIComponent( value ) + '&Count=' + this.product_count, this.delegator );