X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   Losing authorize logo on footer... (https://forum.x-cart.com/showthread.php?t=69170)

Milly4554 05-13-2014 08:29 AM

Losing authorize logo on footer...
 
I'm trying to add the authorize.net logo to the footer, I have added this script to..skin/ideal_responsive/customer/bottom.tpl

Line 15-20

<!-- (c) 2005, 2014. Authorize.Net is a registered trademark of CyberSource Corporation -->
<div class="AuthorizeNetSeal">
<script type="text/javascript" language="javascript">var ANS_customer_id="e2469f77-27b0-48b6-aef8-2db2b9411d8a";</script> <script type="text/javascript" language="javascript" src="//verify.authorize.net/anetseal/seal.js" ></script>
<a href="http://www.authorize.net/" id="AuthorizeNetText" target="_blank">Accept Credit Cards</a>
</div>

I can see the top of the logo at the bottom of the page ....

BUT most of it is hidden below the page...

How do I edit the... skin/ideal_responsive/css/altskin.css page to move it up ?

Thanks Gene

carpeperdiem 05-13-2014 11:42 AM

Re: Losing authorize logo on footer...
 
Quote:

Originally Posted by Milly4554
<script type="text/javascript" language="javascript">var ANS_customer_id="e2469f77-27b0-48b6-aef8-2db2b9411d8a";</script> <script type="text/javascript" language="javascript" src="//verify.authorize.net/anetseal/seal.js" ></script>


1. you need to surround a script in a template with {literal} tags - like this:

Code:

{literal}<script type="text/javascript" language="javascript">var ANS_customer_id="e2469f77-27b0-48b6-aef8-2db2b9411d8a";</script> <script type="text/javascript" language="javascript" src="//verify.authorize.net/anetseal/seal.js" ></script>{/literal}

Does this help?

2. Use firebug and you can see what the page is trying to do.

totaltec 05-13-2014 03:41 PM

Re: Losing authorize logo on footer...
 
Quote:

Originally Posted by carpeperdiem
1. you need to surround a script in a template with {literal} tags

Usually this advice would be correct, but in this case, I don't see any curly braces {} in the JS code. The only need for {literal} tags is to keep Smarty from parsing the curly braces.

carpeperdiem 05-13-2014 03:43 PM

Re: Losing authorize logo on footer...
 
Quote:

Originally Posted by totaltec
Usually this advice would be correct, but in this case, I don;t see any curly braces {} in the JS code. The only need for {literal} tags is to keep Smarty from parsing the curly braces.


Yes... but

//verify.authorize.net/anetseal/seal.js

it's in the source, right?

totaltec 05-13-2014 03:43 PM

Re: Losing authorize logo on footer...
 
Try adding this to your CSS:
Code:

div.AuthorizeNetSeal {
  position: relative;
  top: -86px;
}


totaltec 05-13-2014 03:47 PM

Re: Losing authorize logo on footer...
 
Quote:

Originally Posted by carpeperdiem
Yes... but

//verify.authorize.net/anetseal/seal.js

it's in the source, right?

It is in the source, but it is referenced correctly. Once smarty has done its thing and rendered the page, the script above just goes and gets the seal and references the js you see in the source. It's working properly, its just off the page.

Milly4554 05-14-2014 01:42 AM

Re: Losing authorize logo on footer...
 
Thanks Mike , I think I'm starting to get an Idea about this,

I was going to try div.Authorize.net ,like the other fix you had given me div.fb

I will play around with this just to see what I can do ...

Thanks Carpeperdiem when we all participate everybody learns something !

I hope this example helps someone else too....

Thanks Gene


All times are GMT -8. The time now is 11:45 PM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.