Skip to content

view_cart event firing twice #309

@mattBtindall

Description

@mattBtindall

Magento version: 2.4.8-p2
Plugin version: 3.10.6

The view_cart event is firing twice. I have noticed that one of them comes from the customer section data which is then fired here magento/vendor/yireo/magento2-googletagmanager2/view/frontend/templates/hyva/script-additions.phtml and then the other comes from the yireo_googletagmanager2.data-layer block and the data is added here magento/vendor/yireo/magento2-googletagmanager2/view/frontend/layout/checkout_cart_index.xml. For now i have removed the block from the cart page. Is there a more permanent fix for this? I have added the Magento settings.

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions