diff --git a/web/typo3conf/ext/ep_products/Classes/Domain/Model/Product.php b/web/typo3conf/ext/ep_products/Classes/Domain/Model/Product.php index bd42d135..970aa056 100644 --- a/web/typo3conf/ext/ep_products/Classes/Domain/Model/Product.php +++ b/web/typo3conf/ext/ep_products/Classes/Domain/Model/Product.php @@ -45,6 +45,11 @@ class Product extends \TYPO3\CMS\Extbase\DomainObject\AbstractEntity implements */ protected $daytrip = false; + /** + * @var bool + */ + protected $skipassIncluded = true; + /** * @var string */ @@ -311,6 +316,22 @@ class Product extends \TYPO3\CMS\Extbase\DomainObject\AbstractEntity implements $this->daytrip = (bool) $daytrip; } + /** + * @return bool + */ + public function isSkipassIncluded() + { + return $this->skipassIncluded; + } + + /** + * @param bool $skipassIncluded + */ + public function setSkipassIncluded($skipassIncluded) + { + $this->skipassIncluded = $skipassIncluded; + } + /** * @return string */ diff --git a/web/typo3conf/ext/ep_products/Configuration/TCA/tx_epproducts_domain_model_product.php b/web/typo3conf/ext/ep_products/Configuration/TCA/tx_epproducts_domain_model_product.php index f9d82597..6e223641 100644 --- a/web/typo3conf/ext/ep_products/Configuration/TCA/tx_epproducts_domain_model_product.php +++ b/web/typo3conf/ext/ep_products/Configuration/TCA/tx_epproducts_domain_model_product.php @@ -44,7 +44,7 @@ return [ ], 'palettes' => [ 'destinations' => ['showitem' => 'country,region,city'], - 'top' => ['showitem' => 'searchable, bookable, daytrip, detail_page'], + 'top' => ['showitem' => 'searchable, bookable, daytrip, skipass_included, detail_page'], 'name' => ['showitem' => 'name,code'], 'alternative' => ['showitem' => 'alt_product, alt_label'], 'header' => ['showitem' => 'headline,subline,--linebreak--,header_title,header_subtitle'], @@ -161,6 +161,14 @@ return [ 'type' => 'check', ], ], + 'skipass_included' => [ + 'exclude' => 0, + 'label' => 'Skipass inklusive', + 'config' => [ + 'type' => 'check', + 'default' => true, + ], + ], 'detail_page' => [ 'exclude' => 0, 'label' => 'LLL:EXT:ep_products/Resources/Private/Language/locallang.xlf:tx_epproducts_domain_model_product.detail_page', diff --git a/web/typo3conf/ext/ep_products/ext_tables.sql b/web/typo3conf/ext/ep_products/ext_tables.sql index e0b6a272..ba1c4ba4 100644 --- a/web/typo3conf/ext/ep_products/ext_tables.sql +++ b/web/typo3conf/ext/ep_products/ext_tables.sql @@ -10,6 +10,7 @@ CREATE TABLE tx_epproducts_domain_model_product ( searchable tinyint(4) unsigned DEFAULT '1' NOT NULL, bookable tinyint(4) unsigned DEFAULT '1' NOT NULL, daytrip tinyint(4) unsigned DEFAULT '0' NOT NULL, + skipass_included tinyint(4) unsigned DEFAULT '1' NOT NULL, name varchar(255) DEFAULT '' NOT NULL, name_internal varchar(255) DEFAULT '' NOT NULL, subline varchar(255) DEFAULT '' NOT NULL, diff --git a/web/typo3conf/ext/ep_theme/Resources/Private/Partials/Product/HeaderDetail.html b/web/typo3conf/ext/ep_theme/Resources/Private/Partials/Product/HeaderDetail.html index 0c803166..5f60a3be 100644 --- a/web/typo3conf/ext/ep_theme/Resources/Private/Partials/Product/HeaderDetail.html +++ b/web/typo3conf/ext/ep_theme/Resources/Private/Partials/Product/HeaderDetail.html @@ -36,7 +36,7 @@ - +