aliaspt Posted July 14, 2012 Share Posted July 14, 2012 I'm using V. 1.3.1. I'd like to keep the Search box on the top of the store but have it show Google custom search results. I've got a paid GSE. I've tried replacing the code in the blocksearch module but it resulted in a blank page. If this is a too complex thing to do, I'm willing to pay. Thanks. Link to comment Share on other sites More sharing options...
shacker Posted July 15, 2012 Share Posted July 15, 2012 paste the code here and i check Link to comment Share on other sites More sharing options...
aliaspt Posted July 15, 2012 Author Share Posted July 15, 2012 Shacker, do you mean to paste Google embed code here? Link to comment Share on other sites More sharing options...
shacker Posted July 15, 2012 Share Posted July 15, 2012 yeap Link to comment Share on other sites More sharing options...
aliaspt Posted July 15, 2012 Author Share Posted July 15, 2012 paste the code here and i check This is how the code looks <div id="cse" style="width: 100%;">Loading</div> <script src="https://www.google.com/jsapi" type="text/javascript"></script> <script type="text/javascript"> google.load('search', '1', {language : 'en', style : google.loader.themes.ESPRESSO}); google.setOnLoadCallback(function() { var customSearchOptions = {}; var customSearchControl = new google.search.CustomSearchControl( '0154404366549420953:ii3qimmcldk', customSearchOptions); customSearchControl.setResultSetSize(google.search.Search.FILTERED_CSE_RESULTSET); customSearchControl.draw('cse'); }, true); </script> Link to comment Share on other sites More sharing options...
shacker Posted July 16, 2012 Share Posted July 16, 2012 you need to add this <div id="cse" style="width: 100%;">Loading</div> <script src="https://www.google.com/jsapi" type="text/javascript"></script> {literal} <script type="text/javascript"> google.load('search', '1', {language : 'en', style : google.loader.themes.ESPRESSO}); google.setOnLoadCallback(function() { var customSearchOptions = {}; var customSearchControl = new google.search.CustomSearchControl( '0154404366549420953:ii3qimmcldk', customSearchOptions); customSearchControl.setResultSetSize(google.search.Search.FILTERED_CSE_RESULTSET); customSearchControl.draw('cse'); }, true); </script>{/literal} Link to comment Share on other sites More sharing options...
aliaspt Posted July 16, 2012 Author Share Posted July 16, 2012 Where do I need to paste that code? Thank you! you need to add this <div id="cse" style="width: 100%;">Loading</div> <script src="https://www.google.com/jsapi" type="text/javascript"></script> {literal} <script type="text/javascript"> google.load('search', '1', {language : 'en', style : google.loader.themes.ESPRESSO}); google.setOnLoadCallback(function() { var customSearchOptions = {}; var customSearchControl = new google.search.CustomSearchControl( '0154404366549420953:ii3qimmcldk', customSearchOptions); customSearchControl.setResultSetSize(google.search.Search.FILTERED_CSE_RESULTSET); customSearchControl.draw('cse'); }, true); </script>{/literal} Link to comment Share on other sites More sharing options...
aliaspt Posted July 16, 2012 Author Share Posted July 16, 2012 I have tried adding the code to existing code and replacing the existing code in blocksearch.tpl and it didn't make any change. you need to add this <div id="cse" style="width: 100%;">Loading</div> <script src="https://www.google.com/jsapi" type="text/javascript"></script> {literal} <script type="text/javascript"> google.load('search', '1', {language : 'en', style : google.loader.themes.ESPRESSO}); google.setOnLoadCallback(function() { var customSearchOptions = {}; var customSearchControl = new google.search.CustomSearchControl( '0154404366549420953:ii3qimmcldk', customSearchOptions); customSearchControl.setResultSetSize(google.search.Search.FILTERED_CSE_RESULTSET); customSearchControl.draw('cse'); }, true); </script>{/literal} Link to comment Share on other sites More sharing options...
shacker Posted July 18, 2012 Share Posted July 18, 2012 you force compile in preferences -> performance to se the changes? Link to comment Share on other sites More sharing options...
aliaspt Posted July 18, 2012 Author Share Posted July 18, 2012 Thanks, shacker. I had to have it done for money. The embed code was included in the search.tpl file. I don't know what other changes were made. Link to comment Share on other sites More sharing options...
shacker Posted July 20, 2012 Share Posted July 20, 2012 download from our site this free module http://catalogo-onlinersi.net/en/back-office-prestashop-modules/93-clear-smarty-prestashop-module.html install and clear the cache. Check if with this works 1 Link to comment Share on other sites More sharing options...
aliaspt Posted July 21, 2012 Author Share Posted July 21, 2012 Wish I found a solution before I paid someone to have it done. I hope someone else is able to embed the code seamlessly and reports what they've done. Link to comment Share on other sites More sharing options...
Shashikant N Sharma Posted September 18, 2016 Share Posted September 18, 2016 Install HTML module developed by Vekia and can be found free at https://mypresta.eu/ Insert the code of Custom Google search and save. I have done it and it is working fine at https://edupediapublications.org Link to comment Share on other sites More sharing options...
Recommended Posts