// BugFix id_carrier in cart not defined + choosing address delivery for multishiping on opc

This commit is contained in:
mDeflotte
2011-11-22 09:28:22 +00:00
parent 5ad28daf47
commit 415619f50e
9 changed files with 271 additions and 166 deletions
+6 -4
View File
@@ -1529,10 +1529,12 @@ class CartCore extends ObjectModel
$delivery_option_list = $this->getDeliveryOptionList();
foreach ($delivery_option as $id_address => $key)
{
if ($useTax)
$total_shipping += $delivery_option_list[$id_address][$key]['total_price_with_tax'];
else
$total_shipping += $delivery_option_list[$id_address][$key]['total_price_without_tax'];
if ($id_address == 0)
continue;
if ($useTax)
$total_shipping += $delivery_option_list[$id_address][$key]['total_price_with_tax'];
else
$total_shipping += $delivery_option_list[$id_address][$key]['total_price_without_tax'];
}
return $total_shipping;
}