Quantcast
Channel: OXID Community Forum - Module
Viewing all articles
Browse latest Browse all 816

Select Feld bei den Module Settings wirft Fehler in Options

$
0
0
Hallo Leute,

ich habe heute das erste mal mit einem OXID Shop zu tun und nutze die Version 4.74.

Nun habe ich angefangen mir ein Modul zu erstellen, bzw. will ich das und dazu benötige ich Setting Einstellungen und eine davon besteht aus einem Select Feld.

Folgenden Code benutze ich.

Meine module_options.php in modules/mycompany/out/admin/de/

PHP Code:

$sLangName 'Deutsch';

$aLang = array(
    
'charset' => 'ISO-8859-15',
    
'SHOP_MODULE_GROUP_main' => 'Konfiguration mycompany Gutscheinmodul',
    
'SHOP_MODULE_mycompany_apikey' => 'Api Key',
    
'HELP_SHOP_MODULE_mycompany_apikey' => 'Tragen Sie hier den Api Key ein, den Sie von mycompany bekommen haben.',
    
'SHOP_MODULE_mycompany_apipass' => 'Api Passwort',
    
'HELP_SHOP_MODULE_mycompany_apipass' => 'Tragen Sie hier das Api Passwort ein, den Sie von mycompany bekommen haben.',
    
'SHOP_MODULE_mycompany_apimode' => 'Api Mode',
    
'SHOP_MODULE_mycompany_apimode_api' => 'Api Mode',
    
'SHOP_MODULE_mycompany_apimode_sandbox' => 'Sandbox Mode',
    
'HELP_SHOP_MODULE_mycompany_apimode' => 'Wählen Sie hier aus mit welchen Api Mode Sie verbunden werden wollen.'
); 

So und so sieht nun meine metadata.php aus

PHP Code:

$sMetadataVersion '0.0.1';

$aModule = array(
    
'id' => 'mycompany_coupon',
    
'title' => 'mycompany Gutschein Modul',
    
'description' => array(
        
'de' => 'Bestellungen mit dem Gutschein Modul von mycompany'
    
),
    
'version' => '0.0.1',
    
'author' => 'mycompany',
    
'url' => 'http://www.mycompany.net',
    
'email' => 'info@mycompany.de',
    
'extend' => array(
        
'basket' => 'mycompany/mycompanyBasket'
    
),
    
'settings' => array(
        array(
'group' => 'main''name' => 'mycompany_apikey''type' => 'str'),
        array(
'group' => 'main''name' => 'mycompany_apipass''type' => 'str'),
        array(
'group' => 'main''name' => 'mycompany_apimode''type' => 'select''value' => 'sandbox''constrains' => 'sandbox|api''position' => 'sandbox')
    )
); 

Ich bekomme nun aber folgenden Fehler bei den lesbaren Optionswerten. Die Values stehen korrekt drin.

ERROR : Translation for SHOP_MODULE_mycompany_apimode_api not found!

Im Prinzip sieht eine Option so aus.

Code:

<option value="sandbox">ERROR : Translation for SHOP_MODULE_mycompany_apimode_sandbox not found!</option>
Könnt ihr mir bitte Helfen das Problem zu beheben? Vielen Dank Gruß Daniel

Viewing all articles
Browse latest Browse all 816

Latest Images

Trending Articles