View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0007624 | OXID eShop (all versions) | 2.3. Extensions (modules, themes) | public | 2024-03-22 11:00 | 2024-08-14 15:17 |
Reporter | Steven | Assigned To | |||
Priority | normal | Severity | minor | Reproducibility | always |
Status | confirmed | Resolution | open | ||
Product Version | 7.1.0 | ||||
Summary | 0007624: Theme ID depends on directory name instead of actual ID | ||||
Description | In theme.php you set an ID. However, the ID of a theme seems to be the directory instead: composer.json > extra > oxideshop > target-directory. | ||||
Steps To Reproduce | Method 1: Create a custom theme. - Set ID in theme.php to aaaa. - Set target-directory in composer.json to bbbb. - Install theme. - Use ./vendor/bin/oe-console oe:theme:activate aaaa. Theme will not be found. - Use ./vendor/bin/oe-console oe:theme:activate bbbb. Theme will be activated. Method 2: Read theme ID. - Open bootstrap.php. - Append code: $theme = oxNew(Theme::class); var_dump($theme->getActiveThemeId()); - Open frontend. Output is apex. - Go to source/Application/views. - Rename directory apex to apexbbbb. - Reactivate apex theme. - Open frontend. Output is apexbbbb. | ||||
Tags | No tags attached. | ||||
Theme | All | ||||
Browser | Not defined | ||||
PHP Version | Not defined | ||||
Database Version | Not defined | ||||