From b51f28cb09f8a2d3e51ae41fac5a11b6ef10e2ea Mon Sep 17 00:00:00 2001 From: lLefevre Date: Fri, 6 Jul 2012 08:49:13 +0000 Subject: [PATCH] // Fix small bug when the product are not weight --- classes/Cart.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/classes/Cart.php b/classes/Cart.php index 4278ef83e..383defba6 100644 --- a/classes/Cart.php +++ b/classes/Cart.php @@ -2651,7 +2651,7 @@ class CartCore extends ObjectModel $total_weight = 0; foreach ($products as $product) { - if (is_null($product['weight_attribute'])) + if (!isset($product['weight_attribute']) || is_null($product['weight_attribute'])) $total_weight += $product['weight'] * $product['cart_quantity']; else $total_weight += $product['weight_attribute'] * $product['cart_quantity'];