diff --git a/Application/views/admin/de/d3manufacturerinformation_lang.php b/Application/views/admin/de/d3manufacturerinformation_lang.php index 73f4f84..b9f528f 100644 --- a/Application/views/admin/de/d3manufacturerinformation_lang.php +++ b/Application/views/admin/de/d3manufacturerinformation_lang.php @@ -7,5 +7,7 @@ $sLangName = "Deutsch"; $aLang = array( 'charset' => 'UTF-8', - 'mxd3manufacturerinfolongdesc' => 'Langtext', + 'mxd3manufacturerinfolongdesc' => 'Langtext', + 'SHOP_MODULE_GROUP_d3manufacturerinformation_main' => 'Einstellungen', + 'SHOP_MODULE_d3manufacturerinformation_showManufacturertextOnDetailsPage' => 'vorhandene Herstellertexte auf Artikeldetails als Tab anzeigen' ); \ No newline at end of file diff --git a/Application/views/admin/en/d3manufacturerinformation_lang.php b/Application/views/admin/en/d3manufacturerinformation_lang.php index a86fe8b..22225ce 100644 --- a/Application/views/admin/en/d3manufacturerinformation_lang.php +++ b/Application/views/admin/en/d3manufacturerinformation_lang.php @@ -7,5 +7,7 @@ $sLangName = "Deutsch"; $aLang = array( 'charset' => 'UTF-8', - 'mxd3manufacturerinfolongdesc' => 'Text', + 'mxd3manufacturerinfolongdesc' => 'Text', + 'SHOP_MODULE_GROUP_d3manufacturerinformation_main' => 'Settings', + 'SHOP_MODULE_d3manufacturerinformation_showManufacturertextOnDetailsPage' => 'display existing manufacturer texts on item details as a tab' ); \ No newline at end of file diff --git a/Application/views/blocks/page/details/inc/details_tabs_invite.html.tpl b/Application/views/blocks/page/details/inc/details_tabs_invite.html.tpl index 79fc04c..46d7321 100644 --- a/Application/views/blocks/page/details/inc/details_tabs_invite.html.tpl +++ b/Application/views/blocks/page/details/inc/details_tabs_invite.html.tpl @@ -1,7 +1,10 @@ [{$smarty.block.parent}] +[{assign var="oConfig" value=$oViewConf->getConfig()}] [{assign var="oManufacturer" value=$oView->getManufacturer()}] -[{if $oManufacturer && $oManufacturer->d3GetLongdesc()}] +[{assign var="sShopURL" value=$oConfig->getConfigParam('sShopURL')}] + +[{if $oManufacturer && $oConfig->getConfigParam('d3manufacturerinformation_showManufacturertextOnDetailsPage') && $oManufacturer->d3GetLongdesc()}] [{capture append="tabs"}][{oxmultilang ident="MANUFACTURER"}][{/capture}] [{capture append="tabsContent"}]
diff --git a/metadata.php b/metadata.php index 5c27fdd..0398717 100644 --- a/metadata.php +++ b/metadata.php @@ -50,6 +50,14 @@ $aModule = [ 'templates' => [ 'd3manufacturerlongdesc.tpl' => 'd3/manufacturerinformation/Application/views/admin/tpl/d3manufacturer_longdesc.tpl', ], + 'settings' => [ + [ + 'group' => $sModuleId.'_main', + 'name' => $sModuleId.'_showManufacturertextOnDetailsPage', + 'type' => 'bool', + 'value' => true + ], + ], 'blocks' => [ [ 'template' => 'page/details/inc/productmain.tpl',