From 7cd508e10cf2e61b7c48b38dee2b889953ffd485 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 --- 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;