Does anyone know the code to integrate with your affiliate program for the total cost of the order, minus the postage cost ??
Announcement
Collapse
No announcement yet.
Affiliate Integration Amount Before Postage
Collapse
X
-
The NETQUOTEVAR:ACTINICORDERTOTAL gives the total pre-shipping cost in pence. We amended the order perl script to create another NQV of ACTINICORDERTOTAL divided by 100. We then use this NQV in Act_Order04.html to pass the pre-vat, pre-postage total to the affiliate scheme.Mike Julien
www.wheesh.com
Comment
-
Hi Mike. Can you tell us what actual changes you made to the order perl script please? And also how you use it in Act_Order04.html?
Any help would be much appreciated!Amin Motin
First Choice Aquatics Ltd
0870 8964698
Offering a fine range of high quality branded aquarium and pond products
Comment
-
In orderscript.pl the relevant part now reads
# send the total as an integer in the currency base unit
# e.g. "512834"
#
$::s_VariableTable{$::VARPREFIX.'ACTINICORDERTOTAL'} = $nTotal;
#
# send the total as an integer in the currency base unit
# e.g. "5128.34" as inserted by MDJ for affiliate tracking
#
$::s_VariableTable{$::VARPREFIX.'ACTINICORDERTOTAL100'} = $nSubTotal/100;
#
# send the total as a formatted string
# e.g. "$5,128.34"
You can then use the NETQUOTEVAR:ACTINICORDERTOTAL100 in Act_Order04Mike Julien
www.wheesh.com
Comment
Comment