ajax = true; parent::initContent(); $this->route(); } /** * route */ public function route() { $module = Module::getInstanceByName('deliverydateswizardpro'); $route = Tools::getValue('route'); if ($route != '') { switch ($route) { case DDWFrontCheckoutController::$route: $ddw_front_checkout_controller = new DDWFrontCheckoutController($module); die($ddw_front_checkout_controller->route()); default: $ddw_producttab_controller = new DDWProductTabController($module); die($ddw_producttab_controller->route()); } } switch (Tools::getValue('route')) { default: switch (Tools::getValue('action')) { case 'update_ddw_order_detail': (new DDWAdminOrderController($this))->updateOrderDDW(); break; } break; } } }