Ok get the file from hre
http://jam.jrox.com/v1/updates/zenca...r_override.zip

then

#

Once you have downloaded this file, open up the tpl_footer.php file, and edit the following 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_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;

}

$JAM->MoveNext();

}

$commissionable_order = ($order_subtotal - $coupon_amount - $group_pricing_amount);

$commissionable_order = number_format($commissionable_order,2,'.',',');

echo "<script language=\"JavaScript\" type=\"text/javascript\" src=\"http://www.yourdomain.com/affiliates/sale.php?amount=$commissionable_order&trans_id=$orders_id\"></script></td></tr>

</table>";

}

#######################################

## END JAM INTEGRATION WITH ZEN CART ##

#######################################




#

Change www.yourdomain.com/affiliates to point to your affiliate URL.

#

Save the file, and upload it to your template directory: /includes/templates/custom/checkout_succes/tpl_footer.php. custom is your template directory that you are currently using. Also, if there is no checkout_success folder there, just create it, and upload tpl_footer.php into it.

#

You will now have JAM integrated into Zen Cart.