Hi,
The affiliate module 2.8.1 works well. However, if a payment service provider is used it generally fails to add the sales record because session values are lost when the customer leaves the osc site and moves to the payment service provider's pages. You can test this by allowing Cash on Delivery payments, for your site, and see if the sales record is then updated.
The PayPal fix is as follows: this is not my fix but was posted by pbirm on the 4 Nov 2007
To combine the two, open /includes/modules/payment/paypal_ipn.ph.
*********************************************
Find this code around line 76:
function confirmation() {
global $cartID, $cart_PayPal_IPN_ID, $customer_id, $languages_id, $insert_id, $order, $order_total_modules;
directly below add this code:
global $affiliate_ref, $affiliate_clientdate, $affiliate_clientbrowser, $affiliate_clientip, $affiliate_clickthroughs_id, $HTTP_SESSION_VARS;
*********************************************
Find this code around line 245:
tep_session_register('cart_PayPal_IPN_ID');
$cart_PayPal_IPN_ID = $cartID . '-' . $insert_id;
}
}
return false;
}
and change to:
tep_session_register('cart_PayPal_IPN_ID');
$cart_PayPal_IPN_ID = $cartID . '-' . $insert_id;
}
}
// Include OSC-AFFILIATE
require(DIR_WS_INCLUDES . 'affiliate_checkout_process.php');
return false;
}
*********************************************
I have also been able to get the module to work with WorldPay. If anybody would like this fix please let me know and I will post here.