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

Is this needed ( If Javascript is disabled... )

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 12-26-2004, 06:03 PM
 
deonya deonya is offline
 

Member
  
Join Date: Oct 2003
Posts: 18
 

Default 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.
__________________
Deonya Fields
--------------------------
X-Cart Gold 4.0.4
--------------------------
http://www.pixellab.biz
Reply With Quote
  #2  
Old 12-29-2004, 04:35 AM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default

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}
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #3  
Old 07-08-2008, 09:22 AM
 
Aqua Aqua is offline
 

Advanced Member
  
Join Date: Feb 2007
Location: Idaho, USA
Posts: 97
 

Default 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,
__________________
Aquaman
------------------------------------
X-Cart 4.7.4 Gold
Mods:Authorize.net DPM
CDSEO, xCMS, Rich Snippets, Custom Redirects
xBanners
One Page Checkout
Magic Scroll
Google Shopping export
Lumino Responsive Template
TSS Hosting
Reply With Quote
  #4  
Old 07-08-2008, 09:23 AM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default Re: Is this needed ( If Javascript is disabled... )

Clear your template cache
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #5  
Old 07-08-2008, 09:45 AM
 
Aqua Aqua is offline
 

Advanced Member
  
Join Date: Feb 2007
Location: Idaho, USA
Posts: 97
 

Default 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.
__________________
Aquaman
------------------------------------
X-Cart 4.7.4 Gold
Mods:Authorize.net DPM
CDSEO, xCMS, Rich Snippets, Custom Redirects
xBanners
One Page Checkout
Magic Scroll
Google Shopping export
Lumino Responsive Template
TSS Hosting
Reply With Quote
  #6  
Old 07-08-2008, 10:00 AM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default 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.
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #7  
Old 07-08-2008, 10:07 AM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default Re: Is this needed ( If Javascript is disabled... )

And actually I meant clear your X-Cart template cache - Summary/Tools in your admin area.
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #8  
Old 07-08-2008, 11:33 AM
 
Aqua Aqua is offline
 

Advanced Member
  
Join Date: Feb 2007
Location: Idaho, USA
Posts: 97
 

Default 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?
__________________
Aquaman
------------------------------------
X-Cart 4.7.4 Gold
Mods:Authorize.net DPM
CDSEO, xCMS, Rich Snippets, Custom Redirects
xBanners
One Page Checkout
Magic Scroll
Google Shopping export
Lumino Responsive Template
TSS Hosting
Reply With Quote
  #9  
Old 07-08-2008, 11:34 AM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default Re: Is this needed ( If Javascript is disabled... )

That was in the categories template? Must be part of that add-on skin.
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #10  
Old 07-08-2008, 11:49 AM
 
Aqua Aqua is offline
 

Advanced Member
  
Join Date: Feb 2007
Location: Idaho, USA
Posts: 97
 

Default Re: Is this needed ( If Javascript is disabled... )

Thanks again. BTW, should I place the code back in both auth.tpl and authbox.tpl?
__________________
Aquaman
------------------------------------
X-Cart 4.7.4 Gold
Mods:Authorize.net DPM
CDSEO, xCMS, Rich Snippets, Custom Redirects
xBanners
One Page Checkout
Magic Scroll
Google Shopping export
Lumino Responsive Template
TSS Hosting
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 09:41 PM.

   

 
X-Cart forums © 2001-2020