Jump to content

[Solved] Need to add THEFIND "Upfront" Badge Script to prove I am the owner. (FREE Shopping Comparison THEFIND.COM)


Recommended Posts

Hello,

How do I add this script below to the left or right column.


Fusion Art is upfront
[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

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

  • 1 month later...

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

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

  • 2 months later...

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...