Skip to content

Conversation

@WillC0des
Copy link

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

@wsajosh
Copy link
Contributor

wsajosh commented Jul 4, 2024

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
Copy link
Contributor

wsajosh commented Jan 7, 2025

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

@wsajosh wsajosh closed this Jan 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants