[-] FO : fixed bug on mobile them with opc can't place order.

This commit is contained in:
vAugagneur
2012-11-14 13:57:38 +00:00
parent a324cb273c
commit 0ff6dca920
+4 -1
View File
@@ -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');