[], 'filter' => ['skuPropertyId' => 0], 'order' => [ 'id' => 'desc', ] ] ); if ( !empty($result_catalog_catalog_list["error"]) ) { $errMess = "[".$result_catalog_catalog_list["error"]."]".$result_catalog_catalog_list["error_description"]; throw new \Exception($errMess); } $catalogIblockId = $result_catalog_catalog_list["result"]["catalogs"][0]["iblockId"]; $result_catalog_productProperty_list = CRest::call( 'catalog.productProperty.list', [ "filter" => [ "iblockId" => $catalogIblockId, "propertyType" => ["S", "L", "N"] ] ] ); $result_catalog_section_list = CRest::call( "catalog.section.list", [ 'select' => ["id", "name", "sort"], 'filter' => [ "iblockId" => $catalogIblockId, ], 'order' => [ 'name' => 'ASC' ] ] ); $arCatalogSections = $result_catalog_section_list["result"]["sections"]; $arSectionsById = array_column($arCatalogSections, null, "id"); $result_catalog_catalog_get = CRest::call( 'catalog.catalog.get', [ 'id' => $catalogIblockId, ] ); $catalogVatId = $result_catalog_catalog_get["result"]["catalog"]["vatId"]; //catalog.vat.list $resultCatalogVatList = CRest::call( 'catalog.vat.list', [ 'select' => [ 'id', 'name', 'rate' ], 'filter' => [ 'active' => 'Y' ], 'order' => [ 'id' => 'ASC' ] ] ); ?>

*/?> ".$text.""; echo $MESS["VAT_DOES_NOT_SET"].". ".$ancor; } ?>

$MESS["PLSMNT_TH_PRODUCT"], "id" => "FIELD_NAME", "is_field" => true, "listType" => null ], [ "name" => $MESS["PLSMNT_TH_PRICE"], "id" => "FIELD_PRICE", "is_field" => true, "listType" => null ], [ "name" => $MESS["PLSMNT_TH_COUNT"], "id"=>"FIELD_KOLVO", "is_field" => true, "listType" => null ], [ "name"=>$MESS["PLSMNT_TH_SUMA"], "id"=>"FIELD_SUMA", "is_field" => true, "listType" => null ] ]; $arPropDesc = array_merge($arPropDesc, $result_catalog_productProperty_list["result"]["productProperties"]); $arSort = is_array($appOptions["sort"]) ? $appOptions["sort"] : []; foreach ( $arPropDesc as &$field ) { $sort = 0; if ( array_key_exists($field["id"], $arSort)) { $sort = $arSort[$field["id"]]; } $field["sort"] = $sort; } unset($field); usort($arPropDesc, function($a, $b) { // Если оба 0 — равны if ($a['sort'] == 0 && $b['sort'] == 0) { return 0; } // Если в $a sort=0 → $a в конец if ($a['sort'] == 0) { return 1; } // Если в $b sort=0 → $b в конец if ($b['sort'] == 0) { return -1; } // Иначе обычное сравнение return $a['sort'] <=> $b['sort']; }); ?>

$propDesc ) { $disabled = ""; $checked = in_array("PROPERTY_".$propDesc["id"], $appOptions["properties_viewed"]) ? "checked" : ""; if ( isset($propDesc["is_field"]) && $propDesc["is_field"]===true ) { $disabled = "disabled"; $checked = "checked"; } ?> $MESS["FUNCTION_COMMENT"] ]; } elseif($propDesc["listType"] == "L" && $propDesc["propertyType"]=="L" && $propDesc["userType"] == "" ) { $type = $MESS["TYPE_LIST"]; $functions = [ "search" => $MESS["FUNCTION_SEARCH"], ]; } elseif($propDesc["listType"] == "C" && $propDesc["propertyType"]=="L" && $propDesc["userType"] == "") { $type = $MESS["TYPE_BOOL"]; } elseif($propDesc["listType"] == "L" && $propDesc["propertyType"]=="S" && $propDesc["userType"] == "Money" ) { $type = $MESS["TYPE_MONEY"]; $functions = [ "cost" => $MESS["FUNCTION_COST"], "marga" => $MESS["FUNCTION_MARGA"] ]; } elseif($propDesc["listType"] == "L" && $propDesc["propertyType"]=="N" && $propDesc["userType"] == "" ) { $type = $MESS["TYPE_NUMBER"]; } $sort = $propDesc["sort"]; ?>

".$e->getMessage().""; } ?>