[Changed] rework for OXID 7

This commit is contained in:
MaxBuhe01 2024-11-16 13:50:58 +01:00
parent a826d54f57
commit a7dfae8c5d
6 changed files with 15 additions and 34 deletions

View File

Before

Width:  |  Height:  |  Size: 13 KiB

After

Width:  |  Height:  |  Size: 13 KiB

View File

@ -6,7 +6,9 @@
"oxid", "oxid",
"modules", "modules",
"eShop", "eShop",
"d3" "d3",
"manufacturer",
"information"
], ],
"authors": [ "authors": [
{ {
@ -24,28 +26,7 @@
"proprietary" "proprietary"
], ],
"require": { "require": {
"php": "~7.0 || ~8.0", "php": "^8.0",
"oxid-esales/oxideshop-ce": "v6.6.0 - v6.14.3" "oxid-esales/oxideshop-ce": "7.0 - 7.1"
},
"require-dev": {
"phpunit/phpunit" : "^9.5",
"friendsofphp/php-cs-fixer": "^3.9",
"phpstan/phpstan": "^1.8"
},
"extra": {
"oxideshop": {
"blacklist-filter": [
"*.md",
"composer.json",
".php-cs-fixer.php",
"*.neon"
],
"target-directory": "d3/manufacturerinformation"
}
},
"autoload": {
"psr-4": {
"D3\\ManufacturerInformation\\": "../../../source/modules/d3/manufacturerinformation"
}
} }
} }

View File

@ -22,22 +22,22 @@ use OxidEsales\Eshop\Application\Model\ManufacturerList as OEManufacturerList;
$sMetadataVersion = '2.1'; $sMetadataVersion = '2.1';
$sModuleId = Constants::OXID_MODULE_ID;
$logo = '<img src="https://logos.oxidmodule.com/d3logo.svg" alt="(D3)" style="height:1em;width:1em">';
/** /**
* Module information * Module information
*/ */
$aModule = [ $aModule = [
'id' => $sModuleId, 'id' => Constants::OXID_MODULE_ID,
'title' => $logo.' Herstellerinformationen', 'title' => [
'de' => '(D3) Herstellerinformationen',
'en' => '(D3) Manufacturer information',
],
'description' => [ 'description' => [
'de' => 'fügt Informationen der Hersteller zur Artikelliste hinzu', 'de' => 'fügt Informationen der Hersteller zur Artikelliste hinzu',
'en' => 'adds manufacturer information to the article list', 'en' => 'adds manufacturer information to the article list',
], ],
'thumbnail' => 'image-file.png', 'thumbnail' => 'image-file.png',
'version' => '1.1.0.0', 'version' => '2.0.0.0',
'author' => $logo.' Data Development (Inh.: Thomas Dartsch)', 'author' => '(D3) Data Development (Inh.: Thomas Dartsch)',
'email' => 'support@shopmodule.com', 'email' => 'support@shopmodule.com',
'url' => 'https://www.oxidmodule.com/', 'url' => 'https://www.oxidmodule.com/',
'controllers' => [ 'controllers' => [
@ -48,6 +48,6 @@ $aModule = [
OEManufacturerList::class => ManufacturerInfoList::class OEManufacturerList::class => ManufacturerInfoList::class
], ],
'templates' => [ 'templates' => [
'd3manufacturerlongdesc.tpl' => 'd3/manufacturerinformation/Application/views/admin/tpl/d3manufacturer_longdesc.tpl', '@' . Constants::OXID_MODULE_ID . 'admin/d3manufacturerlongdesc.tpl' => 'views/smarty/admin/d3manufacturer_longdesc.tpl',
], ],
]; ];