webshopapps / module-matrixrate

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

This shipping method is not available #99

Closed edsonjuniorwbj closed 3 years ago

edsonjuniorwbj commented 3 years ago

Version Magento 2.4.1

Always this error

Captura de tela de 2021-05-13 09-35-28

Even if I select and try to advance, it returns me matrixrate, null

In Model/Carrier/Matrixrate.php method collectRates in $rateArray = $this->getRate($request, $zipRange) return empty. Why in ResourceModel/Carrier/Matrixrate.php getRate line 307 $adapter->fetchAll return empty

ibraheemnabeelfauzi commented 3 years ago

Hi, @edsonjunior2021

Please email us on support@shipperhq.com and we'll provide further information.

edsonjuniorwbj commented 3 years ago

Hi, @edsonjunior2021

Please email us on support@shipperhq.com and we'll provide further information.

Have to send an email? I thought that the doubts of problems would take away here, sorry. However, thank you very much, I will try to resolve it here.

ibraheemnabeelfauzi commented 3 years ago

@edsonjunior2021
Apologise here but the reason I asked for this to be communicated via email is so that I can have you send me the matrixRate CSV as the above is likely caused by a postal code or a product that didn't match on it and for that reason, it didn't fetch rates. Thanks!

edsonjuniorwbj commented 3 years ago

@edsonjunior2021 Apologise here but the reason I asked for this to be communicated via email is so that I can have you send me the matrixRate CSV as the above is likely caused by a postal code or a product that didn't match on it and for that reason, it didn't fetch rates. Thanks!

OK no problem.

in ResourceModel/Carrier/Matrixrate.php at the "switch" always to nº 7

that way it doesn't work

$zoneWhere = "dest_country_id = '0' AND dest_region_id = '0' AND dest_city ='*' AND dest_zip ='*'";

if I change this code in this way, it works.

$zoneWhere = "dest_country_id = '0' AND dest_region_id = '0' AND dest_city ='*' " . $zipSearchString;

However, I want to understand why it’s not working the way you create, I’m trying to see.