View Issue Details

IDProjectCategoryView StatusLast Update
0004074OXID eShop (all versions)2.3. Extensions (modules, themes)public2012-12-13 14:16
Reporterxavier.villard Assigned To 
PrioritynormalSeverityminorReproducibilityalways
Status resolvedResolutionno change required 
Product Version4.6.0 revision 44406 
Target Version4.6.6 revision 54646 
Summary0004074: Problem with group options in module developement
DescriptionExample of metadata.php with 2 option groups:

'settings' => array(
    array('group' => 'main', 'name' => 'test_ctx_mode', 'type' => 'str', 'value' => 'TEST'),
    array('group' => 'main', 'name' => 'test_module_call_method', 'type' => 'str', 'value' => 'curl'),
    array('group' => 'extended', 'name' => 'testx_site_test', 'type' => 'str', 'value' => '1999888'),
    array('group' => 'extended', 'name' => 'test_site_prod', 'type' => 'str', 'value' => '0000000'),
),
    
And the module_options.php file linked

'SHOP_MODULE_GROUP_main' => 'Global config',
'SHOP_MODULE_GROUP_extended' => 'Extended config',

In the admin interface, parameter tab of the module, only the first group option is taken into account
TagsNo tags attached.
ThemeBoth
BrowserAll
PHP Versionany
Database Versionany

Activities

leofonic

2012-05-23 13:55

reporter   ~0006673

Maybe you did not deactivate/activate the module again.
Settings are written to config tables on activation.

xavier.villard

2012-05-23 14:23

reporter   ~0006674

Right, I just tested it it works when desactivating/reactivating

Thanks !