In dioscouri site they have this integration instructions for amigos with any shopping cart.
There are two parts to integration
keeping track of the affiliate that referred the shopper and
sending AMIGOS information about every sale
Part 1: Keeping Track of the Affiliate that Referred the Shopper
If you're not using the Amigos system plugin (which will be true of all non-Joomla sites), then this code should be inserted at the top/bottom of your index.php page (if you have one) or whichever page serves as your website's entry point (index.html or whatever). If you don't have a single entry point, then insert this code at the top/bottom of your homepage.
Code:
$amigosid = $_REQUEST['amigosid'];
$lifetime = time() + 365*24*60*60;
setcookie( 'amigosid', $amigosid, $lifetime, '/' );
?>
Part 2: Sending Amigos Information about Every Sale
There are two methods for sending Amigos information about every sale. One is to use a hidden image and the other is to use CURL (or the equivalent). If your shopping cart has a checkout 'success' page or some kind of post-checkout landing page where an order summary is displayed, that is the best place to put these.
OPTION 1: Hidden Image
Code:
img src="http://www.youramigosdomain.com/index.php?option=com_amigos&task=sale&amigosid=$GGG&amigos_ordertype=$XXX&amigos_orderid=$YYY&amigos_orderamount=$ZZZ&amigos_ipaddress=$NNN" width="1" border="0" height="1"
OPTION 2: CURL or the equivalent
Code:
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, "http://www.youramigosdomain.com/index.php?option=com_amigos&task=sale&amigosid=$GGG&amigos_ordertype=$XXX&amigos_orderid=$YYY&amigos_orderamount=$ZZZ&amigos_ipaddress=$NNN");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_exec($ch);
curl_close($ch);
?>
Note
In both cases, you will need to provide information in the url. Depending on the shopping cart you use, the variable names will change.
$GGG = the affiliate ID that referred the shopper. You could use $_REQUEST in php.
$XXX = the name of the shopping cart ('com_virtumart', or 'zencart', or 'magento', etc)
$YYY = the order number
$ZZZ = the order amount
$NNN = the IP address of the user. You could use $_SERVER in php.
Sample configuration
Code:
$GGG = $_REQUEST['amigosid'];
$XXX = 'shopping_cart_name';
$YYY = '1234';
$ZZZ = '99.99';
$NNN = $_SERVER['REMOTE_ADDR'];
img src="http://www.youramigosdomain.com/index.php?option=com_amigos&task=sale&amigosid=$GGG&amigos_ordertype=$XXX&amigos_orderid=$YYY&amigos_orderamount=$ZZZ&amigos_ipaddress=$NNN" width="1" border="0" height="1"
So i need your guideness in how to replace the tags
$XXX
$YYY
$ZZZ
$NNN
to give a try and check if it can work with cbsubs
looking forward for your answer