Basic idevaffiliate integration with amember question

Discussion in 'Integration' started by mrwelter, Jan 16, 2009.

  1. mrwelter

    mrwelter New Member

    Joined:
    Dec 16, 2008
    Messages:
    2
    I am trying to integrate idevaffiliate with amember pro. I am having some issues when trying to figure things out.

    I have two different pieces of code to add to 2 different amember pages to complete this integration.



    It says the following on the integration instructions page in the idevaffiliate control panel.

    1.
    Edit this file: /amember/thanks.php.

    2. Cut/Paste the following code at the bottom of the file (just above the bracket: ?>).

    $idev_saleamt = $pm['amount']; $idev_ordernum = $pm['receipt_id']; print "<img border=\"0\" src=\"http://www.MYWEBSITE.com/idevaffiliate/sale.php?profile=12&idev_saleamt=$idev_saleamt&idev_ordernum=$idev_ordernum\" width=\"1\" height=\"1\">";
    Make sure the above path is correctly pointing to your installation folder/directory.

    3. Edit this file: /amember/plugins/payment/cc_core/cc.php

    4. Find the following code that already exists in the file.

    $t->assign('subtotal', $subtotal);
    $t->assign('total', array_sum($prices));
    $t->assign('products', $pr);
    $t->display("thanks.html");

    5. Cut/Paste the following code into the file (directly under the code in step #4).

    $idev_saleamt = $payment['amount']; $idev_ordernum = $receipt_id; print "<img border=\"0\" src=\"http://www.MYWEBSITE.com/idevaffiliate/sale.php?profile=12&idev_saleamt=$idev_saleamt&idev_ordernum=$idev_ordernum\" width=\"1\" height=\"1\">";
    Make sure the above path is correctly pointing to your installation folder/directory.

    ...............................................


    I am assuming I need to customize the code in respect to order number and sale amount.

    If my product costs 29.95, should I add 29.95 to the code and exactly where in the code do I add it,(what do I delete when adding, please show example, do I need the $ sign?...)

    What is the order number? wouldn't this change for each customer? or is the order number my order number from purchasing idevaffiliate?

Share This Page