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)
-   -   Java Script Messes With Cart (https://forum.x-cart.com/showthread.php?t=6820)

DogByteMan 03-23-2004 04:57 AM

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?

DogByteMan 03-23-2004 06:42 AM

It seems no matter where I put the code, it screws up the cart as described above.... This is frustrating

chawla@moviesandgamesonli 03-23-2004 06:54 AM

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

DogByteMan 03-23-2004 07:12 AM

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

It still won't allow cart to function properly...

chawla@moviesandgamesonli 03-23-2004 07:15 AM

Never used them, just put the code in without the {literal}

DogByteMan 03-23-2004 07:28 AM

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

That's what I get for trying to make a simple thing complicated.

DogByteMan 03-23-2004 07:45 AM

Hey chawla@moviesandgamesonli... How come your TrustLogo verification only works on secure pages?

chawla@moviesandgamesonli 03-23-2004 07:52 AM

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.

DogByteMan 03-23-2004 07:55 AM

I did not even notice it was on two seperate domains #-o

chawla@moviesandgamesonli 03-23-2004 07:58 AM

Do you sell any 3.5. templates?


All times are GMT -8. The time now is 05:18 AM.

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