// Retrocompatibility with carriers modules
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@12614 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
@@ -92,6 +92,23 @@ class OrderControllerCore extends ParentOrderController
|
||||
{
|
||||
global $isVirtualCart;
|
||||
|
||||
if (Tools::isSubmit('ajax') && Tools::getValue('method') == 'updateExtraCarrier')
|
||||
{
|
||||
// Change virtualy the currents delivery options
|
||||
$delivery_option = $this->context->cart->getDeliveryOption();
|
||||
$delivery_option[(int)Tools::getValue('id_address')] = Tools::getValue('id_delivery_option');
|
||||
$this->context->cart->setDeliveryOption($delivery_option);
|
||||
$return = array(
|
||||
'content' => Hook::exec(
|
||||
'displayCarrierList',
|
||||
array(
|
||||
'address' => new Address((int)Tools::getValue('id_address'))
|
||||
)
|
||||
)
|
||||
);
|
||||
die(Tools::jsonEncode($return));
|
||||
}
|
||||
|
||||
if ($this->nbProducts)
|
||||
$this->context->smarty->assign('virtual_cart', $isVirtualCart);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user