Advertisement
kutepovea

bitrix order gifts

Jun 25th, 2019
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.71 KB | None | 0 0
  1. function ($arOrder) {
  2.     $salecond_0_0=function($row){
  3.         return
  4.         (
  5.             (
  6.                 (
  7.                     isset($row['CATALOG']['SECTION_ID']) && in_array(675, $row['CATALOG']['SECTION_ID'])
  8.                 )
  9.             )
  10.         ) || (
  11.             (
  12.                 (
  13.                     isset($row['CATALOG']['SECTION_ID']) && in_array(19282, $row['CATALOG']['SECTION_ID'])
  14.                 )
  15.             )
  16.         ) || (
  17.             (
  18.                 (
  19.                     isset($row['CATALOG']['SECTION_ID']) && in_array(415, $row['CATALOG']['SECTION_ID'])
  20.                 )
  21.             )
  22.         ) || (
  23.             (
  24.                 (
  25.                     isset($row['CATALOG']['SECTION_ID']) && in_array(16171, $row['CATALOG']['SECTION_ID'])
  26.                 )
  27.             )
  28.         );
  29.     };
  30.     $salecond_0_1=function($row){
  31.         return
  32.         (
  33.             (
  34.                 (
  35.                     isset($row['CATALOG']['PROPERTY_699_VALUE']) && in_array("3", $row['CATALOG']['PROPERTY_699_VALUE'])
  36.                 )
  37.             )
  38.         ) || (
  39.             (
  40.                 (
  41.                     isset($row['CATALOG']['PROPERTY_699_VALUE']) && in_array("3d", $row['CATALOG']['PROPERTY_699_VALUE'])
  42.                 )
  43.             )
  44.         );
  45.     };
  46.     return
  47.     (
  48.         (
  49.             (CSaleBasketFilter::ProductFilter($arOrder, $salecond_0_0)) && (CSaleBasketFilter::ProductFilter($arOrder, $salecond_0_1))
  50.             &&
  51.             (
  52.                 (
  53.                     (
  54.                         isset($arOrder['USER_GROUPS']) && ((!in_array(10, $arOrder['USER_GROUPS'])))
  55.                     )
  56.                 )
  57.             )
  58.         )
  59.     );
  60. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement