Bestellmengenmanager/src/metadata.php

185 lines
7.7 KiB
PHP
Raw Normal View History

2020-06-29 13:19:34 +02:00
<?php
use D3\ModCfg\Application\Model\Install\d3install;
use OxidEsales\Eshop\Core\UtilsView;
use OxidEsales\Eshop\Core\ViewConfig;
2020-06-29 13:19:34 +02:00
/**
* Metadata version
*/
$sMetadataVersion = '2.0';
2020-06-29 13:19:34 +02:00
/**
* Module information
*/
2020-06-29 13:19:34 +02:00
$sModuleId = 'd3oqm';
$sLogo = '<img src="https://logos.oxidmodule.com/d3logo.svg" alt="(D3)" style="height:1em;width:1em"> ';
$aModule = [
2020-06-29 13:19:34 +02:00
'id' => $sModuleId,
'title' =>
$sLogo. 'Bestellmengenmanager',
2020-06-29 13:19:34 +02:00
'description' => 'Legen Sie fest, in welchen Mengen bzw. Packungsgr&ouml;&szlig;en Sie ihre Produkte abgeben.' //
. 'Der Kunde wird bei unpassender Mengenangabe informiert.' //
. 'Optional wird die korrigierte Menge in den Warenkorb gelegt.' //
. 'Alle Einstellungen sind im Admin zu setzen.</br>' //
. 'Wenn das Modul &uuml;ber den Shop aktiviert wurde, muss danach unter:</br>' //
. '<strong>/D&sup3; Module/Modul-Connector/Modulverwaltung/</strong> das Modul aktiviert werden.',
'thumbnail' => 'picture.png',
'version' => '5.0.4.3',
2020-06-29 13:19:34 +02:00
'author' => 'D&sup3; Data Development',
'email' => 'support@shopmodule.com',
'url' => 'https://www.oxidmodule.com/',
'events' => [
2020-06-29 13:19:34 +02:00
'onActivate' => d3install::class . '::checkUpdateStart',
],
2020-06-29 13:19:34 +02:00
'controllers' => [
'd3_oqm_controllers_admin_base' => D3\Oqm\Controllers\Admin\Base::class,
'd3_oqm_controllers_admin_list' => D3\Oqm\Controllers\Admin\Listcontroller::class,
'd3_oqm_controllers_admin_settings' => D3\Oqm\Controllers\Admin\Settings::class,
'd3_oqm_controllers_admin_support' => D3\Oqm\Controllers\Admin\Support::class,
],
2020-06-29 13:19:34 +02:00
'templates' => [
'd3_msg_basket_oqm_error.tpl' => 'd3/oqm/Application/views/tpl/d3_msg_basket_oqm_error.tpl',
'd3_oqm_views_tpl_script.tpl' => 'd3/oqm/Application/views/tpl/script.tpl',
'd3_oqm_views_admin_tpl_settings.tpl' => 'd3/oqm/Application/views/admin/tpl/settings.tpl',
'd3_oqm_views_tpl_basketitem.tpl' => 'd3/oqm/Application/views/tpl/basketitem.tpl',
],
2020-06-29 13:19:34 +02:00
'extend' => [
\OxidEsales\Eshop\Application\Model\Article::class => D3\Oqm\Modules\Application\Model\d3_oxarticle_oqm::class,
\OxidEsales\Eshop\Application\Model\Basket::class => D3\Oqm\Modules\Application\Model\d3_oxbasket_oqm::class,
UtilsView::class => D3\Oqm\Modules\Core\d3_oxutilsview_oqm::class,
ViewConfig::class => D3\Oqm\Modules\Core\d3_oxviewconfig_oqm::class,
],
2020-06-29 13:19:34 +02:00
'blocks' => [
2020-06-29 13:19:34 +02:00
[
'template' => 'page/details/inc/productmain.tpl',
'block' => 'details_productmain_tobasket',
'file' => 'Application/views/blocks/details_productmain_tobasket.tpl'
2020-06-29 13:19:34 +02:00
],
[
// Azure only
'template' => 'widget/minibasket/minibasket.tpl',
'block' => 'widget_minibasket',
'file' => 'Application/views/blocks/widget_minibasket.tpl'
2020-06-29 13:19:34 +02:00
],
[
'template' => 'widget/product/listitem_grid.tpl',
'block' => 'widget_product_listitem_grid_tobasket',
'file' => 'Application/views/blocks/widget_product_listitem_grid_tobasket.tpl'
2020-06-29 13:19:34 +02:00
],
[
// Azure only
'template' => 'widget/product/bargainitem.tpl',
'block' => 'widget_product_bargainitem_tobasket',
'file' => 'Application/views/blocks/widget_product_bargainitem_tobasket.tpl'
2020-06-29 13:19:34 +02:00
],
[
// Azure only
'template' => 'widget/product/bargainitems.tpl',
'block' => 'widget_product_bargainitem_tobasket',
'file' => 'Application/views/blocks/widget_product_bargainitem_tobasket.tpl'
2020-06-29 13:19:34 +02:00
],
[
'template' => 'widget/product/listitem_infogrid.tpl',
'block' => 'widget_product_listitem_infogrid_tobasket',
'file' => 'Application/views/blocks/d3getminamount_input_field.tpl'
2020-06-29 13:19:34 +02:00
],
[
'template' => 'widget/product/listitem_line.tpl',
'block' => 'widget_product_listitem_line_tobasket',
'file' => 'Application/views/blocks/widget_product_listitem_line_tobasket.tpl'
2020-06-29 13:19:34 +02:00
],
[
'template' => 'article_extend.tpl',
'block' => 'admin_article_extend_form',
'file' => 'Application/views/admin/blocks/admin_article_extend_form.tpl'
2020-06-29 13:19:34 +02:00
],
[
// Modal?
'template' => 'layout/header.tpl',
'block' => 'header_main',
'file' => 'Application/views/blocks/header_main.tpl'
2020-06-29 13:19:34 +02:00
],
[
// Modal?
'template' => 'layout/footer.tpl',
'block' => 'footer_main',
'file' => 'Application/views/blocks/footer_main.tpl'
2020-06-29 13:19:34 +02:00
],
[
'template' => 'layout/base.tpl',
'block' => 'base_js',
'file' => 'Application/views/blocks/base_js.tpl'
2020-06-29 13:19:34 +02:00
],
[
// Azure only
'template' => 'page/compare/compare.tpl',
'block' => 'd3oqm_azure_page_compare_amount',
'file' => 'Application/views/blocks/d3oqm_azure_page_compare_amount.tpl'
2020-06-29 13:19:34 +02:00
],
[
// Azure only
'template' => 'widget/minibasket/minibasketmodal.tpl',
'block' => 'd3oqm_azure_widget_minibasket_minibasketmodal_script',
'file' => 'Application/views/blocks/d3oqm_azure_widget_minibasket_minibasketmodal_script.tpl'
2020-06-29 13:19:34 +02:00
],
[
// Azure only
'template' => 'widget/product/compareitem.tpl',
'block' => 'd3oqm_azure_widget_product_compareitem_amount',
'file' => 'Application/views/blocks/d3oqm_azure_widget_product_compareitem_amount.tpl'
2020-06-29 13:19:34 +02:00
],
[
// Flow only
'template' => 'page/compare/inc/compareitem.tpl',
'block' => 'd3oqm_flow_page_compare_inc_compareitem_amount',
'file' => 'Application/views/blocks/d3oqm_flow_page_compare_inc_compareitem_amount.tpl'
2020-06-29 13:19:34 +02:00
],
[
// Wave only
'template' => 'page/compare/inc/compareitem.tpl',
'block' => 'd3oqm_wave_page_compare_inc_compareitem_amount',
'file' => 'Application/views/blocks/d3oqm_wave_page_compare_inc_compareitem_amount.tpl'
2020-06-29 13:19:34 +02:00
],
[
'template' => 'page/checkout/inc/basketcontents_table.tpl',
'block' => 'dd_checkout_inc_basketcontents_table_item_desc',
'file' => 'Application/views/blocks/dd_checkout_inc_basketcontents_table_item_desc.tpl'
2020-06-29 13:19:34 +02:00
],
[
'template' => 'page/checkout/inc/basketcontents_list.tpl',
'block' => 'checkout_basketcontents_basketitem_titlenumber',
'file' => 'Application/views/blocks/checkout_basketcontents_basketitem_titlenumber.tpl'
2020-06-29 13:19:34 +02:00
],
[
// Azure only
'template' => 'page/checkout/inc/basketcontents.tpl',
'block' => 'checkout_basketcontents_basketitem_persparam_editable',
'file' => 'Application/views/blocks/azure_checkout_basketcontents_basketitem_titlenumber.tpl'
2020-06-29 13:19:34 +02:00
],
],
2020-06-29 13:19:34 +02:00
'settings' => [
[
'group' => 'd3thememapping_global',
'name' => 'd3custParentThemeMappedToWave_'.$sModuleId,
'type' => 'str',
],
[
'group' => 'd3thememapping_global',
'name' => 'd3custParentThemeMappedToFlow_'.$sModuleId,
'type' => 'str',
],
[
'group' => 'd3thememapping_global',
'name' => 'd3custParentThemeMappedToAzure_'.$sModuleId,
'type' => 'str',
],
],
];