From 7e4e5d7dc2e8554a633319cfb455a78465a8e5e5 Mon Sep 17 00:00:00 2001 From: Daniel Gohlke Date: Thu, 7 Aug 2025 20:53:30 +0200 Subject: [PATCH] [BUGFIX] Add TCA configuration for field record_type Relates: #679 --- .../TCA/tx_cart_domain_model_order_tax.php | 13 +++++++++++++ Documentation/guides.xml | 2 +- Resources/Private/Language/locallang_db.xlf | 9 +++++++++ ext_emconf.php | 2 +- 4 files changed, 24 insertions(+), 2 deletions(-) diff --git a/Configuration/TCA/tx_cart_domain_model_order_tax.php b/Configuration/TCA/tx_cart_domain_model_order_tax.php index 66f72623..79f16fb4 100644 --- a/Configuration/TCA/tx_cart_domain_model_order_tax.php +++ b/Configuration/TCA/tx_cart_domain_model_order_tax.php @@ -35,6 +35,19 @@ ], ], 'columns' => [ + 'record_type' => [ + 'exclude' => 0, + 'label' => $_LLL . ':tx_cart_domain_model_order_tax.record_type', + 'config' => [ + 'type' => 'select', + 'renderType' => 'selectSingle', + 'items' => [ + [$_LLL . ':tx_cart_domain_model_order_tax.record_type.tax', 'tax'], + [$_LLL . ':tx_cart_domain_model_order_tax.record_type.total_tax', 'total_tax'], + ], + 'default' => 'tax', + ], + ], 'tax' => [ 'exclude' => 0, 'label' => $_LLL . ':tx_cart_domain_model_order_tax.tax', diff --git a/Documentation/guides.xml b/Documentation/guides.xml index bd65f820..4909db7a 100644 --- a/Documentation/guides.xml +++ b/Documentation/guides.xml @@ -11,7 +11,7 @@ interlink-shortcode="extcode/cart" /> diff --git a/Resources/Private/Language/locallang_db.xlf b/Resources/Private/Language/locallang_db.xlf index 17546d38..042d423c 100644 --- a/Resources/Private/Language/locallang_db.xlf +++ b/Resources/Private/Language/locallang_db.xlf @@ -260,6 +260,15 @@ Tax Class + + Record Type + + + Tax + + + Total Tax/source> + Product diff --git a/ext_emconf.php b/ext_emconf.php index ce97edbb..ab02a8be 100644 --- a/ext_emconf.php +++ b/ext_emconf.php @@ -4,7 +4,7 @@ 'title' => 'Cart', 'description' => 'Shopping Cart(s) for TYPO3', 'category' => 'plugin', - 'version' => '11.4.7', + 'version' => '11.4.8', 'state' => 'stable', 'author' => 'Daniel Gohlke', 'author_email' => 'ext@extco.de',