From 6195b5ba6543ddb58afdd830f97bc09cde895775 Mon Sep 17 00:00:00 2001 From: MaxBuhe01 Date: Sat, 14 Jun 2025 20:09:15 +0200 Subject: [PATCH] [Fixed] missing currency-name --- Modules/Application/Controller/BasketController.php | 2 -- views/twig/event/add_payment_info.html.twig | 2 +- views/twig/event/view_cart.html.twig | 2 +- 3 files changed, 2 insertions(+), 4 deletions(-) diff --git a/Modules/Application/Controller/BasketController.php b/Modules/Application/Controller/BasketController.php index bdb5422..c405d5e 100644 --- a/Modules/Application/Controller/BasketController.php +++ b/Modules/Application/Controller/BasketController.php @@ -16,8 +16,6 @@ class BasketController extends BasketController_parent public function render() { $return = parent::render(); - - $this->addTplParam('d3ActCurrencyObject', Registry::getConfig()->getActShopCurrencyObject()); $this->d3GA4getRemovedArticlesListObject(); diff --git a/views/twig/event/add_payment_info.html.twig b/views/twig/event/add_payment_info.html.twig index c3dd8e9..2c12243 100644 --- a/views/twig/event/add_payment_info.html.twig +++ b/views/twig/event/add_payment_info.html.twig @@ -16,7 +16,7 @@ 'ecommerce': { 'actionField': "Payment-Info", - 'currency': "{{ currency.name }}", + 'currency': "{{ oView.getActCurrency().name }}", 'value': {{ gtmBasketPrice.getPrice() }}, 'coupon': '{% for key, sVoucher in oxcmp_basket.getVouchers() %}{{ sVoucher.sVoucherNr }}{% if not loop.last %}, {% endif %}{% endfor %}', 'items': [ diff --git a/views/twig/event/view_cart.html.twig b/views/twig/event/view_cart.html.twig index 85fb4c5..58b422b 100644 --- a/views/twig/event/view_cart.html.twig +++ b/views/twig/event/view_cart.html.twig @@ -13,7 +13,7 @@ 'ecommerce': { 'actionField': "step: 1", - 'currency': "{{ d3ActCurrencyObject.name }}", + 'currency': "{{ oView.getActCurrency().name }}", 'value': {{ d3BasketPrice.getPrice() }}, 'coupon': '{% for key, sVoucher in oxcmp_basket.getVouchers() %}{{ sVoucher.sVoucherNr }}{% if not loop.last %}, {% endif %}{% endfor %}', 'items':