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)
-   -   Search results page? (https://forum.x-cart.com/showthread.php?t=7634)

Mod King 05-19-2004 05:20 AM

If you put javascript in smarty template files you have to escape them with
{literal} {/literal} tags, or else the javascript { } gets intereted as smarty tags. :D


Your code should work like this :)

Code:

<body>

<p style="margin-top: 0; margin-bottom: 0">
<font color="#0000FF" style="font-size: 9pt">
[img]http://mysite.com/anim_pic.gif[/img]
</font></p>
<p style="margin-top: 0; margin-bottom: 0"></p>
<p style="margin-top: 0; margin-bottom: 0"></p>
<p style="margin-top: 0; margin-bottom: 0">
<font face="Verdana" style="font-size: 9pt"><font color="#0000FF">Didn't
find what you were looking for?
</font> We probably have it and
it's just not yet listed in our store.

{literal}
<script>
//Popup Window Script
//By JavaScript Kit (http://javascriptkit.com)
//JavaScript tutorials and over 400+ free scripts

function openpopup(){
var popurl="http://mysite.com/price_quote.htm"
winpops=window.open(popurl,"","width=620,height=450,scrollbars")
}

</script>
{/literal}
<font color="#FF0000"><u>Click here</u></font>
to see if we have it and for a free price quote!</font></p>

</body>


bluecat 05-19-2004 05:25 AM

That worked perfect! Thank you very much!! :)

jeremye 05-19-2004 05:57 AM

Sorry bluecat, I didn't think to add the {literal} tags for the javascript. Glad it worked out for you.


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

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