* @copyright 2007-2014 PrestaShop SA * @license http://addons.prestashop.com/en/content/12-terms-and-conditions-of-use * * International Registered Trademark & Property of PrestaShop SA */ class AtosOrderconfirmationModuleFrontController extends ModuleFrontController { /** * @throws PrestaShopDatabaseException */ public function initContent() { $this->display_column_left = false; parent::initContent(); $orderConfirmationUrl = $this->getOrderConfirmationUrl(); $this->context->smarty->assign('orderConfirmationUrl', $orderConfirmationUrl); $this->setTemplate('orderconfirmation.tpl'); } /** * @return String */ public function getOrderConfirmationUrl() { $id_cart = Tools::getValue('id_cart'); $id_customer = Tools::getValue('id_customer'); $secure_key = Tools::getValue('secure_key'); $orderConfirmationUrl = (Configuration::get('PS_SSL_ENABLED') ? 'https://' : 'http://').htmlspecialchars($_SERVER['HTTP_HOST'], ENT_COMPAT, 'UTF-8').__PS_BASE_URI__.'index.php?controller=order-confirmation&key='.$secure_key.'&id_cart='.(int) $id_cart.'&id_module='.(int) $this->module->id.'&id_order='.(int) $this->module->currentOrder; return $orderConfirmationUrl; } }