Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

Losing authorize logo on footer...

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 05-13-2014, 08:29 AM
 
Milly4554 Milly4554 is offline
 

Advanced Member
  
Join Date: Feb 2014
Posts: 75
 

Default 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
__________________
http://kjbeautystore.com/

X CART Gold v 4.6.6
CDSEO Pro 2.0 w/Rich Snippets
Reboot Responsive Template
alteredCart On-Sale Module
alteredCart Call For Price Plus
Reply With Quote
  #2  
Old 05-13-2014, 11:42 AM
 
carpeperdiem carpeperdiem is offline
 

X-Guru
  
Join Date: Jul 2006
Location: New York City, USA
Posts: 5,399
 

Default 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.
__________________
xcart 4.5.4 gold+ w/x-payments 1.0.6; xcart gold 4.4.4
Reply With Quote

The following user thanks carpeperdiem for this useful post:
Milly4554 (05-14-2014)
  #3  
Old 05-13-2014, 03:41 PM
  totaltec's Avatar 
totaltec totaltec is offline
 

X-Guru
  
Join Date: Jan 2007
Location: Louisville, KY USA
Posts: 5,823
 

Default 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.
__________________
Mike White - Now Accepting new clients and projects! Work with the best, get a US based development team for just $125 an hour. Call 1-502-773-6454, email mike at babymonkeystudios.com, or skype b8bym0nkey

XcartGuru
X-cart Tutorials | X-cart 5 Tutorials

Check out the responsive template for X-cart.
Reply With Quote

The following user thanks totaltec for this useful post:
Milly4554 (05-14-2014)
  #4  
Old 05-13-2014, 03:43 PM
 
carpeperdiem carpeperdiem is offline
 

X-Guru
  
Join Date: Jul 2006
Location: New York City, USA
Posts: 5,399
 

Default 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?
__________________
xcart 4.5.4 gold+ w/x-payments 1.0.6; xcart gold 4.4.4
Reply With Quote
  #5  
Old 05-13-2014, 03:43 PM
  totaltec's Avatar 
totaltec totaltec is offline
 

X-Guru
  
Join Date: Jan 2007
Location: Louisville, KY USA
Posts: 5,823
 

Default Re: Losing authorize logo on footer...

Try adding this to your CSS:
Code:
div.AuthorizeNetSeal { position: relative; top: -86px; }
__________________
Mike White - Now Accepting new clients and projects! Work with the best, get a US based development team for just $125 an hour. Call 1-502-773-6454, email mike at babymonkeystudios.com, or skype b8bym0nkey

XcartGuru
X-cart Tutorials | X-cart 5 Tutorials

Check out the responsive template for X-cart.
Reply With Quote

The following user thanks totaltec for this useful post:
Milly4554 (05-14-2014)
  #6  
Old 05-13-2014, 03:47 PM
  totaltec's Avatar 
totaltec totaltec is offline
 

X-Guru
  
Join Date: Jan 2007
Location: Louisville, KY USA
Posts: 5,823
 

Default 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.
__________________
Mike White - Now Accepting new clients and projects! Work with the best, get a US based development team for just $125 an hour. Call 1-502-773-6454, email mike at babymonkeystudios.com, or skype b8bym0nkey

XcartGuru
X-cart Tutorials | X-cart 5 Tutorials

Check out the responsive template for X-cart.
Reply With Quote

The following 3 users thank totaltec for this useful post:
carpeperdiem (05-13-2014), Milly4554 (05-14-2014), qualiteam (05-13-2014)
  #7  
Old 05-14-2014, 01:42 AM
 
Milly4554 Milly4554 is offline
 

Advanced Member
  
Join Date: Feb 2014
Posts: 75
 

Default 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
__________________
http://kjbeautystore.com/

X CART Gold v 4.6.6
CDSEO Pro 2.0 w/Rich Snippets
Reboot Responsive Template
alteredCart On-Sale Module
alteredCart Call For Price Plus
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 10:01 AM.

   

 
X-Cart forums © 2001-2020