// 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:
+1
-1
@@ -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'];
|
||||
|
||||
Reference in New Issue
Block a user