Thanks Kyle!kylehamilton wrote:In version 1.5.1 it's in the common.js file:
/catalog/view/javascript/common.js
in the first two functions (see comments):
/* Search */
$('.button-search').bind('click', function() {
url = 'index.php?route=product/search';
url += '&filter_description=true'; // add this to search descriptions
url += '&filter_sub_category=true'; // add this to search sub-categories
var filter_name = $('input[name=\'filter_name\']').attr('value')
if (filter_name) {
url += '&filter_name=' + encodeURIComponent(filter_name);
}
location = url;
});
$('#header input[name=\'filter_name\']').keydown(function(e) {
if (e.keyCode == 13) {
url = 'index.php?route=product/search';
url += '&filter_description=true'; // add this to search descriptions
url += '&filter_sub_category=true'; // add this to search sub-categories
var filter_name = $('input[name=\'filter_name\']').attr('value')
if (filter_name) {
url += '&filter_name=' + encodeURIComponent(filter_name);
}
location = url;
}
});
Worked great for me using 1.5.3.1