From 5de48022379ac2c20a1b1e7407dfc60cac18d1c3 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 git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@16257 b9a71923-0436-4b27-9f14-aed3839534dd --- 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'];