// 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
This commit is contained in:
lLefevre committed 2012-07-06 08:49:13 +00:00
1 parent 042356615a
commit 5de4802237
1 file changed
+1 -1
+1 -1
View File
@@ -2651,7 +2651,7 @@ class CartCore extends ObjectModel
$total_weight = 0; $total_weight = 0;
foreach ($products as $product) 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']; $total_weight += $product['weight'] * $product['cart_quantity'];
else else
$total_weight += $product['weight_attribute'] * $product['cart_quantity']; $total_weight += $product['weight_attribute'] * $product['cart_quantity'];