View Issue Details

IDProjectCategoryView StatusLast Update
0006320OXID eShop (all versions)2.3. Extensions (modules, themes)public2024-03-06 09:47
Reportermantas.vaitkunas Assigned To 
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionduplicate 
Product Version4.9.0 / 5.2.0 
Summary0006320: Different themes can't start with same id
DescriptionCurrently 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 Reproduce1) 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.
TagsNo tags attached.
ThemeNot defined
BrowserNot defined
PHP VersionNot defined
Database VersionNot defined

Relationships

duplicate of 0005706 resolvedSvenBrunk oxConfig::_loadVarsFromDb variables loading issue 

Activities

SvenBrunk

2024-03-06 09:47

administrator   ~0016350

Duplicates 0005706