File tree Expand file tree Collapse file tree 3 files changed +26
-1
lines changed
Expand file tree Collapse file tree 3 files changed +26
-1
lines changed Original file line number Diff line number Diff line change @@ -72,7 +72,7 @@ private function getAllowedPages(): array
7272 return [];
7373 }
7474
75- return ['/ checkout/cart/ ' ];
75+ return ['checkout/cart/ ' ];
7676 }
7777
7878 /**
Original file line number Diff line number Diff line change 1+ <?xml version =" 1.0" ?>
2+ <page xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
3+ xsi : noNamespaceSchemaLocation =" urn:magento:framework:View/Layout/etc/page_configuration.xsd" >
4+ <body >
5+ <referenceContainer name =" after.body.start" >
6+ <block
7+ name =" yireo_googletagmanager2.cart.script-additions"
8+ template =" Yireo_GoogleTagManager2::hyva/cart-script-additions.phtml" />
9+ </referenceContainer >
10+ </body >
11+ </page >
Original file line number Diff line number Diff line change 1+ <?php declare (strict_types=1 );
2+
3+ use Magento \Framework \View \Element \Template ;
4+ use Yireo \GoogleTagManager2 \ViewModel \Commons ;
5+
6+ /** @var Template $block */
7+ /** @var Commons $commons */
8+ $ commons = $ block ->getCommonsViewModel ();
9+ ?>
10+ <script>
11+ document.addEventListener('DOMContentLoaded', function () {
12+ window.dispatchEvent(new CustomEvent('minicart_collapse'));
13+ });
14+ </script>
You can’t perform that action at this time.
0 commit comments