This is an old revision of the document!
Add sum total from order into the variable for affiliate program at sendmail.php (on all three sub sites).
// As I understand, the name of variable which should be added can't be arbitrary. But there is no free accessible documentation on this issue, at least for unregistered users. And there is no free access to web forms builder, suggested by aweber.com for pages composition. Do you have documentation or any information about naming variable that should be added? //
var sale = PostAffTracker.createSale();
sale.setTotalCost('{order_total}');
sale.setOrderID('ORD_12345XYZ');
sale.setProductID('Navnelapper');
The system developer is http://www.qualityunit.com/postaffiliate/ and I have a purchased registered pro 4 version. Correct link to affiliate software http://www.qualityunit.com/postaffiliatepro/
Script for PostAffiliate Pro integration is:
<script id=“pap_x2s6df8d” src=“{host_name}/affiliate/scripts/salejs.php” type=“text/javascript”></script> <script type=“text/javascript”> var sale = PostAffTracker.createSale(); sale.setTotalCost('{order_total}'); sale.setOrderID('{order_id}'); sale.setProductID('{product_id}'); PostAffTracker.register(); </script>
I use following variables (given in {}):
{order_total} is total sum for ordered labels;
{order_id} is the file name of first label in order (without '_p.jpg' suffix), hope, it take a sense;
{product_id} - string from settings file ('Navnelapper');
{host_name} - project virtual host name - string from setting file;
I do not see how I can install it in root. It is installed in www.merkalt.no/partner/ to maintain some control over files. Cant we keep it that way?
I think, PostAffiliate Pro package is need to be installed into root directory before I shall upload changed scripts and templates. Could you install it into root directory of merkalt.no, please?
//
When sales are comming through affiliate program the order ID is no longer visable.
Total ordreverdi: 89
Provisjon for affiliate: 26.7
Ordre ID: ORD_12345XYZ
Produkt ID: ID-baand
IP adresse: 216.104.15.134
Referrer Url:
Where it says “ORD_12345XYZ” I think it once was the picture ID number? Is that right? Did you changes it back now? The last order that came through was with ORD_12345XYZ //
It was completely my initiative to change “ORD_12345XYZ” to picture ID (first in order). So I had turned it off before uploading on live site because of order ID in code of sendmail_footer.tpl had been “ORD_12345XYZ”. If you need to have picture ID in order ID field, I can quickly turn it on again.
// It looks better if the order number is something unique. So if you could turn it back on it would be great. //
