[-] FO : #PSFV-604 - Add commentaries
This commit is contained in:
+4
-4
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user