Post by aboss3 » Sat Dec 22, 2012 5:54 am

I've been messing around with the footer.tpl file in my OC template, and cannot add a UpFront script badge to it. SSL/Authorize show up fine. However, this one looks like that:

Code: Select all

<a class="tf_upfront_badge" href="http://www.thefind.com/store/about-shadeszone" title="TheFind Upfront"><img  border="0" src="//upfront.thefind.com/images/badges/s/f0/a8/f0a82c9984931b829d40b9c3bb908765.png" alt="Shades Zone 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', 'f0a82c9984931b829d40b9c3bb908765')";
      document.getElementsByTagName('HEAD')[0].appendChild(upfront);
    })();
  </script>
Please help. It just does not show up on the page!

New member

Posts

Joined
Fri Sep 14, 2012 3:18 am

Post by mcamca » Sat Dec 22, 2012 6:38 pm

Use the following code instead of the above and it should now work:

Code: Select all

<a class="tf_upfront_badge" href="http://www.thefind.com/store/about-shadeszone" title="TheFind Upfront"><img  border="0" src="http://upfront.thefind.com/images/badges/s/f0/a8/f0a82c9984931b829d40b9c3bb908765.png" alt="Shades Zone 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 + "http://upfront.thefind.com/scripts/main/utils-init-ajaxlib/upfront-badgeinit.js";
      upfront.text = "thefind.upfront.init('tf_upfront_badge', 'f0a82c9984931b829d40b9c3bb908765')";
      document.getElementsByTagName('HEAD')[0].appendChild(upfront);
    })();
  </script>

Active Member

Posts

Joined
Fri Aug 06, 2010 5:57 pm

Post by aboss3 » Thu Dec 27, 2012 3:26 am

I just tried your code, and it still doesn't work. After pasting it it just does not appear still.

Weird...

New member

Posts

Joined
Fri Sep 14, 2012 3:18 am

Post by mcamca » Thu Dec 27, 2012 8:56 pm

aboss3 wrote:I just tried your code, and it still doesn't work. After pasting it it just does not appear still.

Weird...
When I paste this code into footer.tpl of v1.5.4.1 the logo shows. Are you sure that you are pasting this into the correct tpl file. If you have a theme it must be the footer.tpl for that theme; not the default footer.tpl
If the logo when clicked on does not give the correct result then use the code as follows:

Code: Select all

<a class="tf_upfront_badge" href="http://www.thefind.com/store/about-shadeszone" title="TheFind Upfront"><img  border="0" src="http://upfront.thefind.com/images/badges/s/f0/a8/f0a82c9984931b829d40b9c3bb908765.png" alt="Shades Zone 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', 'f0a82c9984931b829d40b9c3bb908765')";
      document.getElementsByTagName('HEAD')[0].appendChild(upfront);
    })();
  </script>
The problem inititially was that Opencart will inject the base reference for your site in front of any link that doesnt start with either "http" or "https".

Active Member

Posts

Joined
Fri Aug 06, 2010 5:57 pm
Who is online

Users browsing this forum: No registered users and 30 guests