We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c1d956f commit 7c32afdCopy full SHA for 7c32afd
src/Presentation/SmartStore.Web/Controllers/ShoppingCartController.cs
@@ -1992,12 +1992,7 @@ public ActionResult OrderTotals(bool isEditable)
1992
1993
if (cart.Count > 0)
1994
{
1995
- model.Weight = decimal.Zero;
1996
-
1997
- foreach (var sci in cart)
1998
- {
1999
- model.Weight += sci.Item.Product.Weight * sci.Item.Quantity;
2000
- }
+ model.Weight = _shippingService.GetShoppingCartTotalWeight(cart);
2001
2002
var measure = _measureService.GetMeasureWeightById(_measureSettings.BaseWeightId);
2003
if (measure != null)
0 commit comments