meanbee / magento-pca-predict

UK Address lookup solution for Magento 1 using PCA Predict

Home Page:https://www.meanbee.com/magento-extensions/postcode-anywhere-autocomplete.html

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Jersey and Guernsey not being set as country

danMontague opened this issue · comments

When the postcode entered is from either Jersey or Guernsey the country gets set to UK(Excluding Jersey. Guernsey etc.) and not the appropriate country based on the postcode.

I had a quick look, it looks like with the API that we're using, because it's specific to the UK, it doesn't provide us with a country field in the response. At least from what I can see from a quick look:

{"error":false,"content":{"id":"11871251.00","seq":"0","organisation_name":"Fellas Barber Shop","line1":"82 Halkett Place","line2":"St. Helier","post_town":"Jersey","postcode":"JE2 4WH","mailsort":"53116","barcode":"(JE24WH3AC)","is_residential":"0","is_small_organisation":"1","is_large_organisation":"0"}}