Dark-Graphics Posted May 2, 2011 Share Posted May 2, 2011 Hello,How do I add this script below to the left or right column. [removed] (function() { var upfront = document.createElement('SCRIPT'); upfront.type = "text/javascript"; upfront.async = true; upfront.src = document.location.protocol + "//upfront.thefind.com/scripts/main/utils-init-ajaxlib/upfront-badgeinit.js"; upfront.text = "thefind.upfront.init('tf_upfront_badge', 'b3716dfef8b91b005bf8f5f2125df159')"; document.getElementsByTagName('HEAD')[0].appendChild(upfront); })(); [removed]This script puts the UPFRONT logo for the shopping comparison site THEFIND.com Link to comment Share on other sites More sharing options...
jhnstcks Posted May 2, 2011 Share Posted May 2, 2011 Try the addstuff module from ecartservices http://www.ecartservice.net/05082008/addstuff-for-prestashop/ Link to comment Share on other sites More sharing options...
Dark-Graphics Posted May 2, 2011 Author Share Posted May 2, 2011 EDITED - eCartservices Modules are not working.I have followed the instructions provided, by editing the supplied .html file that comes with module. However after saving and refreshing the site with Cache clear (F5) there is no change.Both the Addstuff and Addheader modules do not seem to be working.PRESTA SHOP VERSION: 1.4.0.17 Link to comment Share on other sites More sharing options...
boylibre Posted June 9, 2011 Share Posted June 9, 2011 Hi, did you manage to work it out? I too have the same issue on ps 1.3 Link to comment Share on other sites More sharing options...
Dark-Graphics Posted June 9, 2011 Author Share Posted June 9, 2011 Yes turn off CACHE in Performance under preferences, turn on Smarty Force Recompile, then regenerate .hta file under tools. Now go to your site and hit f5 to clear and cookies etc from your browser regarding your website. It should work however your site my be slow, now once it works go back to performance tab in preferences and turn smarty force recompile back off. Leave the cache setting at the bottom of the performance tab OFF. Do not enable this ever until your site is completely built it will cause so many issues if not. I must have lost 5 weeks of sales because of simple issues with permission settings on the ftp server and because of the cache setting. Link to comment Share on other sites More sharing options...
Dark-Graphics Posted June 9, 2011 Author Share Posted June 9, 2011 *F5 Clear Cookies etcMake sure the settings on your FTP server for the addstuff folder under Modules is 755 Permissions on any folders including the main folder for addstuff and 644 on all files under the addstuff folder and or its sub folders. Link to comment Share on other sites More sharing options...
Dark-Graphics Posted June 9, 2011 Author Share Posted June 9, 2011 Finally I suggest upgrading to version 1.4.25 fixed all my issues, only problem is when u upgrade the permissions on your FTP will break some modules until you change them. Mainly Paypal, Paypal is by far the most temperamental module in prestashop. Link to comment Share on other sites More sharing options...
boylibre Posted June 12, 2011 Share Posted June 12, 2011 Thanks for thorough explanation, I will give it a go. Link to comment Share on other sites More sharing options...
Never_give_up Posted August 31, 2011 Share Posted August 31, 2011 Here is how to fix TheFind badge code to work with Smarty: original badge code gives error... Fatal error: Smarty error: [in /hsphere/local/home/mywebsite.com/themes/mytheme/header.tpl line 65]: syntax error: unrecognized tag 'var' (Smarty_Compiler.class.php, line 590) in /hsphere/local/home/mywebsite/mywebsite.com/tools/smarty_v2/Smarty.class.php on line 1095 original badge code from The Find: <a class="tf_upfront_badge" href="http://www.thefind.com/store/about-mywebsite" title="TheFind Upfront"><img border="0" src="//upfront.thefind.com/images/badges/r/93/44/98456789a5rdfa25bfe37beblahblahblah.png" alt="mywebsite.com is an Upfront Merchant on TheFind. Click for info."/></a> <script type="text/javascript"> (function() { var upfront = document.createElement('SCRIPT'); upfront.type = "text/javascript"; upfront.async = true; upfront.src = document.location.protocol + "//upfront.thefind.com/scripts/main/utils-init-ajaxlib/upfront-badgeinit.js"; upfront.text = "thefind.upfront.init('tf_upfront_badge', '98456789a5rdfa25bfe37beblahblahblah')"; document.getElementsByTagName('HEAD')[0].appendChild(upfront); })(); </script> Add {literal} and {/literal} ibetween code like this: <a class="tf_upfront_badge" href="http://www.thefind.com/store/about-mywebsite" title="TheFind Upfront"><img border="0" src="//upfront.thefind.com/images/badges/r/93/44/98456789a5rdfa25bfe37beblahblahblah.png" alt="mywebsite.com is an Upfront Merchant on TheFind. Click for info."/></a> <script type="text/javascript"> {literal}(function() { var upfront = document.createElement('SCRIPT'); upfront.type = "text/javascript"; upfront.async = true; upfront.src = document.location.protocol + "//upfront.thefind.com/scripts/main/utils-init-ajaxlib/upfront-badgeinit.js"; upfront.text = "thefind.upfront.init('tf_upfront_badge', '98456789a5rdfa25bfe37beblahblahblah')"; document.getElementsByTagName('HEAD')[0].appendChild(upfront); })();{/literal} </script> You can add the badge anywhere on your site but I pasted the code in mywebsite.com/themes/mytheme/footer.tpl right before the </body> so it stays at the very bottom and below the footer. VOILA! 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