View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0004538 | OXID ERP Interface | OXID ERP Interface - sub | public | 2012-09-20 19:54 | 2012-12-10 14:19 |
Reporter | e.kuzminov | Assigned To | |||
Priority | normal | Severity | minor | Reproducibility | always |
Status | resolved | Resolution | fixed | ||
Product Version | 2.9.0_35501 | ||||
Summary | 0004538: In ERP calls getShopConfVar always select config params from Supershop but not from Subshop | ||||
Description | It looks like oxconfig::_loadVarsFromDb (in in config "init") is being called before oxERPBase::loadSessionData but actual shopid for ERP authorized user is stored in session, that's why in oxconfig::_loadVarsFromDb shopid is considedred as default "1" and config params for supershops are written to params cache variable $this->_aThemeConfigParams. And then if you try to access shop params in ERP plugin for example $paramsFromConfigArray = $myConfig->getShopConfVar('aMconfig', $shopID); it will always give you pre-cached shop param nevertheless you set $shopID as "1" or "2". | ||||
Additional Information | As understand it affects ERP module only as there is no any cookies to get shopid on first getShopID function call and session is initiated only when function execution is started. The way to overcome this is to add "shp" param to SOAP request url for example http://SHOP.com/modules/erp/oxerpservice.php?wsdl=&version=2.9.0&shp=2 but then ShopID param in OXERPLogin is useless and it should be somehow specified in documentation. | ||||
Tags | No tags attached. | ||||