Answer the question
In order to leave comments, you need to log in
How to clean the "city" field from garbage?
Buyers drive any kind of dregs into the city field, such as “Kyiv warehouse No. 25”, or “Kyiv region, smt. Vasiliv, house. 24, apt. 17".
The problem is that the city field is used in delivery plugins, and all of them are tied to the API (make a request to the server, get a list of branches, and delivery costs). In our case, the servers refuse, because. there is no city with the name "Kyiv warehouse No. 25".
Maybe someone has a regular season lying around that cleans the city field from spaces, the first comma, and other things?
It is desirable that Ukrainian characters are taken into account, and such cities as "Kamenets-Podolsky" are not filtered.
Answer the question
In order to leave comments, you need to log in
How to clean the "city" field from garbage
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question