/** * saved paramter to acces of particular subscribtion link. * * @return string the registration link. */ private function submitRegistrationLink() { // @todo : ask for more infos about values types TSCommon::$shopsw = Validate::isCleanHtml(Tools::getValue('shopsw')) ? Tools::getValue('shopsw') : ''; TSCommon::$et_cid = Validate::isCleanHtml(Tools::getValue('et_cid')) ? Tools::getValue('et_cid') : ''; TSCommon::$et_lid = Validate::isCleanHtml(Tools::getValue('et_lid')) ? Tools::getValue('et_lid') : ''; Configuration::updateValue(TSCommon::PREFIX_TABLE . 'SHOPSW', TSCommon::$shopsw); Configuration::updateValue(TSCommon::PREFIX_TABLE . 'ET_CID', TSCommon::$et_cid); Configuration::updateValue(TSCommon::PREFIX_TABLE . 'ET_LID', TSCommon::$et_lid); $link_registration = $this->makeRegistrationLink(TSCommon::$shopsw, TSCommon::$et_cid, TSCommon::$et_lid, Tools::getValue('lang')); $this->confirmations[] = $this->l('Registration link has been created. Follow this link if you were not redirected earlier:') . ' <a href="' . $link_registration . '" class="link">>' . $this->l('Link') . '<</a>'; return $link_registration; }