// Change var name
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@15225 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
@@ -2641,14 +2641,14 @@ class CartCore extends ObjectModel
|
||||
unset($products[$key]);
|
||||
|
||||
// Add a new product line
|
||||
$free_product = $product;
|
||||
$free_product['cart_quantity'] = 1;
|
||||
$free_product['price'] = $product['price'];
|
||||
$free_product['price_wt'] = $product['price_wt'];
|
||||
$free_product['total_wt'] = $product['price_wt'];
|
||||
$free_product['total'] = $product['price'];
|
||||
$free_product['gift'] = true;
|
||||
$gift_products[] = $free_product;
|
||||
$gift_product = $product;
|
||||
$gift_product['cart_quantity'] = 1;
|
||||
$gift_product['price'] = $product['price'];
|
||||
$gift_product['price_wt'] = $product['price_wt'];
|
||||
$gift_product['total_wt'] = $product['price_wt'];
|
||||
$gift_product['total'] = $product['price'];
|
||||
$gift_product['gift'] = true;
|
||||
$gift_products[] = $gift_product;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user