View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0006320 | OXID eShop (all versions) | 2.3. Extensions (modules, themes) | public | 2016-01-28 16:16 | 2024-03-06 09:47 |
Reporter | mantas.vaitkunas | Assigned To | |||
Priority | normal | Severity | minor | Reproducibility | always |
Status | closed | Resolution | duplicate | ||
Product Version | 4.9.0 / 5.2.0 | ||||
Summary | 0006320: Different themes can't start with same id | ||||
Description | Currently theme settings is loaded like this: $sModule = oxConfig::OXMODULE_THEME_PREFIX . $this->getConfigParam('sCustomTheme'); // azure $sModuleSql = $sModule ? " oxmodule LIKE " . $oDb->quote($sModule . "%") : " oxmodule='' "; // azure% So in case we have 2 themes 'azure' and 'azure_v2'. Themes Ids are very similar. Method oxConfig::_loadVarsFromDb will find all the configs for both themes and second theme settings will be used. | ||||
Steps To Reproduce | 1) Go to admin Extensions -> Themes, select azure theme and change setting "Icon size (width*height)" to 200*200 and click save. Go to home page and check if setting affected eShop ("TOP OF THE SHOP" sidebar images will be too big). 2) Now add settings for theme called: azure_v2 Settings should be added via SQL: INSERT INTO `oxconfig` (`OXID`, `OXSHOPID`, `OXMODULE`, `OXVARNAME`, `OXVARTYPE`, `OXVARVALUE`, `OXTIMESTAMP`) VALUES ('7ee1082ea35a75f83beed1bd3ae8fbd0', 'oxbaseshop', 'theme:azure_v2', 'sIconsize', 'str', 0x8064a213b1, NOW() ); 3) Check homepage again. your settings for "azure" theme will not work anymore. | ||||
Tags | No tags attached. | ||||
Theme | Not defined | ||||
Browser | Not defined | ||||
PHP Version | Not defined | ||||
Database Version | Not defined | ||||