Jump to content

Tracking code on order confirmation page


Recommended Posts

Hello everyone

I am trying to install a tracking code for an affiliate program that allows me to retrieve info from the order-confirmation page (that's where the code will be embedded) . this is the affiliate tracking code, do you know with what parameters i should replace the parameters inside the ' ' (the red text). What are the variables for this in prestashop? Thanks very much for your kind answers

<script type="text/javascript">

//<![CDATA[

/*** Do not change ***/

var AWIN = {};

AWIN.Tracking = {};

AWIN.Tracking.Sale = {};

 

/*** Set your transaction parameters ***/

AWIN.Tracking.Sale.amount = 'SALE_AMOUNT';

AWIN.Tracking.Sale.currency = 'GBP';

AWIN.Tracking.Sale.orderRef = 'ORDER_REF';

AWIN.Tracking.Sale.parts = 'COMMISSION_GROUP:SALE_AMOUNT';

AWIN.Tracking.Sale.voucher = 'VOUCHER_CODE';

AWIN.Tracking.Sale.test = '1';

//]]>

</script>

Link to comment
Share on other sites

  • 2 months later...
×
×
  • Create New...