module-matrixrate icon indicating copy to clipboard operation
module-matrixrate copied to clipboard

Updates logic to get shipping rates

Open WillC0des opened this issue 2 years ago • 1 comments

Fix for bug where the getFreeMethodWeight() function is dependent on a value other than null is being returned to build the shipping rate array.

Use Case:

On Magento stores, applying a coupon that has a fixed discount for both the subtotal and shipping cost will throw an error for shipping total when the ratesArray is empty. This is inevitable when getFreeMethodWeight() returns null.

Screenshot 2024-05-14 at 3 41 56 PM

WillC0des avatar May 14 '24 19:05 WillC0des

This should already be caught in the check that is in: Model/ResourceModel/Carrier/Matrixrate.php around line 301

The check is: if ($condition == null || $condition == "") { $condition = 0; } Are you running the latest version of the extension?

wsajosh avatar Jul 04 '24 15:07 wsajosh

Closing as I didn't hear back. Please let me know if this is still an issue

wsajosh avatar Jan 07 '25 16:01 wsajosh