From 0ff6dca920352a5cfe493e8ad2cbf421d77d2b92 Mon Sep 17 00:00:00 2001 From: vAugagneur Date: Wed, 14 Nov 2012 13:57:38 +0000 Subject: [PATCH] [-] FO : fixed bug on mobile them with opc can't place order. --- controllers/front/ParentOrderController.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/controllers/front/ParentOrderController.php b/controllers/front/ParentOrderController.php index 486fd42fe..f35f64277 100644 --- a/controllers/front/ParentOrderController.php +++ b/controllers/front/ParentOrderController.php @@ -55,7 +55,10 @@ class ParentOrderControllerCore extends FrontController $this->nbProducts = $this->context->cart->nbProducts(); global $isVirtualCart; - + + if (!$this->context->customer->isLogged(true) && $this->context->getMobileDevice() && Tools::getValue('step')) + Tools::redirect($this->context->link->getPageLink('authentication', true, (int)$this->context->language->id, $params)); + // Redirect to the good order process if (Configuration::get('PS_ORDER_PROCESS_TYPE') == 0 && Dispatcher::getInstance()->getController() != 'order') Tools::redirect('index.php?controller=order');