[-] BO: Fix specific prices on BackOffice order
This commit is contained in:
@@ -731,6 +731,7 @@ class AdminOrdersControllerCore extends AdminController
|
|||||||
{
|
{
|
||||||
$payment_module = Module::getInstanceByName($module_name);
|
$payment_module = Module::getInstanceByName($module_name);
|
||||||
$cart = new Cart((int)$id_cart);
|
$cart = new Cart((int)$id_cart);
|
||||||
|
Context::getContext()->customer = new Customer((int)$cart->id_customer);
|
||||||
$payment_module->validateOrder((int)$cart->id, (int)$id_order_state, $cart->getOrderTotal(true, Cart::BOTH), $payment_module->displayName, sprintf($this->l('Manual order - ID Employee :%d'), (int)Context::getContext()->cookie->id_employee), array(), null, false, $cart->secure_key);
|
$payment_module->validateOrder((int)$cart->id, (int)$id_order_state, $cart->getOrderTotal(true, Cart::BOTH), $payment_module->displayName, sprintf($this->l('Manual order - ID Employee :%d'), (int)Context::getContext()->cookie->id_employee), array(), null, false, $cart->secure_key);
|
||||||
if ($payment_module->currentOrder)
|
if ($payment_module->currentOrder)
|
||||||
Tools::redirectAdmin(self::$currentIndex.'&id_order='.$payment_module->currentOrder.'&vieworder'.'&token='.$this->token);
|
Tools::redirectAdmin(self::$currentIndex.'&id_order='.$payment_module->currentOrder.'&vieworder'.'&token='.$this->token);
|
||||||
|
|||||||
Reference in New Issue
Block a user