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?
