Jam Affiliate Integration

Hi, i have a queery. 

Im going to shortly attempt to integrate JAM AFFILIATE software with my dolphin installation.

The JAM instructions to integreate with any PHP script are:

1. Add this code to the THANK YOU page of the script? (The RETURN Page after payment)

<?php 
file_get_contents("http://www.yourdomain.com/affiliates/sale/amount/$AMOUNT/trans_id/$ORDERID");
?>

2. Change the $AMOUNT and the $ORDERID to reflect the script ie AUTO SCRIPT

Do you have an idea what i replace $AMOUNT and $ORDERID with?
and WHAT IS THE PAGE I NEED TO ADD THE CODE TO?

Then if someone sends a buyer to the script it can be tracked successfully. (IN JAM)

Hope this is understandable Thanks

PS Full jam integration instructions here:

http://jam.jrox.com/kb/article/commission-integration-using-a-php-code

Enhance Your Onlne Experience. 4eLife.com
Quote · 19 Feb 2013

 Try the following:

         $aResult = $oProvider->finalizeCheckout($aData);
        if((int)$aResult['code'] == 1) {

$aOrder = $this->_oDb->getPending(array('type' => 'id', 'id' => $aResult['pending_id'])); 
file_get_contents("http://www.yourdomain.com/affiliates/sale/amount/{$aOrder['amount']}/trans_id/{$aOrder['order']}");
$this->_oCart->updateInfo((int)$aResult['pending_id']); if($oProvider->needRedirect()) { header('Location: ' . $this->_oConfig->getReturnUrl()); exit; } }

in file - modules/boonex/payment/classes/BxPmtModule.php

Rules → http://www.boonex.com/terms
Quote · 20 Feb 2013
 
 
Below is the legacy version of the Boonex site, maintained for Dolphin.Pro 7.x support.
The new Dolphin solution is powered by UNA Community Management System.