webshopapps / module-matrixrate

WebShopApps MatrixRates for Magento2
Open Software License 3.0
120 stars 64 forks source link

Problems with BRAZILIANS zipcodes #103

Closed Leo22ca closed 2 years ago

Leo22ca commented 3 years ago

I had some problems with zipcodes from Brazil. As we have one especial character on the middle of the zipcode, it was in trouble. I fixed it altering just one line (207) in vendor/webshopapps/module-matrixrate/src/Model/ResourceModel/Carrier/Matrixrate.php The alter is below:

Before: $postcode = trim($request->getDestPostcode());

After the change: $postcode = trim(str_replace("-","",$request->getDestPostcode())); That's it

Hope it would helpful

wsadasmit commented 2 years ago

Hi @Leo22ca , thanks for raising this issue, we'll look into it and let you know what we find.

Take care,

wsadasmit commented 2 years ago

Hi @Leo22ca,

We've released version 20.3.0 of module-matrixrate which contains the fix for this issue. Please update to this version and if you have any issues please contact us at support@shipperhq.com.

Thanks again!