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

Javascript required not a good strategy....

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 12-01-2002, 09:28 PM
 
motorhaven motorhaven is offline
 

Newbie
  
Join Date: Sep 2002
Posts: 4
 

Default Javascript required not a good strategy....

Much to my dismay I found out X-Cart requires Javascript after I purchased it. Several current browser statistics show that roughly 10% of users have Javascript disabled. That means that I'll give up 10% of my potential customers if I switch from my current shopping cart to X-Cart.

Before I go through the process of removing Javascript and replacing it with non-Javascript link submissions I want to know if anyone else has already done this? Its a daunting task as there are 67 submit() Javascript references in my skin1 directory but one way or another I'm going to have a shop that doesn't require it (but will support it if available).

Are there any plans by the X-Cart development team to remove this need? I can understand Javascript being required for non-shopping sites but the whole point of E-Commerce is sales ---- would you want to give up 10% of your market?
Reply With Quote
  #2  
Old 12-02-2002, 12:51 AM
  B00MER's Avatar 
B00MER B00MER is offline
 

X-Guru
  
Join Date: Sep 2002
Location: Keller, TX (Cart-Lab.com)
Posts: 3,165
 

Default

Just to back ya up:
http://www.thecounter.com/stats/2002/November/javas.php

Could always just run a few regular expressions over the .tpl files, I'm sure some cleanup work would be in order, as well as other aspects of the site that are using javascript, like the register form with the checkemail validation function. Also disabling the product options validation since it uses javascript as well.

I never understood the reason for <A HREF> submit link's vs using a <input type=submit> or <input type=image>

Good luck.
And if you find a quick an easy way to do it let us know.
__________________
Cart-Lab - 100+ Social Bookmarks for X-Cart.
Reply With Quote
  #3  
Old 12-02-2002, 04:52 AM
 
motorhaven motorhaven is offline
 

Newbie
  
Join Date: Sep 2002
Posts: 4
 

Default

My plan of attack will be 2-staged:

1. Get the minimum required tags to make a purchased switched over: update card, add to cart, checkout, etc. I'll make X-Cart live at that point.

2. Get the rest switched over.

After that I plan to remove the need for cookies. I'll do this by attaching a session id to every URL tag (actually a bit easier than the javascript since it can be done as a global find/replace). The number of browsers rejecting cookies is even higher than the number with Javascript turned off.
Reply With Quote
  #4  
Old 12-02-2002, 05:20 AM
  B00MER's Avatar 
B00MER B00MER is offline
 

X-Guru
  
Join Date: Sep 2002
Location: Keller, TX (Cart-Lab.com)
Posts: 3,165
 

Default

Code:
# grep -R setcookie * customer/referer.php: setcookie("RefererCookie", $referer, time()+3600*24*180, "/", $xcart_http_host); include/get_language.php: setcookie ("store_language", "", time()-31536000); include/get_language.php: setcookie ("store_language", $store_language, time()+31536000); # for one year modules/Greet_Visitor/set_cookie.php:setcookie("GreetingCookie", $first_last, time()+3600*24*180, "/", $xcart_http_host);

hehe,
__________________
Cart-Lab - 100+ Social Bookmarks for X-Cart.
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 04:33 AM.

   

 
X-Cart forums © 2001-2020