You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We changed the add-to-cart event datalayer to support GA4 as closely as possible and we're using {{ cartaddprice(item.id, item.quantity, item.type, item.referencedId, item.stackable, item.removable) }} for grabbing the price.
Actual behaviour
The price doesn't get returned. Probably because of the SessionUtility class only supporting $dLayer['ecommerce']['add']['products'] in a foreach loop. We're not sure whether this is the full reason.
How to reproduce in a demoshop
This is our datalayer:
This is the price:
We've also added a response route, because we're using an add-to-cart modal:
The text was updated successfully, but these errors were encountered:
PHP Version
8.1
Shopware Version
6.4.16.1
Expected behaviour
We changed the add-to-cart event datalayer to support GA4 as closely as possible and we're using
{{ cartaddprice(item.id, item.quantity, item.type, item.referencedId, item.stackable, item.removable) }}
for grabbing the price.Actual behaviour
The price doesn't get returned. Probably because of the
SessionUtility
class only supporting$dLayer['ecommerce']['add']['products']
in a foreach loop. We're not sure whether this is the full reason.How to reproduce in a demoshop
This is our datalayer:

This is the price:

We've also added a response route, because we're using an add-to-cart modal:

The text was updated successfully, but these errors were encountered: