Affiliate Software Documentation
Commission Integration with Virtuemart 2.x
To integrate Affiliate Manager with Virtuemart 2.x, please follow these steps:
1. Open up the file /plugins/vmpayment/standard/standard.php
2. Add the following code in the correct line:
$modelOrder->updateStatusForOneOrder($order['details']['BT']->virtuemart_order_id, $order, true);
// START JAM INTEGRATION $jrox_amount = $order['details']['BT']->order_subtotal; $jrox_trans_id = $order['details']['BT']->order_number; echo '<img src="http://www.yourdomain.com/affiliates/sale/' . $jrox_amount . '/trans_id/' . $jrox_trans_id . '" alt="" width="1" height="1" border="0" />'; //END JAM INTEGRATION
3. make sure to change the "yourdomain.com/affiliates" to point to your real JAM installation URL.