From cbe3293ff1e865e008c581b00c5bf9ab9d635665 Mon Sep 17 00:00:00 2001 From: MaxBUhe Date: Tue, 26 Mar 2024 11:31:15 +0100 Subject: [PATCH] [Fixed] potential error if no basket-component is given, error occurs --- Application/views/event/add_to_cart.tpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Application/views/event/add_to_cart.tpl b/Application/views/event/add_to_cart.tpl index 8d85631..ecb54f0 100644 --- a/Application/views/event/add_to_cart.tpl +++ b/Application/views/event/add_to_cart.tpl @@ -1,5 +1,5 @@ -[{if $d3CmpBasket->getAddToBasketDecision() && $d3CmpBasket->d3GtmRequestedArticleLoadedByAnid() !== null}] +[{if $d3CmpBasket && $d3CmpBasket->getAddToBasketDecision() && $d3CmpBasket->d3GtmRequestedArticleLoadedByAnid() !== null}] [{assign var="oGtmProduct" value=$d3CmpBasket->d3GtmRequestedArticleLoadedByAnid()}] [{assign var="oGtmAmountArticlesAdded" value=$d3CmpBasket->getD3GtmAddToCartAmountArticles()}] [{*$smarty.block.parent*}]