Jump to content

How to make "State" not selectable but text input?


Recommended Posts

in authantication.tpl and address.tpl
I want make "State" option not selectable as County, but text input like City. How to do this?
State for each country is enabled beforhand but no state name created coz only state ID is available for Canada and USA.

Why I need this change?
I am configuring Paypal 2.0 mod now. If no state name in billing address, then Paypal will return error for empty state name reason. I have searched around in the forum and got the answer that you can creat the same name as Country for State. Then Customer choose it as state. It did work. But I think that solution is awkward since state name cannot be same as country name. So if State name can be typed as City name, then I think Paypal will recoganise it to complete payment. (paypal2.0 or Paypal API has this problem. i think I am not alone)

I am not sure if my idea is feasible or not. Pls advice.

Thanks,
Alex

Link to comment
Share on other sites

I have tested that any text for State will be accepted by Paypal. Like Japan for Japan State.

Where can i find all ISO code for all countries? How to add them in one time? If add one by one, it will be incredible time consuming...

thank you Shokinro

Link to comment
Share on other sites

I have tested that any text for State will be accepted by Paypal

Maybe you are right. They accept what ever you input. But I think it is better to register correct information at PrestaShop and let user to select instead of input. That is also user friendly.

Yes, it is a little bit time consuming to register the state information. You can write SQL script to input it will be quicker.
By the way, you can find the Japanese Prefectures information here

http://en.wikipedia.org/wiki/Prefectures_of_Japan

Please also note that you input the data in correct order, otherwise FireFox will not display drop down in correct order.
See here for more information on this issue.
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...