[-] Core: Fix #PSCFV-8130 getTaxesAverageUsed() for delivery address used

This commit is contained in:
Rémi Gaillard
2013-03-05 13:27:09 +01:00
parent c6b65caff7
commit a7365de9a8

View File

@@ -292,7 +292,7 @@ class CartCore extends ObjectModel
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; // Get delivery address of the product from the cart
$address_id = (int)$product['id_address_delivery']; // Get delivery address of the product from the cart
if (!Address::addressExists($address_id))
$address_id = null;