// Fix some problems with multishipping

This commit is contained in:
mDeflotte
2011-12-21 17:24:16 +00:00
parent a44f6c2e46
commit a768213b3c
+12
View File
@@ -1927,6 +1927,17 @@ class CartCore extends ObjectModel
return;
}
$delivery_option_list = $this->getDeliveryOptionList(null , true);
foreach ($delivery_option_list as $id_address => $options)
if (!isset($delivery_option[$id_address]))
foreach ($options as $key => $option)
if ($option['is_best_price'])
{
$delivery_option[$id_address] = $key;
break;
}
if (count($delivery_option) == 1)
$this->id_carrier = $this->getIdCarrierFromDeliveryOption($delivery_option);
@@ -2909,6 +2920,7 @@ class CartCore extends ObjectModel
AND id_address_delivery = '.(int)$new_id_address_delivery;
Db::getInstance()->execute($sql);
}
return true;
}