Permalink
Browse files

Double check shipping method IsActive flag

  • Loading branch information...
tatarincev committed May 6, 2016
1 parent e36860f commit 394b5a3b4a0656e7ca31881f1052b9e489944360
@@ -145,6 +145,7 @@ public IHttpActionResult GetShipmentMethods(string cartId)
var retVal = store.ShippingMethods.Where(x => x.IsActive)
.SelectMany(x => x.CalculateRates(evalContext))
.Where(x => x.ShippingMethod == null || x.ShippingMethod.IsActive)
.Select(x => x.ToWebModel()).ToArray();
return Ok(retVal);

0 comments on commit 394b5a3

Please sign in to comment.