// Fix orders with friendly URL and dispatcher
This commit is contained in:
1 parent
310bd0db04
commit
0672282dec
2 files changed
+3
-2
No files matched your search
@@ -413,6 +413,7 @@ class DispatcherCore
|
|||||||
$this->controller = $controller;
|
$this->controller = $controller;
|
||||||
|
|
||||||
$this->controller = str_replace('-', '', strtolower($this->controller));
|
$this->controller = str_replace('-', '', strtolower($this->controller));
|
||||||
|
$_GET['controller'] = $this->controller;
|
||||||
return $this->controller;
|
return $this->controller;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -56,9 +56,9 @@ class ParentOrderControllerCore extends FrontController
|
|||||||
parent::preProcess();
|
parent::preProcess();
|
||||||
|
|
||||||
// Redirect to the good order process
|
// Redirect to the good order process
|
||||||
if (Configuration::get('PS_ORDER_PROCESS_TYPE') == 0 AND Tools::getValue('controller') != 'order')
|
if (Configuration::get('PS_ORDER_PROCESS_TYPE') == 0 AND Dispatcher::getInstance()->getController() != 'order')
|
||||||
Tools::redirect('index.php?controller=order');
|
Tools::redirect('index.php?controller=order');
|
||||||
if (Configuration::get('PS_ORDER_PROCESS_TYPE') == 1 AND Tools::getValue('controller') != 'order-opc')
|
if (Configuration::get('PS_ORDER_PROCESS_TYPE') == 1 AND Dispatcher::getInstance()->getController() != 'order-opc')
|
||||||
{
|
{
|
||||||
if (isset($_GET['step']) AND $_GET['step'] == 3)
|
if (isset($_GET['step']) AND $_GET['step'] == 3)
|
||||||
Tools::redirect('index.php?controller=order-opc&isPaymentStep=true');
|
Tools::redirect('index.php?controller=order-opc&isPaymentStep=true');
|
||||||
|
|||||||
Reference in new issue
Block a user