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

Can not place order where coupon code is applied

Open ijozwiak opened this issue 1 year ago • 1 comments

We spotted issue that there is no possibility to place order because missing shipping method.

Step to reproduce

  1. Configure different matrix
Country Region/State City Zip/Postal Code From Zip/Postal Code To Order Subtotal > Order Subtotal <= Shipping Price
CHE * * * * -1.0000 59.9900 6.5000
CHE * * * * -1.0000 59.9900 9.0000
CHE * * * * 59.9900 99999999.9999 0.0000
CHE * * * * 59.9900 99999999.9999 2.5000
  1. Add product to the cart which is more expensive than 60 euro
  2. go to the last step
  3. choose payment method
  4. apply coupon code with free shipping
  5. try to place order
  6. you can find in logs that the shipping method is not set

The issue comes from the below code: vendor/webshopapps/module-matrixrate/src/Model/Carrier/Matrixrate.php?ref_type=heads#L152

} elseif ($item->getFreeShipping()) {
    $freeShipping = is_numeric($item->getFreeShipping()) ? $item->getFreeShipping() : 0;
    $freeQty += $item->getQty() - $freeShipping;
    $freePackageValue += $item->getBaseRowTotal();
}

If I removed it shipping method is not reseted and order is able to be placed

ijozwiak avatar Jul 07 '25 13:07 ijozwiak

Hello,

Thank you for reaching out!

As a free extension, MatrixRates is provided as-is and we don’t provide setup or configuration support for it. However, we do offer a wide selection of documentation that should help you answer your questions, and those can be found here:

https://docs.shipperhq.com/?s=matrixrate http://support.webshopapps.com/matrixrate/ https://github.com/webshopapps/module-matrixrate/issues?q=is%3Aissue+is%3Aclosed

https://github.com/webshopapps/module-matrixrate/issues/131

​We do, however, provide support for ShipperHQ, which provides all of the benefits of Matrix Rates, including coupon support, and much much more!

If you are interested, please feel free to sign up for a 15-day free trial at www.shipperhq.com or if you'd like to discuss this further, just shoot us an email at [email protected] and we can find a time to connect.

Thanks, ShipperHQ Support

shqsupport avatar Jul 07 '25 16:07 shqsupport