Location: PHPKode > projects > MembersGear > membersgear/includes/is_upsell_price_is_ok.php
<?php
  require_once("../config/config.php");
  require_once INCLUDE_DIR."/upsell_product_class.php";
  require_once INCLUDE_DIR."/product_class.php";  
  $upsell_obj=new upsell_product_class();
  $product_class=new product_class();
  
  if(isset($_POST))
  {
    $FirstLevelProductId=$_POST['FirstLevelProductId'];
    $SecondLevelProductId=$_POST['SecondLevelProductId'];
    $ThirdLevelProductId=$_POST['ThirdLevelProductId'];
  
    $main_pro_id=$_POST['main_product_id'];
    $productInfo=$product_class->GetSpecificProduct($main_pro_id);
    $mainProduct_paygear_proId=$productInfo[0]['paygear_productid'];
     
    if($FirstLevelProductId!=0)
     {
        $productInfo=$product_class->GetSpecificProduct($FirstLevelProductId); 
        $FirstLevelProductId=$productInfo[0]['paygear_productid'];
     }   
     if($SecondLevelProductId!=0)
     {
        $productInfo=$product_class->GetSpecificProduct($SecondLevelProductId); 
        $SecondLevelProductId=$productInfo[0]['paygear_productid'];
     }  
     if($ThirdLevelProductId!=0)
     {
        $productInfo=$product_class->GetSpecificProduct($ThirdLevelProductId); 
        $ThirdLevelProductId=$productInfo[0]['paygear_productid'];
     }               
   
     $result=$PaygearWebserviceClient->IsUpsellProductsPriceOver_10000($mainProduct_paygear_proId,$FirstLevelProductId,$SecondLevelProductId,$ThirdLevelProductId);
   
     echo $result;
     exit;
  }
?>
Return current item: MembersGear