SHARE
TWEET

bitrix - CSaleOrderPropsValue

vladislavkopilov Oct 16th, 2015 (edited) 204 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. CModule::IncludeModule('sale');
  2. $ORDER_ID = 612;
  3. $PAYER_NAME = "";
  4. $db_order = CSaleOrder::GetList(
  5.         array("DATE_UPDATE" => "DESC"),
  6.         array("ID" => $ORDER_ID)
  7.     );
  8. while ($arOrder = $db_order->Fetch())
  9. {
  10.   //print_r($arOrder);
  11.    $db_props = CSaleOrderProps::GetList(
  12.         array("SORT" => "ASC"),
  13.         array(
  14.                 "PERSON_TYPE_ID" => $arOrder["PERSON_TYPE_ID"],
  15.  
  16.             )
  17.     );
  18.    while ($arProps = $db_props->Fetch())
  19.    {
  20.       $db_vals = CSaleOrderPropsValue::GetList(
  21.             array("SORT" => "ASC"),
  22.             array(
  23.                     "ORDER_ID" => $ORDER_ID,
  24.                     "ORDER_PROPS_ID" => $arProps["ID"]
  25.                 )
  26.         );
  27.      while($arVals = $db_vals->Fetch()){
  28.     print_r($arVals);
  29.     }
  30.  
  31.    }
  32. }
  33. echo "end";
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top