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)
-   -   Is this needed ( If Javascript is disabled... ) (https://forum.x-cart.com/showthread.php?t=11124)

deonya 12-26-2004 06:03 PM

Is this needed ( If Javascript is disabled... )
 
I was wondering how big of an effect does this have on x-cart If (Javascript is disabled in your browser click here) ect. I have seen some carts not using it and so do. I would like to take that out of my cart how can I and is it possible.

balinor 12-29-2004 04:35 AM

Hi Deonya. Personally (and this is by no means an opinion shared by everyone), I almost always remove that link and have never had anyone complain about it. Most people don't even know how to change their screen resolutions, let alone disable JavaScript :) To remove it from the menu boxes, look for this bunch of code in auth.tpl and authbox.tpl and either comment it out or remove it:

Code:

{if $usertype eq "C"}
<TR>
<TD class="VertMenuItems" align="right">


{if $js_enabled}
{$lng.txt_javascript_disabled}
{else}
{$lng.txt_javascript_enabled}
{/if}
</TD>
</TR>
{/if}


Aqua 07-08-2008 09:22 AM

Re: Is this needed ( If Javascript is disabled... )
 
Hmmm... I followed the instructions and still see the js message at aquadesign.com. Anyone have an idea what I did wrong?

Thanks,

balinor 07-08-2008 09:23 AM

Re: Is this needed ( If Javascript is disabled... )
 
Clear your template cache

Aqua 07-08-2008 09:45 AM

Re: Is this needed ( If Javascript is disabled... )
 
Thanks Padraic for the idea but I already did that in both IE7 and FF3 then restarted both browsers. The js message is still there. The code was removed in both auth.tpl and authbox.tpl.

balinor 07-08-2008 10:00 AM

Re: Is this needed ( If Javascript is disabled... )
 
Make sure that is really auth.tpl, that looks like one of the add-on skins. Use Webmaster Mode to figure out exactly what template it is.

balinor 07-08-2008 10:07 AM

Re: Is this needed ( If Javascript is disabled... )
 
And actually I meant clear your X-Cart template cache - Summary/Tools in your admin area.

Aqua 07-08-2008 11:33 AM

Re: Is this needed ( If Javascript is disabled... )
 
Ah Ha... I seems the culprit was:

<tr>
<td valign="bottom">

<table width="100%" cellpadding="14" cellspacing="0" align="center">
<tr>
<td>
{if $js_enabled}
<a href="{$js_update_link|amp}" class="SmallNote">{$lng.txt_javascript_disabled}</a>
{else}
<a href="{$js_update_link|amp}" class="SmallNote">{$lng.txt_javascript_enabled}</a>
{/if}
</td>
</tr>
</table>

</td>
</tr>

in /customer/categories.tpl

Does that make sense?

balinor 07-08-2008 11:34 AM

Re: Is this needed ( If Javascript is disabled... )
 
That was in the categories template? Must be part of that add-on skin.

Aqua 07-08-2008 11:49 AM

Re: Is this needed ( If Javascript is disabled... )
 
Thanks again. BTW, should I place the code back in both auth.tpl and authbox.tpl?


All times are GMT -8. The time now is 09:26 PM.

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