Location: PHPKode > projects > MembersGear > membersgear/admin/admin_getupsellpageButtuns.php
<?php
    require_once "../config/config.php";
    require_once INCLUDE_DIR."/upsell_product_class.php";
    $upsell_obj=new upsell_product_class();

    if(isset($_GET['id']))
    {
        $paygear_upsell_pro_id=0;
        $paygear_upsell_pro_id=$_GET['id'];
        
        if(isset($_SESSION[SESSION_PREFIX."upsellbtns_".$_GET['id']]))
          $result=$_SESSION[SESSION_PREFIX."upsellbtns_".$_GET['id']]; 
        else
          {
            $result=$PaygearWebserviceClient->get_product_upsell_yes_no($paygear_upsell_pro_id); 
            $_SESSION[SESSION_PREFIX."upsellbtns_".$_GET['id']]=$result;
          }
        if($result!=false)
        {
              
              
              $upsell_pro_result=$upsell_obj->GetMainProductFromUpsellProduct($paygear_upsell_pro_id);
              $smarty->assign('upsellmainid',$upsell_pro_result[0]['mainproductid']); 
              $smarty->assign('yesbuttonHttp',$result[ArrayOfString][0]['string']); 
              $smarty->assign('nobuttonHttp',$result[ArrayOfString][1]['string']); 
              $smarty->assign('yesbuttonHttps',$result[ArrayOfString][2]['string']); 
              $smarty->assign('nobuttonHttps',$result[ArrayOfString][3]['string']); 
              $smarty->assign('isButtonFound','yes');   
              

        }
       else
       {
        $smarty->assign('msg','No upsell button found.');             
        $smarty->assign('err','true');   
       }
        $smarty->display('admin_getupsellpageButtuns.tpl'); 
        
    }



?>
Return current item: MembersGear