OK... I think I have a solution!
1. CREATE A NEW FOLDER called checkout_success in the following path:
includes/templates/YOUR-TEMPLATE-NAME/checkout_success
2. FTP a COPY of the common tpl_footer.php file to your local machine:
includes/templates/template_default/common/tpl_footer.php
3. Open it for EDITING, using a plain text editor.
4. Right at the BOTTOM of that file, paste the following:
Code:
<script language="javascript" src="https://scripts.affiliatefuture.com/AFFunctions.js"></script>
<script language="javascript">
var merchantID = xxxx ;
var orderValue = '<?php echo $order_summary['commissionable_order'];?>';
var orderRef = '<?php echo $order_summary['order_number'];?>';
var payoutCodes = '';
var offlineCode = '';
AFProcessSaleV2(merchantID, orderValue, orderRef,payoutCodes,offlineCode);
</script>
(Remember to re-insert your merchantID and any other stuff you removed when posting the data on this forum)
5. SAVE the file on your hard drive.
6. FTP it to:
includes/templates/YOUR-TEMPLATE-NAME/checkout_success
So you now have it as follows:
includes/templates/YOUR-TEMPLATE-NAME/checkout_success/tpl_footer.php
Bookmarks