NemoPS Posted February 19, 2014 Share Posted February 19, 2014 Hi Everyone! I just published a new video tutorial on how to enable ajax and instant search for the top menu search bar. Here it is: http://nemops.com/ajax-instant-search-prestashop-top-menu/#.UwR9evk7ur0 1 Link to comment Share on other sites More sharing options...
PrestaShark Posted March 14, 2014 Share Posted March 14, 2014 This is usefull but not with screencast... -1 for You Nemo Link to comment Share on other sites More sharing options...
PrestaShark Posted March 16, 2014 Share Posted March 16, 2014 +1 it works but with little issue and im confused a bit... when i change the blocktopmenu.php file the digit "1" apears at the top left side of my template and the </head> <body id="index" class="index"> markup at the page source is red. any clue? i try to change the file encoding and nothing. when i revert the blocktopmenu.php file without the mod the "1" digit disapear. weird! Link to comment Share on other sites More sharing options...
NemoPS Posted March 17, 2014 Author Share Posted March 17, 2014 Hard to tell, it looks like something is echoing out from php, can you have a look at that? Link to comment Share on other sites More sharing options...
mnmak Posted May 5, 2014 Share Posted May 5, 2014 (edited) Hi Nemo1, thank you for the tutorial(all of them). I have aside question - How could I enable the "search sign" in the search box? For some reason I dont have it. Tried to uninstall and reinstall the block, didnt help - still not there. Any advise would be much appreciated. https://www.dropbox.com/s/68iuhk226hb89vh/search_box.jpg Edited May 5, 2014 by mnmak (see edit history) Link to comment Share on other sites More sharing options...
NemoPS Posted May 6, 2014 Author Share Posted May 6, 2014 Search sign? Do you mean the magnifier icon? Link to comment Share on other sites More sharing options...
mnmak Posted May 6, 2014 Share Posted May 6, 2014 Yes, this is what I meant - the magnifier icon... BTW I got the whole problem explained here, please take a look. Link to comment Share on other sites More sharing options...
NemoPS Posted May 7, 2014 Author Share Posted May 7, 2014 Ah but that's normal! The default search block has an icon for it, the small box doesn't, it's a simple text input, you have to add the btn in the tpl in order for it to show up Link to comment Share on other sites More sharing options...
mnmak Posted May 7, 2014 Share Posted May 7, 2014 Thanks Nemo, unfortunately I have no clue how to do it Link to comment Share on other sites More sharing options...
NemoPS Posted May 7, 2014 Author Share Posted May 7, 2014 Try adding this to the form in blocktopmenu.tpl <input class="search_query" type="search" id="search_query_top" name="search_query" placeholder="{l s='Search' mod='blocksearch'}" value="{$search_query|escape:'html':'UTF-8'|stripslashes}" /> But I am not sure it will be properly styled, you probably need some css changes as well Link to comment Share on other sites More sharing options...
mnmak Posted May 7, 2014 Share Posted May 7, 2014 Thanks Nemo, tried the code, unfortunately it didn't change anything. I'll just leave it as it is. Thanks again Link to comment Share on other sites More sharing options...
Alejandrosi Posted July 31, 2014 Share Posted July 31, 2014 Hi. This is great but I can´t seem to find the ajax search in the tpl. files. I use ps 1.6.0.9 and the blocksearch-istantsearch.tpl does not exist. I have blocksearch-top.tpl and blocksearch.tpl but none of those have the ajax and instant search Link to comment Share on other sites More sharing options...
NemoPS Posted August 1, 2014 Author Share Posted August 1, 2014 Well, it should be in the folder modules\blocksearch Link to comment Share on other sites More sharing options...
Alejandrosi Posted August 1, 2014 Share Posted August 1, 2014 I couldn t make it work but thanks for the quick response! Link to comment Share on other sites More sharing options...
perocula Posted January 3, 2016 Share Posted January 3, 2016 +1 it works but with little issue and im confused a bit... when i change the blocktopmenu.php file the digit "1" apears at the top left side of my template and the </head> <body id="index" class="index"> markup at the page source is red. any clue? i try to change the file encoding and nothing. when i revert the blocktopmenu.php file without the mod the "1" digit disapear. weird! Hi, to prevent appearing this little "1" in index template you can change script part: extraParams: { ajaxSearch: 1, id_lang: {$cookie->id_lang} } to: extraParams: { ajaxSearch: '1', id_lang: {$cookie->id_lang} } and no1 appears nomore... Link to comment Share on other sites More sharing options...
kampfi Posted January 31, 2016 Share Posted January 31, 2016 For me, removing the "return true" line in hookHeader solved the problem with the "1" Link to comment Share on other sites More sharing options...
NemoPS Posted February 1, 2016 Author Share Posted February 1, 2016 I think using "true" on ajaxSearch would fix it too. Odd, I didn't come across the issue using this method Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now