My question is below and is about placing code in tpl_footer to track affiliates
Ok, I have aquestion; effectively I have reached the stage where POR are acknowledging an order, but they are not getting the detail they require- To give as much detail as possible,
Here were the instructions received from POR- XXX is my store code
Key
----
CUSTOM-1 Some kind of *unique* reference for the current sale, which helps you tie the sale back into your system to help checking of pending sales.
CUSTOM-2 Same as before, doesn't have to be unique, this is optional. Again just allows you to use data which can help you tie the pending sale back.
TOTAL Total value of the sale
VOUCHERCODE This is an optional field to allow you to send us the voucher used by the customer, see PDF sent with the tracking code, if not used please remove the tag.
* Suggestions *
For the CUSTOM-1 we recommend you use the order number which should be unique
For CUSTOM-2 this is optional and doesn't have to be unique, maybe list the products ordered or even the customers name
Both the contents of these fields will be displayed within the Pending Sales in your Control Panel this end, so you can tell one sale from another. They have no other use this end.
<!-- Paid on Results Tracking Code, 08/07/2003 -->
<script language=JavaScript src="https://secure.paidonresults.net/cgi-bin/create-sale2.pl?client=java&merchant_id=XXX&country=GB&sale_id=CUSTOM-1&primary=sale_id&sale_data=CUSTOM-2&P1=1,TOTAL&vouchercode=VOUCHERCODE"></script>
<noscript><img src="https://secure.paidonresults.net/cgi-bin/create-sale2.pl?client=img&merchant_id=XXX&country=GB&sale_id=CUSTOM-1&primary=sale_id&sale_data=CUSTOM-2&P1=1,TOTAL&vouchercode=VOUCHERCODE" width="10" height="10" border="0"></noscript>
<!-- Paid on Results Tracking Code, 08/07/2003 -->
And this is what I have implemented,
<!-- Paid on Results Tracking Code, 08/07/2003 -->
<script language=JavaScript src="https://secure.paidonresults.net/cgi-bin/create-sale2.pl?client=java&merchant_id=XXX&country=GB&sale_id=$order_summary['order_number'];
&primary=sale_id&sale_data=$order_summary['customers_lastname']&P1=1,$order_summary['order_subtotal'];
"></script>
<noscript><img src="https://secure.paidonresults.net/cgi-bin/create-sale2.pl?client=img&merchant_id=XXX&country=GB&sale_id=$order_summary['order_number'];
&primary=sale_id&sale_data=$order_summary['customers_lastname']&P1=1,$order_summary['order_subtotal'];
" width="10" height="10" border="0"></noscript>
<!-- Paid on Results Tracking Code, 08/07/2003 -->
So it would seem that I am not using the correct variables??
So it is clear, I need Order Number, Order Subtotal (i.e. without Shipping and VAT) and Customers Name
Anyone help?
Thanks
Andy



