From 40a30d72228014a3a78f1f13e4dd7e3dce10d09a Mon Sep 17 00:00:00 2001 From: Franz Holzinger Date: Thu, 13 Apr 2023 16:22:02 +0200 Subject: [PATCH] fix country code error --- ext_emconf.php | 2 +- template/products_css_variants_de.html | 2 +- view/class.tx_ttproducts_info_view.php | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/ext_emconf.php b/ext_emconf.php index a639d1b1c..f2de7db9f 100644 --- a/ext_emconf.php +++ b/ext_emconf.php @@ -23,7 +23,7 @@ 'php' => '7.4.0-8.1.99', 'table' => '0.11.0-0.0.0', 'tsparser' => '0.9.0-0.0.0', - 'typo3db_legacy' => '1.0.0-1.1.99', + 'typo3db_legacy' => '1.0.0-1.2.99', 'typo3' => '10.4.0-11.5.99', ], 'conflicts' => diff --git a/template/products_css_variants_de.html b/template/products_css_variants_de.html index 52c3d8b76..d5cc45694 100644 --- a/template/products_css_variants_de.html +++ b/template/products_css_variants_de.html @@ -883,7 +883,7 @@

BASKET_INFO_TEMPLATE

Ja
- ###GW1B###Wie sind Sie auf uns aufmerksam geworden?:###GW1E### + ###GW1B###Wie sind Sie auf uns aufmerksam geworden?###GW1E### ###DELIVERY_FOUNDBY_SELECTOR###
diff --git a/view/class.tx_ttproducts_info_view.php b/view/class.tx_ttproducts_info_view.php index 48b74e448..5fc436903 100644 --- a/view/class.tx_ttproducts_info_view.php +++ b/view/class.tx_ttproducts_info_view.php @@ -387,8 +387,8 @@ public function getRowMarkerArray ( $bReady = false; $whereCountries = $this->getWhereAllowedCountries($basketExtra); $countryCodeArray = []; - $countryCodeArray['billing'] = ($this->infoArray['billing']['country_code'] ?: $context->getPropertyFromAspect('frontend.user', 'isLoggedIn') && ($context->getPropertyFromAspect('frontend.user', 'isLoggedIn') && !empty($GLOBALS['TSFE']->fe_user->user['static_info_country']) ? $GLOBALS['TSFE']->fe_user->user['static_info_country'] : false)); - $countryCodeArray['delivery'] = ($this->infoArray['delivery']['country_code'] ?: ($context->getPropertyFromAspect('frontend.user', 'isLoggedIn') && !empty($GLOBALS['TSFE']->fe_user->user['static_info_country']) ? $GLOBALS['TSFE']->fe_user->user['static_info_country'] : false)); + $countryCodeArray['billing'] = ($this->infoArray['billing']['country_code'] ?? $context->getPropertyFromAspect('frontend.user', 'isLoggedIn') && ($context->getPropertyFromAspect('frontend.user', 'isLoggedIn') && !empty($GLOBALS['TSFE']->fe_user->user['static_info_country']) ? $GLOBALS['TSFE']->fe_user->user['static_info_country'] : false)); + $countryCodeArray['delivery'] = ($this->infoArray['delivery']['country_code'] ?? ($context->getPropertyFromAspect('frontend.user', 'isLoggedIn') && !empty($GLOBALS['TSFE']->fe_user->user['static_info_country']) ? $GLOBALS['TSFE']->fe_user->user['static_info_country'] : false)); $zoneCodeArray = []; $zoneCodeArray['billing'] = (