View Issue Details

IDProjectCategoryView StatusLast Update
0007624OXID eShop (all versions)2.3. Extensions (modules, themes)public2024-08-14 15:17
ReporterSteven Assigned To 
PrioritynormalSeverityminorReproducibilityalways
Status confirmedResolutionopen 
Product Version7.1.0 
Summary0007624: Theme ID depends on directory name instead of actual ID
DescriptionIn 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 ReproduceMethod 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.
TagsNo tags attached.
ThemeAll
BrowserNot defined
PHP VersionNot defined
Database VersionNot defined

Activities

There are no notes attached to this issue.