experius / Magento-2-Module-Experius-Postcode-NL

PostcodeNl Api Magento 2 Module. Available At Packagist
https://packagist.org/search/?q=experius
Open Software License 3.0
29 stars 31 forks source link

Shipping Methods don't refresh #7

Closed robertbuijs closed 5 years ago

robertbuijs commented 8 years ago

When PostcodeNL returns an address, Shipping Methods should reload and retreive available shipping methods for shipping destination.

This is default Magento 2 behavior: Shipping Methods are reloaded when Shipping destination country is changed.

peterkeijsers commented 7 years ago

@robertbuijs en @dheesbeen

This seems to trigger only when having entered an zip-code. When entering a zipcode you always get a Warning saying the zipcode format is invalid. This seems to block the further reloading of the shipping methods. When I leave the zipcode field empty and than change the country field (and clicking outside the country dropdown) triggers a reload of the shipping methods.

Update: Due to a known Magento bug, the shipping methods only get reloaded properly when there are 2 or more shipping methods. A quick and dirty fix for this is to enable the shipping method 'free shipping' and enter a minimal order amount of '99999999999'. For the reported bug see: https://github.com/magento/magento2/issues/5490

Update 2: Another dirty fix for the zip-code warning issue. You can disable zip-code format validation by using a custom zip_codes.xml file. See the official docs: http://devdocs.magento.com/guides/v2.1/howdoi/checkout/checkout_zip.html