AlexYao Posted October 23, 2010 Share Posted October 23, 2010 in authantication.tpl and address.tplI 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 More sharing options...
shokinro Posted October 23, 2010 Share Posted October 23, 2010 At your back office, you can enable and add states for those country that contains State. And Paypal requires correct State information i.e. ISO code. Even if you implement it as text box, user may input incorrect and Paypal still will not accept.See here for more information on how to configure PrestaShop for country contains states. Link to comment Share on other sites More sharing options...
AlexYao Posted October 23, 2010 Author Share Posted October 23, 2010 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 More sharing options...
shokinro Posted October 23, 2010 Share Posted October 23, 2010 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 herehttp://en.wikipedia.org/wiki/Prefectures_of_JapanPlease 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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now