make displaying manufacturer information on manufacturer list page configurable
This commit is contained in:
parent
ca0770824d
commit
f32d0f5389
@ -23,4 +23,5 @@ $aLang = [
|
|||||||
'mxd3manufacturerinfolongdesc' => 'Langtext',
|
'mxd3manufacturerinfolongdesc' => 'Langtext',
|
||||||
'SHOP_MODULE_GROUP_d3manufacturerinformation_main' => 'Einstellungen',
|
'SHOP_MODULE_GROUP_d3manufacturerinformation_main' => 'Einstellungen',
|
||||||
'SHOP_MODULE_d3manufacturerinformation_showManufacturertextOnDetailsPage' => 'vorhandene Herstellertexte auf Artikeldetails als Tab anzeigen',
|
'SHOP_MODULE_d3manufacturerinformation_showManufacturertextOnDetailsPage' => 'vorhandene Herstellertexte auf Artikeldetails als Tab anzeigen',
|
||||||
|
'SHOP_MODULE_d3manufacturerinformation_showManufacturertextOnManufacturerPage' => 'Herstellertexte auf Herstellerseite anzeigen',
|
||||||
];
|
];
|
||||||
|
@ -22,5 +22,6 @@ $aLang = [
|
|||||||
|
|
||||||
'mxd3manufacturerinfolongdesc' => 'Text',
|
'mxd3manufacturerinfolongdesc' => 'Text',
|
||||||
'SHOP_MODULE_GROUP_d3manufacturerinformation_main' => 'Settings',
|
'SHOP_MODULE_GROUP_d3manufacturerinformation_main' => 'Settings',
|
||||||
'SHOP_MODULE_d3manufacturerinformation_showManufacturertextOnDetailsPage' => 'display existing manufacturer texts on item details as a tab',
|
'SHOP_MODULE_d3manufacturerinformation_showManufacturertextOnDetailsPage' => 'show existing manufacturer texts on item details page as a tab',
|
||||||
|
'SHOP_MODULE_d3manufacturerinformation_showManufacturertextOnManufacturerPage' => 'show manufacturer texts on manufacturer page',
|
||||||
];
|
];
|
||||||
|
@ -5,6 +5,11 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|||||||
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
||||||
|
|
||||||
## [unreleased](https://git.d3data.de/D3Private/manufacturer-information/compare/1.1.2.1...rel_1.1.x)
|
## [unreleased](https://git.d3data.de/D3Private/manufacturer-information/compare/1.1.2.1...rel_1.1.x)
|
||||||
|
### Fixed
|
||||||
|
- content encoding on manufacturers list page
|
||||||
|
|
||||||
|
### Added
|
||||||
|
- displaying content on manufacturers list page configurable
|
||||||
|
|
||||||
## [1.1.2.1](https://git.d3data.de/D3Private/manufacturer-information/compare/1.1.2.0...1.1.2.1) - 2024-11-21
|
## [1.1.2.1](https://git.d3data.de/D3Private/manufacturer-information/compare/1.1.2.0...1.1.2.1) - 2024-11-21
|
||||||
### Fixed
|
### Fixed
|
||||||
|
@ -21,6 +21,7 @@ use D3\ManufacturerInformation\Application\Model\Constants;
|
|||||||
use OxidEsales\Eshop\Application\Model\Manufacturer;
|
use OxidEsales\Eshop\Application\Model\Manufacturer;
|
||||||
use OxidEsales\Eshop\Application\Model\ManufacturerList;
|
use OxidEsales\Eshop\Application\Model\ManufacturerList;
|
||||||
use OxidEsales\Eshop\Core\Field;
|
use OxidEsales\Eshop\Core\Field;
|
||||||
|
use OxidEsales\Eshop\Core\Registry;
|
||||||
|
|
||||||
class ManufacturerInfoList extends ManufacturerInfoList_parent
|
class ManufacturerInfoList extends ManufacturerInfoList_parent
|
||||||
{
|
{
|
||||||
@ -32,11 +33,13 @@ class ManufacturerInfoList extends ManufacturerInfoList_parent
|
|||||||
{
|
{
|
||||||
parent::_addCategoryFields($oManufacturer);
|
parent::_addCategoryFields($oManufacturer);
|
||||||
|
|
||||||
$oManufacturer->oxcategories__oxlongdesc = new Field(
|
if (Registry::getConfig()->getConfigParam('d3manufacturerinformation_showManufacturertextOnManufacturerPage')) {
|
||||||
html_entity_decode(
|
$oManufacturer->oxcategories__oxlongdesc = new Field(
|
||||||
$oManufacturer->getFieldData(Constants::D3_OXMANUFACTURERS_LONGDESC_FIELDNAME) ?? ''
|
html_entity_decode(
|
||||||
),
|
$oManufacturer->getFieldData( Constants::D3_OXMANUFACTURERS_LONGDESC_FIELDNAME ) ?? ''
|
||||||
Field::T_RAW
|
),
|
||||||
);
|
Field::T_RAW
|
||||||
|
);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -38,7 +38,7 @@ $aModule = [
|
|||||||
'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.2.1',
|
'version' => '1.1.2.0',
|
||||||
'author' => $logo.' Data Development (Inh.: Thomas Dartsch)',
|
'author' => $logo.' Data Development (Inh.: Thomas Dartsch)',
|
||||||
'email' => 'support@shopmodule.com',
|
'email' => 'support@shopmodule.com',
|
||||||
'url' => 'https://www.oxidmodule.com/',
|
'url' => 'https://www.oxidmodule.com/',
|
||||||
@ -59,6 +59,12 @@ $aModule = [
|
|||||||
'type' => 'bool',
|
'type' => 'bool',
|
||||||
'value' => true,
|
'value' => true,
|
||||||
],
|
],
|
||||||
|
[
|
||||||
|
'group' => $sModuleId.'_main',
|
||||||
|
'name' => $sModuleId.'_showManufacturertextOnManufacturerPage',
|
||||||
|
'type' => 'bool',
|
||||||
|
'value' => true,
|
||||||
|
],
|
||||||
],
|
],
|
||||||
'blocks' => [
|
'blocks' => [
|
||||||
[
|
[
|
||||||
|
Loading…
x
Reference in New Issue
Block a user