This takes me back several years, but I've had this on my hard drive since 2006 or so... I was considering IDEV at the time.
I am NOT SURE if this is relevant, but here it is anyway:
Code:
--------------------------------------------
Add iDevAffiliate to your Zen Cart-
--------------------------------------------
1. Login to your iDevAffiliate Admin Center and click on Cart Integration.
2. Pick the Automatic Integration Method and continue to the next page.
3. Choose Zen Cart in the dropdown menu then click Update And Continue To Next Page.
4. Follow the instructions on the next page (Processing Code).
--------------------------------------------
These instructions are listed below as well.
--------------------------------------------
1. Copy this file: /includes/templates/template_default/templates/tpl_checkout_success_default.php.
2. Find the following code which already exists in the file.
<?php echo TEXT_YOUR_ORDER_NUMBER . $zv_orders_id; ?>
3. Cut/Paste the following code into the file (under the code above).
<?
$idev = $db->Execute("select * from " . TABLE_ORDERS_TOTAL . " where orders_id = '".(int)$orders->fields['orders_id']."' AND class = 'ot_subtotal'");
$idev_zen_1 = (number_format($idev->fields['value'],2));
$idev_zen_2 = $idev->fields['orders_id'];
print "<script language=JavaScript type=text/javascript src=http://www.yoursite.com/idevaffiliate/sale.php?idev_zen_1=$idev_zen_1&idev_zen_2=$idev_zen_2></script>";
?>
4. Save the file to your custom template. /includes/templates/YOUR_TEMPLATE/templates/
--------------------------------------------
Notes.
--------------------------------------------
Be sure to adjust the path in step #3 so it correctly points to your iDevAffiliate installation location.