View Issue Details

IDProjectCategoryView StatusLast Update
0001180OXID eShop (all versions)1.09. Integrations: Facebook, Trusted Shops, Shop lupe, Econdapublic2012-12-11 08:47
Reportersato-san Assigned To 
PriorityhighSeverityfeatureReproducibilityalways
Status resolvedResolutionno change required 
Product Version4.0.0.0 revision 13895 
Summary0001180: function "USE_MULTI_JS" is not included
DescriptionA 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 Informationfile: 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
TagsEconda
ThemeBoth
BrowserAll
PHP Version5.2.6
Database Version5.0.33

Relationships

has duplicate 0001185 closed In EE4 it is not possible to track each subshop separately (eConda) 

Activities

dainius.bigelis

2009-08-17 16:01

reporter   ~0001424

We checked previous versions of eShop - there was no such functionality for handling few emos2.js for each subshop. It is feature request and is moved to whishlist with High priority, for further consideration.
Here the entry is closed.
Thank you for your note.