| ||||||||||
![]() |
Shopping cart software Solutions for online shops and malls | |||||||||
![]() |
![]() |
|
X-Cart Home | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
Problems with State field on registration form | |||
![]() |
|
|
Thread Tools | Search this Thread |
#1
|
|||||||||
|
|||||||||
![]() I am running into a problem with the "State" field on the registration form when users have JavaScript disabled. If a user has JavaScript turned off in their browser they cannot see this field at all and thus they cannot enter anything. The end result is that whatever your default state is set to is what shows up as the state in the order confirmation email. The order may going to a zip code in Oregon but it will show New York as the state.
Now someone's first response might be to say that the user can click on the "If Javascript is disabled in your browser click here" link. The problem is, a lot of people have no idea what JavaScript is so they don't know to use that link. Here is a screenshot that shows the state field missing: http://www.zaptank.com/temp/js_missing_state.jpg Has anyone else bumped into this problem and come up with a good way to handle it?
__________________
X-Cart: 4.0.18 Linux, Apache, MySQL: 4.1.16, PHP: 4.4.2 |
|||||||||
#2
|
|||||||
|
|||||||
![]() You could just turn of the Javascript generated state list and have them enter their state manually.
__________________
Padraic Ryan Ryan Design Studio Professional E-Commerce Development |
|||||||
#3
|
|||||||||
|
|||||||||
![]() Quote:
I considered that, but I thought it would cause problems because people would enter the state inconsistently. For example Florida could be entered as FL, FLA or Florida. I might be wrong, but I was worried that my payment gateway(VeriSign Payflow Pro) or FedEx might choke on that. Actually with FedEx it's just going by the zip so I guess my only concern is with the payment gateway.
__________________
X-Cart: 4.0.18 Linux, Apache, MySQL: 4.1.16, PHP: 4.4.2 |
|||||||||
#4
|
|||||||||
|
|||||||||
![]() Well I am starting to think this problem has a different origination than users having Javascript turned off. Based on some testing I've been doing, I am starting to think my customers are just forgetting to choose a state and leaving the default state. What might help with this is a choice at the top of the Select Form saying "Select A State." I am normally pretty capable of customizing X-cart, but because the state list is generated dynamically I cannot figure out a way to insert something like. Anyone ever do something like this or have any idea how to do it? If I didn't explain this clearly, here is a screenshot of what I am trying to do:
http://www.zaptank.com/temp/select_a_state.jpg
__________________
X-Cart: 4.0.18 Linux, Apache, MySQL: 4.1.16, PHP: 4.4.2 |
|||||||||
#5
|
|||||||||
|
|||||||||
![]() Ok, with the help of X-cart support, I was able to to find a way to insert "Select A State" at the top of the State form. This prevents people from just leaving the default state chosen. The default now is "Select A State" and they will get an error now if they don't choose anything. I am posting the modification here for anyone else who may want to use it.
1. Open '<xcart_root_dir>/skin1/change_states_js.tpl' template. 2. Make a backup copy of '<xcart_root_dir>/skin1/change_states_js.tpl' in case this change breaks something. I did this on a store using X-Cart 4.0.11. 3. Replace : Code:
with: Code:
__________________
X-Cart: 4.0.18 Linux, Apache, MySQL: 4.1.16, PHP: 4.4.2 |
|||||||||
|
|||
X-Cart forums © 2001-2020
|