From bda0097eb6f40986a27b8da80e5fa9cd1d582856 Mon Sep 17 00:00:00 2001 From: Samuel Coman Date: Tue, 25 Nov 2025 15:24:05 +0200 Subject: [PATCH 1/2] fix view-cart event again --- DataLayer/Event/ViewCart.php | 2 +- view/frontend/layout/hyva_checkout_cart_index.xml | 11 +++++++++++ .../templates/hyva/cart-script-additions.phtml | 14 ++++++++++++++ 3 files changed, 26 insertions(+), 1 deletion(-) create mode 100644 view/frontend/layout/hyva_checkout_cart_index.xml create mode 100644 view/frontend/templates/hyva/cart-script-additions.phtml diff --git a/DataLayer/Event/ViewCart.php b/DataLayer/Event/ViewCart.php index 2827d26a..cb19ac06 100644 --- a/DataLayer/Event/ViewCart.php +++ b/DataLayer/Event/ViewCart.php @@ -72,7 +72,7 @@ private function getAllowedPages(): array return []; } - return ['/checkout/cart/']; + return ['checkout/cart/']; } /** diff --git a/view/frontend/layout/hyva_checkout_cart_index.xml b/view/frontend/layout/hyva_checkout_cart_index.xml new file mode 100644 index 00000000..364fee8b --- /dev/null +++ b/view/frontend/layout/hyva_checkout_cart_index.xml @@ -0,0 +1,11 @@ + + + + + + + + diff --git a/view/frontend/templates/hyva/cart-script-additions.phtml b/view/frontend/templates/hyva/cart-script-additions.phtml new file mode 100644 index 00000000..0f8aa833 --- /dev/null +++ b/view/frontend/templates/hyva/cart-script-additions.phtml @@ -0,0 +1,14 @@ +getCommonsViewModel(); +?> + From 901285b1c49ff9f4bd48943ff28e08be490a42c2 Mon Sep 17 00:00:00 2001 From: Samuel Coman Date: Tue, 25 Nov 2025 15:26:57 +0200 Subject: [PATCH 2/2] remove unused --- view/frontend/templates/hyva/cart-script-additions.phtml | 3 --- 1 file changed, 3 deletions(-) diff --git a/view/frontend/templates/hyva/cart-script-additions.phtml b/view/frontend/templates/hyva/cart-script-additions.phtml index 0f8aa833..deec43b0 100644 --- a/view/frontend/templates/hyva/cart-script-additions.phtml +++ b/view/frontend/templates/hyva/cart-script-additions.phtml @@ -1,11 +1,8 @@ getCommonsViewModel(); ?>