I have installed iDev Affiliate Gold 6.0 and have run into a few problems.

1. My CSS on the checkout_success.php page is off now, my text is big and the site is left aligned instead of centered.

2. Each affiliate trans generates a duplicate commission with duplicate order ID.

(I emailed about the above problems and am waiting to hear back)

My main concern is I want to eliminate some products from generating commission. I watched their video and looked at the doc, but I think something is off.

I am pasting this into inc/mod/pages/checkout_success/header_php.php

Code:
$idev_commission = '';
if($idev->fields['products_id'] == '22') {
$idev_commission = '&idev_commission=0.00';
}

$idev = $db->Execute("select * from " . TABLE_ORDERS_TOTAL . " where orders_id = '".(int)$orders->fields['orders_id']."' AND class = 'ot_subtotal'");
$idev_saleamt = (number_format($idev->fields['value'],2));
$idev_ordernum = $idev->fields['orders_id'];
print "<script language=\"JavaScript\" type=\"text/javascript\" src=\"https://www.brightideaspress.com/store/affiliates/sale.php?profile=13&idev_saleamt=$idev_saleamt&idev_ordernum=$idev_ordernum$idev_commission\"></script>";
I was testing to see if products ID 22 would not generate a commission, as I had hoped. No such luck. No errors, but a commission was generated.

Any ideas? Thanks in advance!