Hello!
My name is Christoffer Jensen, im currently helping a merchant install a script that we have so we can follow each other.
The script is used to send me information on sales and it shows the merchant all the tracked sales though me.
The script is (ignore all the spaces):
<script type="text/javascript">
var _kkstrack = {
merchantInfo : [{ country:"COUNTRY_CODE", merchantId:"COMID_VALUE" }],
orderValue: 'ORDER_VALUE',
orderId: 'ORDER_ID',
basket: [{ productname: 'PRODUCT1_NAME',
productid: 'PRODUCT1_ID',
quantity: 'PRODUCT1_QUANTITY',
price: 'PRODUCT1_PRICE'
},
{ productname: 'PRODUCT2_NAME',
productid: 'PRODUCT2_ID',
quantity: 'PRODUCT2_QUANTITY',
price: 'PRODUCT2_PRICE'
}
]
};
(function() {
var s = document.createElement('script');
s.type = 'text/javascript';
s.async = true;
s.src='https://s.kk-resources.com/ks.js';
var x = document.getElementsByTagName('script')[0];
x.parentNode.insertBefore(s, x);
})();
</script>
But here comes our problem:
The merchant needs to extract ORDER_VALUE and ODER_ID from he's webshop and put it into the script.
But he do not know where to find that information.
I'm trying to help him by learning myself were to find it.
Does anyon know where to find that information so we can get it to work?
Thanks for the help!
Best regards,
Christoffer Jensen
May I know on which page you are using this script? Is it product page or the order success page?
For which version of Magento do you want to use it? (1x or 2x)
Hey Muk_T.
The script is going to be on the success page and its Magento 1x.