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

I want to remove java script detecting function of x-cart

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 02-06-2010, 06:48 AM
 
anandat anandat is offline
 

X-Adept
  
Join Date: Jan 2004
Posts: 914
 

Default I want to remove java script detecting function of x-cart

can I remove the detecting Web Browser's capabilities for javscript of x-cart ?

I guess now a days every browser accepts javascript & mostly no one keep it disable unless one has got special requirement to do so.

Google bots also support javascript & improving every day.

So it's advisable remove that function ?

As google many time crawl url like http://www.mysite.com/product_name.html?js=n & some times
http://www.mysite.com/product_name.html?js=y

Can one please help me ?
__________________
X-Cart: 4.7.7 LIVE
Skin:Ultra by xcartmods.co.uk
X-cart Modules: | ACR, Rich Google Search, Customer Testimonials | Cloud Search, | Websitecm: CDSEO (2.1.9)
---------------
Server: Linux
php: 5.3
mysql: 5.0.89
----------------
Reply With Quote
  #2  
Old 02-06-2010, 09:49 PM
 
cautious cautious is offline
 

Advanced Member
  
Join Date: Oct 2003
Location: FL, US
Posts: 64
 

Default Re: I want to remove java script detecting function of x-cart

Quote:
Originally Posted by anandat
can I remove the detecting Web Browser's capabilities for javscript of x-cart ?

I guess now a days every browser accepts javascript & mostly no one keep it disable unless one has got special requirement to do so.

Google bots also support javascript & improving every day.

So it's advisable remove that function ?

As google many time crawl url like http://www.mysite.com/product_name.html?js=n & some times
http://www.mysite.com/product_name.html?js=y

Can one please help me ?

I do not still see a compelling reason to remove the js detector. Because you and I and some friends we know keep js enabled, it does not mean the people who count - your customers will always have them enabled when they come to your shop. So, may I recommend leaving it alone.

If you are worried about Duplicate contents with the crawl sample you gave us, then update your Robots.txt bot messaging file to have two lines similar to these:

Disallow: /*js=y
Disallow: /*js=n

Hope this helps.
__________________
Recommend www.paintball-gear-supplies.com for good deals on camping & outdoor supplies.
x-cart v4.1.10 on LAMP
Reply With Quote
  #3  
Old 02-06-2010, 10:57 PM
 
anandat anandat is offline
 

X-Adept
  
Join Date: Jan 2004
Posts: 914
 

Default Re: I want to remove java script detecting function of x-cart

Hi cautious,
That's a good idea
Thanks a lot
__________________
X-Cart: 4.7.7 LIVE
Skin:Ultra by xcartmods.co.uk
X-cart Modules: | ACR, Rich Google Search, Customer Testimonials | Cloud Search, | Websitecm: CDSEO (2.1.9)
---------------
Server: Linux
php: 5.3
mysql: 5.0.89
----------------
Reply With Quote
  #4  
Old 02-13-2010, 10:35 AM
 
anandat anandat is offline
 

X-Adept
  
Join Date: Jan 2004
Posts: 914
 

Unhappy Re: I want to remove java script detecting function of x-cart

Quote:
Originally Posted by cautious
Disallow: /*js=y
Disallow: /*js=n

I added above 2 lines in robots.txt & now google webmaster reports shows Restricted by robots.txt ‎(23,602)‎!!!

I am using CDSEOPRO.

R U sure it will still crawl other pages on site will just not crawl pages with /js=y & /js=n ?

Do I need to worry ?
__________________
X-Cart: 4.7.7 LIVE
Skin:Ultra by xcartmods.co.uk
X-cart Modules: | ACR, Rich Google Search, Customer Testimonials | Cloud Search, | Websitecm: CDSEO (2.1.9)
---------------
Server: Linux
php: 5.3
mysql: 5.0.89
----------------
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 04:01 PM.

   

 
X-Cart forums © 2001-2020