Jump to content

Localization and Province/State issue


Recommended Posts

Hi All.

 

I just recently launched a prestashop site. Seeing over 200+ countries in the back office we decided to enable them to offer our products world wide. Quickly we had people reporting that they have no where to enter the province in. What we discovered was that if the state/province information was not in the system the field disappears.

 

Under the localization tab, I see that they have some localization packs available which is suppose to download the provinces/states. I went through the whole list and downloaded them all but still don't have none of the provinces/states for MOST of the countries on the list. My questions:

 

1. Do the localization packs available not have the required province information?

2. Is there anywhere else I can download localization packs?

3. If no, does this mean I have to manually go through the countries i want to support and add in all the provinces?

 

I would think that this could be solved if the field was not a dropdown and users could enter their province/state themselves (obviously prone to typos). Any information regarding this is appreciated.

 

Thanks,

Mike

Link to comment
Share on other sites

  • 2 months later...

Hi,

The problem with your solution is that you could not apply tax rules/carriers/restrictions by province that way, since it's ID driven at the moment, and each province/state/country has a unique ID. The only solution, if packs don't include them (though it's weird) is to add them manually :)

Link to comment
Share on other sites

the main problem here is the states are not actually uploading if you choose state only. I uploaded some state only localisation packs and they simply do not add the states. Even places that do have the states. I put in a bug report and they closed it saying they could not replicate it. So i am not sure if there is a bug with uploading states only or if the uploads changes the countries status to contain states then does not include them or more. Another site i run i never uploaded the states pack and does not have any problem with paypal saying "state missing" in the error code of payments. Any solution is better than these silly error codes that make the customers unable to pay.

Edited by jimmyc (see edit history)
  • Like 1
Link to comment
Share on other sites

Yes it is clearly a bug the cannot replicate with a new site. It needs an operational site. But try commenting on a closed bug report. Responses never happen. Phew. I also think there is a problem possibly related, if you use the zones then add more zones for a different shipping provider,move the country to a new zone, it does not move the states to the correct zone... I think... However i can not verify that as the first problem still stands of not being to add the states. We have small sites that are growing. We trouble shoot their software. They sell it as hosted. Why not add a cheap service where we can get a little response and grow the product for them. A growth platform. Do not get me wrong. I love prestashop. But sometimes it's really hard to get a solution to the new "stable" platforms. AH that's my vent for the day. HA

  • Like 1
Link to comment
Share on other sites

  • 1 month later...

the main problem here is the states are not actually uploading if you choose state only. I uploaded some state only localisation packs and they simply do not add the states. Even places that do have the states. I put in a bug report and they closed it saying they could not replicate it. So i am not sure if there is a bug with uploading states only or if the uploads changes the countries status to contain states then does not include them or more. Another site i run i never uploaded the states pack and does not have any problem with paypal saying "state missing" in the error code...

 

And what's even more ridiculous is that French, Spanish and German packs are already included with the installation of 1.5, but the states for those countries aren't. From what I can see from trying to do it myself, like jimmyc, Importing packs does absolutely nothing for states, whether you select states by itself, or if selected along with currency, language etc.

 

The problem with your solution is that you could not apply tax rules/carriers/restrictions by province that way

 

What if we're not trying to apply any of those things by state/province to places outside of our own country? Couldn't the "state" field in the checkout be a not-required textbox (like "Address Line 2") by default, and become a dropdown only when a country is selected that has states enabled AND defined in the BO?

 

What I'm trying to say is, if there are no special rules, restrictions etc. pointing to a state, does it even matter what the ID is for that state, or if it even needs an ID at all? Or does the existence of a "state" checkout field absolutely require a state ID to be included in it, in order to pass the address data successfully to PayPal? Because as far as I can tell, the PayPal API only needs to be told if there's a state or not, and if there is, what the name of that state is. In other words, I don't think it cares about any specific ID's associated with it, although maybe someone a lot smarter with code than me could check that to make sure. :P

 

 

EDIT: correction, according to some testing I did on the PayPal site, PayPal absolutely requires "state" for USA, Canada, Germany, Spain, Italy, Japan, Australia and China (for all other countries "state" seems to be optional) in order to process payment. Not sure about other payment processors but it's likely the same. Anyway, those are countries you MUST import (or manually add) states for if they aren't already present in the BO. But my point still stands: couldn't we hack a textfield to represent "state" to appear when the country selected doesn't have any states defined? At least it would stop emails from customers saying "help, there's nowhere for me to type in my state/region/etc.!" and save us hours and hours of adding states in the BO manually.

Edited by artofadornment (see edit history)
  • Like 3
Link to comment
Share on other sites

  • 1 year later...

I have same problems,

I try to upgrade my version from 1.6.0.8 to 1.6.0.9 nothing happens.

However i solved it by copy the 'ps_state" from my other website (which has my country's state) to my website using 'php my admin' by exporting to csv files (other website) and import it (in my website).

And it solved (for now)

I will let you know if I have update.

  • Like 1
Link to comment
Share on other sites

×
×
  • Create New...