Here is the integration code for ANOTHER affiliate software package called JAM by JROX.
Your affiliate team may be able to work out what needs to be done.
PHP Code:
##########################################
## START JAM INTEGRATION WITH ZEN CART ##
## ZC Integration code by DrByte 8/2006 ##
##########################################
if ((int)$orders_id > 0) {
$JAM = $db->Execute("select class, value from " . TABLE_ORDERS_TOTAL . " where orders_id = '".(int)$orders_id."' AND class in ('ot_coupon', 'ot_gv', 'ot_subtotal', 'ot_group_pricing')");
while (!$JAM->EOF) {
switch ($JAM->fields['class']) {
case 'ot_subtotal':
$order_subtotal = $JAM->fields['value'];
break;
case 'ot_coupon':
$coupon_amount = $JAM->fields['value'];
break;
case 'ot_group_pricing':
$group_pricing_amount = $JAM->fields['value'];
break;
case 'ot_gv':
$gv_amount = $JAM->fields['value'];
break;
}
$JAM->MoveNext();
}
$commissionable_order = ($order_subtotal - $gv_amount - $coupon_amount - $group_pricing_amount);
$commissionable_order = number_format($commissionable_order,2,'.','');
echo "<script language=\"JavaScript\" type=\"text/javascript\" src=\"https://www.sa-shop.co.uk/jamaffiliates/sale.php?amount=$commissionable_order&trans_id=$orders_id\"></script></td></tr>
</table>";
}
#######################################
## END JAM INTEGRATION WITH ZEN CART ##
#######################################
?>
Furthermore, you may need to consider the following:-
With JAM, the integration code is NOT put into the chackout success page, but into a CUSTOM tpl_footer.php page.
You may need to do something similar. (But don't take my word for it... this is what we do for JAM JROX)
You make a COPY of tpl_footer from:-
includes/templates/template_default/common/tpl_footer.php
and place this copy in
/public_html/includes/templates/YOUR_TEMPLATE/checkout_success/tpl_footer.php
(So you create a page over-ride FOLDER called checkout_success, in your overrides folder)
You paste your affiliate integration code at the BOTTOM of this custom tpl_footer.php file .