[-] MO : Fix bug #PNM-985 bad zone for carrier listing update

This commit is contained in:
Gregory Roussac
2013-01-28 15:55:13 +01:00
parent 0a26e74671
commit 9bd0480249
5 changed files with 70 additions and 28 deletions
@@ -241,7 +241,15 @@ class ParentOrderControllerCore extends FrontController
$key = Cart::desintifier(Tools::getValue('id_carrier'));
foreach ($delivery_option_list as $id_address => $options)
if (isset($options[$key]))
{
$this->context->cart->id_carrier = (int)Tools::getValue('id_carrier');
$this->context->cart->setDeliveryOption(array($id_address => $key));
if(isset($this->context->cookie->id_country))
unset($this->context->cookie->id_country);
if(isset($this->context->cookie->id_state))
unset($this->context->cookie->id_state);
}
}
}