List of multiple products into php datalayer
问题 I would like to get a nice data layer tracking for my site's marketing pixels in the "order confirmation page" (thank you for you purchase page). The site uses OXID Shop as the ecommerce platform. I would like to have the following setup: IF currentPage == 'thankyou': products_info = '[{id: 'product_id_1', price: 'price_1', quantity: 'quantity_1'}, {id: 'product_id_2', price: 'price_2', quantity: 'quantity_2'}]' I am trying the following code to obtain the values directly from the backend if