<?php if(!defined("B_PROLOG_INCLUDED") || B_PROLOG_INCLUDED!==true) die();
$arSelect = Array("ID", "NEW_PRICE");
$arFilter = Array("IBLOCK_ID"=>6, "ACTIVE"=>"Y","ID"=>$_GET["prices"]);
$res = CIBlockElement::GetList(array("SORT" => "ASC"), $arFilter, false, Array("nPageSize"=>PHP_INT_MAX), $arSelect);
$prices = array();
while($ob = $res->GetNextElement())
{
$arFields = $ob->GetFields();
$prices[] = $arFields;
}
$arResult["PRICE_Q"] = $prices;
?>
<?if($arResult["PROPERTIES"]["PRICES"]["VALUE"] > 0){?>
<h4 class="text-center">Цены</h4>
<section class="bottommargin_30 row item-content ">
<div class="prom_beer_wrapper col-sm-12">
<ul class="list1 no-bullets">
<?foreach($arResult["PROPERTIES"]["PRICES"]["VALUE"] as $prices):?>
<?$res = CIBlockElement::GetByID($prices);?>
<?if($ar_res = $res->GetNext())?>
<li class="content-justify"><?=$ar_res["NAME"];?>
<?=$arResult["PRICE_Q"];?></li>
<?endforeach;?>
</ul>
</div>
</section>
<?}?>