View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0001180 | OXID eShop (all versions) | 1.09. Integrations: Facebook, Trusted Shops, Shop lupe, Econda | public | 2009-08-07 16:16 | 2012-12-11 08:47 |
Reporter | sato-san | Assigned To | |||
Priority | high | Severity | feature | Reproducibility | always |
Status | resolved | Resolution | no change required | ||
Product Version | 4.0.0.0 revision 13895 | ||||
Summary | 0001180: function "USE_MULTI_JS" is not included | ||||
Description | A customer can have more then one econda "emos2.js" for different Shops but in Oxid4 EE the "oxemosadapter.php" can only handle one emos2.js at the moment. Because the function "USE_MULTI_JS" is not included since Oxid4. This is a major error for the customer. Well, we have a solution for this: | ||||
Additional Information | file: core/smarty/plugins/oxemosadapter.php OLD: [code] protected function _getScriptPath() { $myConfig = $this->getConfig(); $sShopUrl = $myConfig->isSsl() ? $myConfig->getConfigParam( 'sSSLShopURL' ) : $myConfig->getConfigParam( 'sShopURL' ); return "{$sShopUrl}modules/econda/out/"; } [/code] NEW: [code] protected function _getScriptPath() { /* * If set to true each sub shop will use a separate emos.js in * the base template directory * e.g. for shop1: /core/out/basic/basic/emos2.js * e.g. for shop2: /core/out/basic/1/emos2.js * e.g. for shop3: /core/out/basic/2/emos2.js */ $USE_MULTI_JS = false; $myConfig = $this->getConfig(); $sShopUrl = $myConfig->isSsl() ? $myConfig->getConfigParam( 'sSSLShopURL' ) : $myConfig->getConfigParam( 'sShopURL' ); if ($USE_MULTI_JS){ $rmvDom = strpos($myConfig->getBaseTemplateDir(),"/",9); $multiPath = substr($myConfig->getBaseTemplateDir(),$rmvDom+1); return "{$sShopUrl}{$multiPath}"; } else { return "{$sShopUrl}modules/econda/out/"; } } [/code] If you have any question about it, please let me know. Kind regards, René Sato econda GmbH | ||||
Tags | Econda | ||||
Theme | Both | ||||
Browser | All | ||||
PHP Version | 5.2.6 | ||||
Database Version | 5.0.33 | ||||
has duplicate | 0001185 | closed | In EE4 it is not possible to track each subshop separately (eConda) |