/** * Creates shop object, passes shop data to Smarty engine and returns name of * template file "dyn_trusted.tpl". * * @return string */ public function render() { parent::render(); $this->_aViewData['oxid'] = $this->getConfig()->getShopId(); $this->_aViewData["alllang"] = oxLang::getInstance()->getLanguageArray(); return "dyn_trusted_ratings.tpl"; }
/** * Executes parent method parent::render() and returns name of template * file "shop_system.tpl". * * @return string */ public function render() { parent::render(); $this->_aViewData['subjlang'] = $this->_iEditLang; // loading shop $oShop = oxNew('oxshop'); $oShop->loadInLang($this->_iEditLang, $this->_aViewData['edit']->getId()); $this->_aViewData['edit'] = $oShop; // loading static seo urls $sQ = "select oxstdurl, oxobjectid from oxseo where oxtype='static' and oxshopid=" . oxDb::getDb()->quote($oShop->getId()) . " group by oxobjectid order by oxstdurl"; $oList = oxNew('oxlist'); $oList->init('oxbase', 'oxseo'); $oList->selectString($sQ); $this->_aViewData['aStaticUrls'] = $oList; // loading active url info $this->_loadActiveUrl($oShop->getId()); return "shop_seo.tpl"; }
/** * Executes parent method parent::render(), passes shop configuration parameters * to Smarty and returns name of template file "shop_system.tpl". * * @return string */ public function render() { $myConfig = $this->getConfig(); parent::render(); $aConfArrs = array(); $oLang = oxRegistry::getLang(); $aLanguages = $oLang->getLanguageArray(); $sLangAbbr = $aLanguages[$oLang->getObjectTplLanguage()]->abbr; // loading shop location countries list (defines in which country shop exists) include "shop_countries.php"; $soxId = $this->getEditObjectId(); if (!$soxId) { $soxId = $myConfig->getShopId(); } $oDb = oxDb::getDb(); $sShopCountry = $oDb->getOne("select DECODE( oxvarvalue, " . $oDb->quote($myConfig->getConfigParam('sConfigKey')) . ") as oxvarvalue from oxconfig where oxshopid = '{$soxId}' and oxvarname = 'sShopCountry'", false, false); $this->_aViewData["shop_countries"] = $aLocationCountries[$sLangAbbr]; $this->_aViewData["confstrs"]["sShopCountry"] = $sShopCountry; return $this->_sThisTemplate; }
/** * Executes parent method parent::render(), creates oxshop object, passes it's * data to Smarty engine and returns name of template file "shop_license.tpl". * * @return string */ public function render() { $myConfig = $this->getConfig(); if ($myConfig->isDemoShop()) { throw oxNew("oxSystemComponentException", "license"); } parent::render(); $soxId = $this->_aViewData["oxid"] = $this->getEditObjectId(); if ($soxId != "-1" && isset($soxId)) { // load object $oShop = oxNew("oxshop"); $oShop->load($soxId); $this->_aViewData["edit"] = $oShop; } $this->_aViewData["version"] = $myConfig->getVersion(); if (!$this->_canUpdate()) { $this->_aViewData['readonly'] = true; } return $this->_sThisTemplate; }
/** * Creates shop object, passes shop data to Smarty engine and returns name of * template file "dyn_trusted.tpl". * * @return string */ public function render() { parent::render(); $this->_aViewData['oxid'] = $this->getConfig()->getShopId(); $aConfStr = array(); $aConfBool = array(); $aIds = $this->_aViewData["confaarrs"]['iShopID_TrustedShops']; // compability to old data if ($aConfStrs = $this->_aViewData["str"]['iShopID_TrustedShops']) { $aIds = array(0 => $aConfStrs); } $this->_aViewData["aShopID_TrustedShops"] = $aIds; $this->_aViewData['aTsUser'] = $this->_aViewData["confaarrs"]['aTsUser']; $this->_aViewData['aTsPassword'] = $this->_aViewData["confaarrs"]['aTsPassword']; $this->_aViewData['tsTestMode'] = $this->_aViewData["confbools"]['tsTestMode']; $this->_aViewData['tsSealActive'] = $this->_aViewData["confbools"]['tsSealActive']; $this->_aViewData["alllang"] = oxLang::getInstance()->getLanguageNames(); $this->_aViewData["shoppaymenttypes"] = $this->getPaymentTypes(); $this->_aViewData["tspaymenttypes"] = $this->_aTSPaymentIds; return "dyn_trusted.tpl"; }
/** * Executes parent method parent::render(), passes shop configuration parameters * to Smarty and returns name of template file "shop_system.tpl". * * @return string */ public function render() { $myConfig = $this->getConfig(); parent::render(); $aConfArrs = array(); $oLang = oxRegistry::getLang(); $aLanguages = $oLang->getLanguageArray(); $sLangAbbr = $aLanguages[$oLang->getObjectTplLanguage()]->abbr; // loading shop location countries list (defines in which country shop exists) include "ShopCountries.php"; $soxId = $this->getEditObjectId(); if (!$soxId) { $soxId = $myConfig->getShopId(); } // We force reading from master to prevent issues with slow replications or open transactions (see ESDEV-3804). $masterDb = oxDb::getMaster(); $sShopCountry = $masterDb->getOne("select DECODE( oxvarvalue, " . $masterDb->quote($myConfig->getConfigParam('sConfigKey')) . ") as oxvarvalue from oxconfig where oxshopid = '{$soxId}' and oxvarname = 'sShopCountry'"); $this->_aViewData["shop_countries"] = $aLocationCountries[$sLangAbbr]; $this->_aViewData["confstrs"]["sShopCountry"] = $sShopCountry; return $this->_sThisTemplate; }
/** * Executes parent method parent::render(), creates oxshop object, passes it's * data to Smarty engine and returns name of template file "shop_license.tpl". * * @return string */ public function render() { $myConfig = $this->getConfig(); if ($myConfig->isDemoShop()) { /** @var oxSystemComponentException $oSystemComponentException */ $oSystemComponentException = oxNew("oxSystemComponentException", "license"); throw $oSystemComponentException; } parent::render(); $soxId = $this->_aViewData["oxid"] = $this->getEditObjectId(); if ($soxId != "-1") { // load object $oShop = oxNew("oxshop"); $oShop->load($soxId); $this->_aViewData["edit"] = $oShop; } $this->_aViewData["version"] = $myConfig->getVersion(); $this->_aViewData['aCurVersionInfo'] = $this->_fetchCurVersionInfo($this->versionCheckLink); if (!$this->_canUpdate()) { $this->_aViewData['readonly'] = true; } return $this->_sThisTemplate; }
/** * Creates shop object, passes shop data to Smarty engine and returns name of * template file "dyn_trusted.tpl". * * @return string */ public function render() { parent::render(); $this->_aViewData['oxid'] = $this->getConfig()->getShopId(); return "dyn_econda.tpl"; }
/** * Executes parent method parent::render(), passes configuration data to * Smarty engine. * * @return string */ public function render() { $sReturn = parent::render(); $this->_aViewData['oxid'] = $this->getConfig()->getShopId(); return $sReturn; }
/** * Creates shop object, passes shop data to Smarty engine and returns name of * template file "dyn_ipayment.tpl". * * @return string */ public function render() { parent::render(); $this->_aViewData['oxid'] = $this->getConfig()->getShopId(); return 'dyn_ipayment.tpl'; }
/** * Creates shop object, passes shop data to Smarty engine and returns name of * template file "dyn_affiliwelt.tpl". * * @return string */ public function render() { parent::render(); $this->_aViewData["edit"] = $this->_getEditShop(oxSession::getVar("actshop")); return "dyn_affiliwelt.tpl"; }