View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0003362 | OXID eShop (all versions) | 4.07. Source code, Test | public | 2011-11-10 12:10 | 2012-12-10 13:44 |
Reporter | avenger | Assigned To | |||
Priority | high | Severity | major | Reproducibility | always |
Status | resolved | Resolution | fixed | ||
Product Version | 4.5.4 revision 39463 | ||||
Fixed in Version | 4.5.7 revision 41909 | ||||
Summary | 0003362: Bug in reading template image options | ||||
Description | In "oxconfig.php" "function init()" template options are read with the following statement: $this->_loadVarsFromDb( $sShopID, null, oxConfig::OXMODULE_THEME_PREFIX . $this->getConfigParam('sTheme') ); I.e., always the parameters of the basic theme are read, although there are options defined for the custom theme "sCustomTheme".... Especially in an EE environment, where you have one basic theme and custom shop-themes this is not the correct way of handling this! But also in a single shop environment you have to define the theme options in the basic scheme, not in your custom theme... The routine should check the custom theme's options first, and only if those do not exist should use the basic theme's options | ||||
Tags | No tags attached. | ||||
Theme | Both | ||||
Browser | All | ||||
PHP Version | any | ||||
Database Version | any | ||||
related to | 0003035 | resolved | mindaugas.rimgaila | custom template files (tpl) not accessible |
related to | 0002983 | resolved | Linas Kukulskis | Error message when selecting settings of custom theme |
|
@Developers: please check from the source code side if such check is needed. It might be the similar problem as in 0003035 or 0002983 |
|
Can you describe problem in more details? Currently shop loads all basic config variables and then loads custom theme config variables and they overrides basic config variables with same name. |
|
Reminder sent to: avenger Please check note... |
|
Where ist it loadÃng the custom theme config variables???? The only related code I found is this one, where ist loads the basic theme config. ================================ try { $sShopID = $this->getShopId(); // load now $this->_loadVarsFromDb( $sShopID ); $this->_loadVarsFromDb( $sShopID, null, oxConfig::OXMODULE_THEME_PREFIX . $this->getConfigParam('sTheme') ); //starting up the session $this->getSession()->start(); ================================ If you have an Enterprise shop with one basic theme and several override templates for subshops, you can only define template parameters (e.g. image sizes) via the basic theme, although the config entries for rhe override themes have been created in the database..... BTW: The config entries for rhe override themes should be created automatically be the shop, inheriting them from the basic scheme... The current process is very awkward, as you need a custom program to do that. |
|
Added custom theme (which has defined parent theme), config variables loading - custom theme config variables will override parent theme same config variables. |