VP-ASP :: Shopping Cart Software

Shopping Cart Software Solutions for anywhere in the World

US/Canada(Toll Free): +1 888 587 2278
Europe/UK: +44 (020) 7193 9408
Australia/New Zealand: +61 3 9016 4497

VP-ASP Shopping Cart Customer Forum

Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 VPCart Forum
 Customization
 Requiring a state - removing the "none" option
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

anathanson
Starting Member

31 Posts

Posted - December 04 2008 :  16:09:43  Show Profile  Visit anathanson's Homepage  Reply with Quote
On the shopcustomer.asp page during checkout, I want to remove the "None" option from the state drop down list. I'm guessing it is controlled by the shopstates.asp code, but not quite sure where to alter it so that "none" is not presented as an option.

Any suggestions on what code to alter/remove? It wasn't clear if none meant "not yet selected" or if it was the choice in the dropdown list.

Thanks,

Alex

madbug
VP-ASP New User

130 Posts

Posted - December 13 2008 :  02:53:33  Show Profile  Reply with Quote
Hi Alex,

You will need to amend the code in "shopstates.asp", but I strongly suggest that don't remove it, because it might causing some issue on the tax by states. Also if customer from other states which did not list in the drop down, they cannot select the None for the state.

If you wish to remove the None state, please open shopstates.asp

Around line 34-36:
stateabbrev="None"
statename="None"
response.write "<option value=""" & stateabbrev & """ " & selected & ">" & statename & "</option>" & vbcrlf

modify it to:

stateabbrev="None"
statename="None"
'response.write "<option value=""" & stateabbrev & """ " & selected & ">" & statename & "</option>" & vbcrlf

Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
Snitz Forums 2000