From 03f7f790ffe2fe7629f6a2e427fa9472ed0a6bc4 Mon Sep 17 00:00:00 2001 From: Ivo Jongmans Date: Tue, 18 Jun 2024 09:55:20 +0200 Subject: [PATCH] disable all consent mode options on deny --- src/view/frontend/templates/cookie-banner-script.phtml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/view/frontend/templates/cookie-banner-script.phtml b/src/view/frontend/templates/cookie-banner-script.phtml index f723ad7..3755e2e 100644 --- a/src/view/frontend/templates/cookie-banner-script.phtml +++ b/src/view/frontend/templates/cookie-banner-script.phtml @@ -97,6 +97,10 @@ if (!$cookieHelper->isCookieRestrictionModeEnabled()) { switch (mode) { case 'deny': + for (const [key, value] of Object.entries(this.consentConfig)) { + this.consentConfig[key] = false; + } + window.location.href = this.noCookiesUrl; break;