Subscribe to 1ShopCart AR based on aMember Product??

Discussion in 'Customization & add-ons' started by tim_erwa1, Jun 4, 2007.

  1. tim_erwa1

    tim_erwa1 New Member

    Joined:
    Aug 22, 2006
    Messages:
    7
    I am not a programmer so bare with me...

    The code below is from the site.inc.php file that tells 1shopping cart what AutoResponder to put the prospect in...

    My question is how can I say... if product_id 5 place in AR #1 - - if product_id 6 place in AR #2?

    Can anyone help me please. :confused:

    Thanks in advance. :D

    setup_plugin_hook("finish_waiting_payment", "fwp");
    function fwp($payment_id){
    global $db;
    $payment = $db->get_payment($payment_id);
    if($payment[product_id]!=5) return;
    $user = $db->get_user($payment[member_id]);
    $vars = array(
    'merchantid' => 'xxxxxx',
    'ARThankyouURL' => 'http://www.meetingwiththemasters.com/members/xxx.php',
    'copyarresponse' => 0,
    'defaultar' => '169982',
    'requiredfields' =>'Name,Email1',
    'visiblefields' => 'Name,Email1',
    'Name' => $user[name_f]." ".$user[name_l],
    'Email1' => $user,
    'cmdSubmit' => 1
    );
    foreach($vars as $k=>$v){
    $varsx[] = $k."=".urlencode($v);
    }
    $varsl = join("&", $varsx);
    //print $varsl;
    get_url("http://www.mcssl.com/app/contactsave.asp", $varsl);
    }

    ?>

    Jesse P. Jameson
  2. alex

    alex aMember Pro Customer Staff Member

    Joined:
    Jan 24, 2004
    Messages:
    6,021
    Please contact us via helpdesk with this question.

Share This Page