![]() |
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.
|
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"} |
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, |
Re: Is this needed ( If Javascript is disabled... )
Clear your template cache
|
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.
|
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.
|
Re: Is this needed ( If Javascript is disabled... )
And actually I meant clear your X-Cart template cache - Summary/Tools in your admin area.
|
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? |
Re: Is this needed ( If Javascript is disabled... )
That was in the categories template? Must be part of that add-on skin.
|
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.