Commit b02e91e3 by halweg

json fix

parent c098b3c0
...@@ -96,7 +96,7 @@ $helper = $objectManager->get('Joshine\GoogleFeed\Helper\GAHelper'); ...@@ -96,7 +96,7 @@ $helper = $objectManager->get('Joshine\GoogleFeed\Helper\GAHelper');
gtag('event', 'purchase', { gtag('event', 'purchase', {
"transaction_id": '<?= /* @noEscape */ $block->getOrderId() ?>', "transaction_id": '<?= /* @noEscape */ $block->getOrderId() ?>',
"value": '<?= /* @noEscape */ $totalPrice ?>', "value": '<?= /* @noEscape */ $totalPrice ?>',
"currency": '<?= /* @noEscape */ $currency ?>',, "currency": '<?= /* @noEscape */ $currency ?>',
"items": <?= json_encode($googleItems, true); ?> "items": <?= json_encode($googleItems, true); ?>
}); });
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment