Open bmelman opened 4 years ago
Hi @bmelman. Thank you for your report. To help us process this issue please make sure that you provided sufficient information.
Please, add a comment to assign the issue: @magento I am working on this
Just an extra remark: I just want Pickup as an option. No fancy postal code lookups. So why not add options to skip lookup. Certainly with only ONE source location.
Preconditions (*)
Steps to reproduce (*)
Expected result (*)
Actual result (*)
Actual dutch postcode format is:
<code id="pattern_1" active="true" example="1234 AB">^[1-9][0-9]{3}\s?[a-zA-Z]{2}$</code>
(from magento/vendor/magento/module-directory/etc/zip_codes.xml) i.e. 1234AB or 1234 ABbut after: bin/magento inventory-geonames:import nl_NL the inventory_geoname table contains only the numeric part (we are a small country so for location the letters aren't important).
Apparently the postcode format is not the same as the inventory_geoname imported postcodes.
So when I alter Model/ResourceModel/GetGeoNamesDataByAddress.php line 57: ->where('postcode = ?', $address->getPostcode()) to ->where('postcode = ?', substr($address->getPostcode(),0,4) It works fine, but this is no solution for other countries/formats