Wondering if someone can help me with this.
I've searched the forums and all results (such as this: http://forum.opencart.com/viewtopic.php ... box#p28138) don't appear to be relevant for the latest version of OpenCart.
Some of the suggests I've found refer to the search.tpl file however no such file exists anymore as far as I can tell in catalog/view/theme/default/template/common
Thanks for the reply. I have edited the file, and there were two entries that I changed so my common.js now looks like so:
However it's still not working.
When the search returns nothing, if I check the "search in product descriptions" I do find the products though - so the information is there.
I should have mentioned from the outset that I have just installed the very latest version of OC 1.5.6.1 if that makes a different. I am also using another theme other than the default, but since the common.js file is not in one of the theme directories this shouldn't be an issue should it?
Any other ideas what might be going wrong?
Code: Select all
$(document).ready(function() {
/* Search */
$('.button-search').bind('click', function() {
url = $('base').attr('href') + 'index.php?route=product/search&description=true';
var search = $('input[name=\'search\']').attr('value');
if (search) {
url += '&search=' + encodeURIComponent(search);
}
location = url;
});
$('#header input[name=\'search\']').bind('keydown', function(e) {
if (e.keyCode == 13) {
url = $('base').attr('href') + 'index.php?route=product/search&description=true';
var search = $('input[name=\'search\']').attr('value');
if (search) {
url += '&search=' + encodeURIComponent(search);
}
location = url;
}
});
When the search returns nothing, if I check the "search in product descriptions" I do find the products though - so the information is there.
I should have mentioned from the outset that I have just installed the very latest version of OC 1.5.6.1 if that makes a different. I am also using another theme other than the default, but since the common.js file is not in one of the theme directories this shouldn't be an issue should it?
Any other ideas what might be going wrong?
merhabalar
opencart 1551 defult tema kullanıyorum arama seo url tag bir türlü yapamadım bana bu konuda yardım edebilecek arkadaşlar varmı
opencart 1551 defult tema kullanıyorum arama seo url tag bir türlü yapamadım bana bu konuda yardım edebilecek arkadaşlar varmı
Who is online
Users browsing this forum: No registered users and 119 guests