Skip to content

Commit 7c32afd

Browse files
committed
Fixed an incorrect total weight was displayed on cart page when attributes are adjusted by weight
1 parent c1d956f commit 7c32afd

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

src/Presentation/SmartStore.Web/Controllers/ShoppingCartController.cs

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1992,12 +1992,7 @@ public ActionResult OrderTotals(bool isEditable)
19921992

19931993
if (cart.Count > 0)
19941994
{
1995-
model.Weight = decimal.Zero;
1996-
1997-
foreach (var sci in cart)
1998-
{
1999-
model.Weight += sci.Item.Product.Weight * sci.Item.Quantity;
2000-
}
1995+
model.Weight = _shippingService.GetShoppingCartTotalWeight(cart);
20011996

20021997
var measure = _measureService.GetMeasureWeightById(_measureSettings.BaseWeightId);
20031998
if (measure != null)

0 commit comments

Comments
 (0)