diff --git a/Application/Controller/Admin/ManufacturerInfoLongdesc.php b/Application/Controller/Admin/ManufacturerInfoLongdesc.php index c02b49d..785795c 100644 --- a/Application/Controller/Admin/ManufacturerInfoLongdesc.php +++ b/Application/Controller/Admin/ManufacturerInfoLongdesc.php @@ -47,7 +47,7 @@ class ManufacturerInfoLongdesc extends AdminDetailsController } } - $this->_aViewData["editor"] = $this->generateTextEditor("100%", 280, $oManufacturer, "oxmanufacturers__D3DESCRIPTION", "list.tpl.css"); + $this->_aViewData["editor"] = $this->generateTextEditor("100%", 280, $oManufacturer, "oxmanufacturers__d3description", "list.tpl.css"); return "d3manufacturerlongdesc.tpl"; } @@ -110,7 +110,7 @@ class ManufacturerInfoLongdesc extends AdminDetailsController */ public function d3GetLongdescParamValue() :string { - return (string) $aParams = Registry::getRequest()->getRequestEscapedParameter("editval")['oxmanufacturers__D3DESCRIPTION']; + return (string) $aParams = Registry::getRequest()->getRequestEscapedParameter("editval")['oxmanufacturers__d3description']; } /** diff --git a/Application/Model/Constants.php b/Application/Model/Constants.php index 62ff474..26e85ab 100644 --- a/Application/Model/Constants.php +++ b/Application/Model/Constants.php @@ -10,5 +10,5 @@ class Constants public const OXID_MODULE_ID = 'd3manufacturerinformation'; // Tables and Database - public const D3_OXMANUFACTURERS_LONGDESC_FIELDNAME = 'D3DESCRIPTION'; + public const D3_OXMANUFACTURERS_LONGDESC_FIELDNAME = 'd3description'; } \ No newline at end of file diff --git a/Application/views/admin/tpl/d3manufacturer_longdesc.tpl b/Application/views/admin/tpl/d3manufacturer_longdesc.tpl index 9585f55..dafb7f4 100644 --- a/Application/views/admin/tpl/d3manufacturer_longdesc.tpl +++ b/Application/views/admin/tpl/d3manufacturer_longdesc.tpl @@ -25,7 +25,7 @@ -
+ [{$oViewConf->getHiddenSid()}] @@ -33,7 +33,7 @@ - + [{include file="include/category_text_editor.tpl"}]
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 46d7321..af74500 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,14 +1,15 @@ [{$smarty.block.parent}] -[{assign var="oConfig" value=$oViewConf->getConfig()}] +[{assign var="oConfig" value=$oViewConf->getConfig()}] [{assign var="oManufacturer" value=$oView->getManufacturer()}] [{assign var="sShopURL" value=$oConfig->getConfigParam('sShopURL')}] +[{assign var="description" value=$oManufacturer->d3GetLongdesc()}] -[{if $oManufacturer && $oConfig->getConfigParam('d3manufacturerinformation_showManufacturertextOnDetailsPage') && $oManufacturer->d3GetLongdesc()}] +[{if $oManufacturer && $oConfig->getConfigParam('d3manufacturerinformation_showManufacturertextOnDetailsPage') && $description->value}] [{capture append="tabs"}][{oxmultilang ident="MANUFACTURER"}][{/capture}] [{capture append="tabsContent"}]
- [{oxeval var=$oManufacturer->d3GetLongdesc()}] + [{oxeval var=$description}]
[{assign var="blFirstTab" value=false}] [{/capture}] diff --git a/Modules/Application/Model/D3ManufacturerLongDesc.php b/Modules/Application/Model/D3ManufacturerLongDesc.php index cfaefcb..de7beee 100644 --- a/Modules/Application/Model/D3ManufacturerLongDesc.php +++ b/Modules/Application/Model/D3ManufacturerLongDesc.php @@ -7,6 +7,7 @@ namespace D3\ManufacturerInformation\Modules\Application\Model; use D3\ManufacturerInformation\Application\Model\Constants; use OxidEsales\Eshop\Application\Model\Manufacturer; +use OxidEsales\Eshop\Core\Field; use OxidEsales\Eshop\Core\Registry; class D3ManufacturerLongDesc extends D3ManufacturerLongDesc_parent @@ -30,10 +31,11 @@ class D3ManufacturerLongDesc extends D3ManufacturerLongDesc_parent } /** - * @return string + * @return Field */ - public function d3GetLongdesc(): string + public function d3GetLongdesc(): Field { - return $this->getFieldData(Constants::D3_OXMANUFACTURERS_LONGDESC_FIELDNAME); + $longName = $this->getCoreTableName().'__'.strtolower(Constants::D3_OXMANUFACTURERS_LONGDESC_FIELDNAME); + return $this->$longName; } } \ No newline at end of file