// Fix small bug when the product are not weight

This commit is contained in:
lLefevre
2012-07-06 08:49:13 +00:00
parent 6c835f3859
commit b51f28cb09
+1 -1
View File
@@ -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'];