From a49c29d7aa6a9a48c8fd65389a9d34d36f7954da Mon Sep 17 00:00:00 2001 From: MaxBUhe Date: Thu, 17 Aug 2023 09:20:58 +0200 Subject: [PATCH] add CountryObjectGetter to ThankYouController --- IntelliSenseHelper.php | 1 + .../Controller/ThankYouController.php | 22 +++++++++++++++++++ metadata.php | 5 ++++- 3 files changed, 27 insertions(+), 1 deletion(-) create mode 100644 Modules/Application/Controller/ThankYouController.php diff --git a/IntelliSenseHelper.php b/IntelliSenseHelper.php index f8ac44a..08ac114 100644 --- a/IntelliSenseHelper.php +++ b/IntelliSenseHelper.php @@ -24,4 +24,5 @@ namespace D3\GoogleAnalytics4\Modules\Application\Model{ namespace D3\GoogleAnalytics4\Modules\Application\Controller{ class BasketController_parent extends \OxidEsales\Eshop\Application\Controller\BasketController {} + class ThankYouController_parent extends \OxidEsales\Eshop\Application\Controller\ThankYouController {} } \ No newline at end of file diff --git a/Modules/Application/Controller/ThankYouController.php b/Modules/Application/Controller/ThankYouController.php new file mode 100644 index 0000000..215503a --- /dev/null +++ b/Modules/Application/Controller/ThankYouController.php @@ -0,0 +1,22 @@ +getOrder()->getFieldData('oxbillcountryid'); + + /** @var Country $oCountry */ + $oCountry = oxNew(Country::class); + $oCountry->load($sCountryId); + + return $oCountry; + } +} \ No newline at end of file diff --git a/metadata.php b/metadata.php index cd5fd93..5e1513f 100755 --- a/metadata.php +++ b/metadata.php @@ -1,10 +1,12 @@ ViewConfig::class, OECategory::class => Category::class, OEBasket::class => Basket::class, - OEBasketController::class => BasketController::class + OEBasketController::class => BasketController::class, + OEThankYouController::class => ThankYouController::class ], 'templates' => [], 'blocks' => [