Цитата |
---|
CATALOG_<CATALOG_FIELD>_<PRICE_TYPE> - по полю CATALOG_FIELD из цены типа PRICE_TYPE (ID типа цены), где CATALOG_FIELD может быть: PRICE - цена, CURRENCY - валюта. |
Код |
---|
$arSelect = array( "ID", "NAME", "PREVIEW_TEXT", "PREVIEW_PICTURE", "PROPERTY_PRICE", "CATALOG_1_PRICE" ); |
Код |
---|
<?$arOrder = Array("catalog_PRICE_3" => "ASC"); $arFilter = Array("IBLOCK_ID" => 14,">catalog_PRICE_3" => 0); $arSelectFields = Array(); $res = CIBlockElement::GetList($arOrder, $arFilter, false, false, $arSelectFields); while($ob = $res->GetNextElement()) { $arFields = $ob->GetFields(); print_r($arFields); $arProps = $ob->GetProperties(); print_r($arProps); } ?> |
Код |
---|
<?$myArrFilter = array(">catalog_PRICE_3" => 0);?> <?$APPLICATION->IncludeComponent( "bitrix:catalog", "catalog", Array( "IBLOCK_TYPE" => "catalog", "IBLOCK_ID" => "14", "BASKET_URL" => "/personal/cart/", "ACTION_VARIABLE" => "action", "PRODUCT_ID_VARIABLE" => "id", "SECTION_ID_VARIABLE" => "SECTION_ID", "USE_FILTER" => "Y", "FILTER_NAME" => "myArrFilter", "PAGE_ELEMENT_COUNT" => "10", "LINE_ELEMENT_COUNT" => "1", "ELEMENT_SORT_FIELD" => "catalog_PRICE_3", "ELEMENT_SORT_ORDER" => "ASC") );?> |