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

Java Script Messes With Cart

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 03-23-2004, 04:57 AM
  DogByteMan's Avatar 
DogByteMan DogByteMan is offline
 

X-Adept
  
Join Date: Mar 2003
Posts: 833
 

Default Java Script Messes With Cart

I am trying to add a TrustLogo to my store, however whenever I add the necessary java script it screws up the cart and checkout process. If you click checkout it clears the cart and signs you off as well as many other weird things.

Code:
{literal}<script language="JavaScript" src="https://secure.comodo.net/trustlogo/javascript/trustlogo.js" type="text/javascript"> </script>{/literal} {literal}<!-- TrustLogo Html Builder Code: Shows the logo at URL http://www.dogbytecomputer.com/secure_site.gif Logo type is Secure Site Seal - For SSL Certificate holders ("SC") Not Floating //--> <script type="text/javascript">TrustLogo("../secure_site.gif", "SC", "none");</script>{/literal}

The script provides roll over, popup verification in the form of a small certificate.

Any ideas how I can implement this without screwing up my cart?
__________________
Dedicated Server provided by EWD Hosting
X-Cart version 4.1.12
PHP 5.3.2
MySQL server 5.0.87-community
Operation system Linux
Perl 5.008008
dogbytecomputer.com
Reply With Quote
  #2  
Old 03-23-2004, 06:42 AM
  DogByteMan's Avatar 
DogByteMan DogByteMan is offline
 

X-Adept
  
Join Date: Mar 2003
Posts: 833
 

Default

It seems no matter where I put the code, it screws up the cart as described above.... This is frustrating
__________________
Dedicated Server provided by EWD Hosting
X-Cart version 4.1.12
PHP 5.3.2
MySQL server 5.0.87-community
Operation system Linux
Perl 5.008008
dogbytecomputer.com
Reply With Quote
  #3  
Old 03-23-2004, 06:54 AM
 
chawla@moviesandgamesonli chawla@moviesandgamesonli is offline
 

Senior Member
  
Join Date: Mar 2003
Location: UK
Posts: 125
 

Default

I put the first part of the code in the head.tpl and the second part of the code in the poweredby.tpl and everything seems to be working fine.

BTW leave out the {literal} in the code.

Version 3.5.4
Reply With Quote
  #4  
Old 03-23-2004, 07:12 AM
  DogByteMan's Avatar 
DogByteMan DogByteMan is offline
 

X-Adept
  
Join Date: Mar 2003
Posts: 833
 

Default

Did you use {literal} and {/literal}?

It still won't allow cart to function properly...
__________________
Dedicated Server provided by EWD Hosting
X-Cart version 4.1.12
PHP 5.3.2
MySQL server 5.0.87-community
Operation system Linux
Perl 5.008008
dogbytecomputer.com
Reply With Quote
  #5  
Old 03-23-2004, 07:15 AM
 
chawla@moviesandgamesonli chawla@moviesandgamesonli is offline
 

Senior Member
  
Join Date: Mar 2003
Location: UK
Posts: 125
 

Default

Never used them, just put the code in without the {literal}
Reply With Quote
  #6  
Old 03-23-2004, 07:28 AM
  DogByteMan's Avatar 
DogByteMan DogByteMan is offline
 

X-Adept
  
Join Date: Mar 2003
Posts: 833
 

Default

Leaving The {literal} and {/literal} off did the trick.... \

That's what I get for trying to make a simple thing complicated.
__________________
Dedicated Server provided by EWD Hosting
X-Cart version 4.1.12
PHP 5.3.2
MySQL server 5.0.87-community
Operation system Linux
Perl 5.008008
dogbytecomputer.com
Reply With Quote
  #7  
Old 03-23-2004, 07:45 AM
  DogByteMan's Avatar 
DogByteMan DogByteMan is offline
 

X-Adept
  
Join Date: Mar 2003
Posts: 833
 

Default

Hey chawla@moviesandgamesonli... How come your TrustLogo verification only works on secure pages?
__________________
Dedicated Server provided by EWD Hosting
X-Cart version 4.1.12
PHP 5.3.2
MySQL server 5.0.87-community
Operation system Linux
Perl 5.008008
dogbytecomputer.com
Reply With Quote
  #8  
Old 03-23-2004, 07:52 AM
 
chawla@moviesandgamesonli chawla@moviesandgamesonli is offline
 

Senior Member
  
Join Date: Mar 2003
Location: UK
Posts: 125
 

Default

Because it for www.moviesandgamesonline.com not .co.uk, so it won't work on any parked domains.

All the secure pages are on the .com so it doesn't really matter, as soon as you view your cart, register or login you go to the .com pages.
Reply With Quote
  #9  
Old 03-23-2004, 07:55 AM
  DogByteMan's Avatar 
DogByteMan DogByteMan is offline
 

X-Adept
  
Join Date: Mar 2003
Posts: 833
 

Default

I did not even notice it was on two seperate domains
__________________
Dedicated Server provided by EWD Hosting
X-Cart version 4.1.12
PHP 5.3.2
MySQL server 5.0.87-community
Operation system Linux
Perl 5.008008
dogbytecomputer.com
Reply With Quote
  #10  
Old 03-23-2004, 07:58 AM
 
chawla@moviesandgamesonli chawla@moviesandgamesonli is offline
 

Senior Member
  
Join Date: Mar 2003
Location: UK
Posts: 125
 

Default

Do you sell any 3.5. templates?
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 03:44 AM.

   

 
X-Cart forums © 2001-2020