User Tools

Site Tools


merkalt:order_sum_total_for_affiliate_program

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
merkalt:order_sum_total_for_affiliate_program [2009/06/30 13:10] darumamerkalt:order_sum_total_for_affiliate_program [2009/07/08 11:30] (current) daruma
Line 10: Line 10:
 The system developer is http://www.qualityunit.com/postaffiliate/ and I have a purchased registered pro 4 version. 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/ 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. //
 +
 +Done. You could check it now.
merkalt/order_sum_total_for_affiliate_program.1246367403.txt.gz · Last modified: (external edit)