From 4bea006152f37c7cb43bb581e930c8749046fd0e Mon Sep 17 00:00:00 2001 From: mDeflotte Date: Thu, 29 Mar 2012 07:18:09 +0000 Subject: [PATCH] [-] FO : #PSFV-604 - Add commentaries git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@14350 b9a71923-0436-4b27-9f14-aed3839534dd --- classes/Cart.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/classes/Cart.php b/classes/Cart.php index adbb0b8ec..a82f79c29 100644 --- a/classes/Cart.php +++ b/classes/Cart.php @@ -249,12 +249,12 @@ class CartCore extends ObjectModel if (!count($products)) return 0; - foreach ($products as $product) + foreach ($products as $product) // products refer to the cart details { if (Configuration::get('PS_TAX_ADDRESS_TYPE') == 'id_address_invoice') $address_id = (int)$cart->id_address_invoice; else - $address_id = (int)$product->id_address_delivery; + $address_id = (int)$product->id_address_delivery; // Get delivery address of the product from the the cart if (!Address::addressExists($address_id)) $address_id = null; @@ -1287,12 +1287,12 @@ class CartCore extends ObjectModel if (Tax::excludeTaxeOption()) $with_taxes = false; - foreach ($products as $product) + foreach ($products as $product) // products refer to the cart details { if (Configuration::get('PS_TAX_ADDRESS_TYPE') == 'id_address_invoice') $address_id = (int)$this->id_address_invoice; else - $address_id = (int)$product['id_address_delivery']; + $address_id = (int)$product['id_address_delivery']; // Get delivery address of the product from the the cart if (!Address::addressExists($address_id)) $address_id = null;