Browse Source

fix: undefined not writing correctly

master
parent
commit
d86b4bdc3f
  1. 2
      Resources/views/Default/async_mtm_js.html.twig

2
Resources/views/Default/async_mtm_js.html.twig

@ -93,7 +93,7 @@ window._mtm.push({ @@ -93,7 +93,7 @@ window._mtm.push({
'id': '{{ storage.ecommerceOrder.orderId }}',
'revenue': {% if storage.ecommerceOrder.grandTotal %}{{ storage.ecommerceOrder.grandTotal }}{% else %}undefined{% endif %},
'orderSubTotal': {% if storage.ecommerceOrder.subTotal %}{{ storage.ecommerceOrder.subTotal }}{% else %}undefined{% endif %},
'tax': {% if storage.ecommerceOrder.tax %}{{ storage.ecommerceOrder.tax }}{% else %}unedfined{% endif %},
'tax': {% if storage.ecommerceOrder.tax %}{{ storage.ecommerceOrder.tax }}{% else %}undefined{% endif %},
'shipping': {% if storage.ecommerceOrder.shipping %}{{ storage.ecommerceOrder.shipping }}{% else %}undefined{% endif %},
'discount': {% if storage.ecommerceOrder.discount %}{{ storage.ecommerceOrder.discount }}{% else %}false{% endif %},
}

Loading…
Cancel
Save