public function hookDisplayHeader() { $page_name = $this->context->controller->php_self; $fc = Tools::getValue('fc'); $module = Tools::getValue('module'); $controller = Tools::getValue('controller'); if ($controller == 'authentication' && ($back = Tools::getValue('back'))) { if (Validate::isControllerName($back)) { $this->context->cookie->ets_opc_link_back = $this->context->link->getPageLink($back); } else $this->context->cookie->ets_opc_link_back = $back; $this->context->cookie->write(); } elseif ($controller != 'callback' && $controller != 'oauth') { $this->context->cookie->ets_opc_link_back = ''; $this->context->cookie->write(); } if ($fc == 'module' && $module == $this->name && $controller == 'order') { $this->context->controller->addJqueryUI('datepicker'); // $this->context->controller->registerJavascript('ets-js-jquery-plugins-timepicker', 'js/jquery/plugins/timepicker/jquery-ui-timepicker-addon.js', ['position' => 'bottom', 'priority' => 90]); $this->context->controller->registerStylesheet('jquery-ui-timepicker', 'js/jquery/plugins/timepicker/jquery-ui-timepicker-addon.css', ['media' => 'all', 'priority' => 90]); $this->context->controller->addCSS($this->_path . 'views/css/onepagecheckout.css'); $this->context->controller->addJS($this->_path . 'views/js/onepagecheckout.js'); $this->context->controller->addJS($this->_path . 'views/js/validate.js'); $settings = $this->getSettingsField(); $assign = array(); if ($settings) { foreach ($settings as $setting) { if ($setting['type'] != 'custom_html') { if ($setting['type'] == 'checkbox') { $assign[$setting['name']] = Configuration::get($setting['name']) ? explode(',', Configuration::get($setting['name'])) : array(); if (isset($setting['name2'])) $assign[$setting['name2']] = Configuration::get($setting['name2']) ? explode(',', Configuration::get($setting['name2'])) : array(); } else $assign[$setting['name']] = Configuration::get($setting['name']); } } } $this->context->smarty->assign($assign); } if ($this->checkValidateOnepage() && ($page_name == 'order-opc' || ($page_name == 'order' && $module != $this->name))) { Tools::redirect($this->context->link->getModuleLink($this->name, 'order')); } if (($ETS_OPC_PAGE_ENABLED_SOCIAL = Configuration::get('ETS_OPC_PAGE_ENABLED_SOCIAL')) && ($pages = explode(',', $ETS_OPC_PAGE_ENABLED_SOCIAL))) { if (((in_array('login_page', $pages) || in_array('register_page', $pages)) && ($controller == 'authentication' || $controller == 'registration')) || (in_array('checkout_page', $pages) && $fc == 'module' && $module == $this->name && $controller == 'order')) { $this->context->controller->addJS($this->_path . 'views/js/social.js'); $this->context->controller->addCSS($this->_path . 'views/css/social.css'); $this->smarty->assign( array( 'ETS_OPC_CHECK_BOX_NEWSLETTER' => (int)Configuration::get('ETS_OPC_CHECK_BOX_NEWSLETTER'), 'ETS_OPC_CHECK_BOX_OFFERS' => (int)Configuration::get('ETS_OPC_CHECK_BOX_OFFERS'), ) ); return $this->display(__FILE__, 'header.tpl'); } } if ($controller == 'authentication' || $controller == 'registration') { $this->smarty->assign( array( 'ETS_OPC_CHECK_BOX_NEWSLETTER' => (int)Configuration::get('ETS_OPC_CHECK_BOX_NEWSLETTER'), 'ETS_OPC_CHECK_BOX_OFFERS' => (int)Configuration::get('ETS_OPC_CHECK_BOX_OFFERS'), ) ); $this->context->controller->addJS($this->_path . 'views/js/create_customer.js'); return $this->display(__FILE__, 'create_customer.tpl'); } } SECO

Lamentamos las molestias.

Realice una nueva búsqueda sobre su interés