-- HikaShop version -- : 2.6.4
-- Joomla version -- : 3.4
-- PHP version -- : 5.5
I need to integrate this code after a product (or a series of products) is confirmed:
<script type="text/javascript" src="
tracking.trovaprezzi.it/javascripts/tracking.min.js
" async="true"></script>
<script type="text/javascript">
window._tt = window._tt || [];
window._tt.push({ event: "setAccount", id: /* chiavemerchant */ });
window._tt.push({ event: "setOrderId", order_id: /* idordine */ });
window._tt.push({ event: "setEmail", email: /* emailcliente */ });
window._tt.push({ event: "addItem", sku: /* sku */, product_name: /* nomeprodotto */ });
window._tt.push({ event: "setAmount", amount: /* totalecarrello */ });
window._tt.push({ event: "orderSubmit"});
</script>
Where the string "window._tt.push({ event: "addItem", sku: /* sku */, product_name: /* nomeprodotto */ });" is repeated for each product of the order.
If i have 3 product on order confirmed, i have to generate a string for each of these.
Is it possible to create? Contact us please.