function getItems() { $arItems = array(); $arSelect = array("ID"); $arFilter = $this->getFilter(); if ($this->getSectionID() > 0) { $arFilter['SECTION_ID'] = $this->getSectionID(); $arFilter['INCLUDE_SUBSECTIONS'] = "Y"; } $iBlock = new CIBlockElement(); $this->navResult = $res = $iBlock->GetList($this->getOrder(), $arFilter, false, array("nPageSize" => $this->limit), $arSelect); while ($arFields = $res->GetNext()) { $product = new AqwProduct(); $product->setItemID($arFields['ID']); $arItems[] = $product->getItem(); } return $arItems; }
<? $product = new AqwProduct(); $product->setItemID($arParams['ID']); $prices = $product->getCurrentPrice(); if(isset($prices[0])){ $CURRENT_PRICE = GetMessage("AQW_SHOP_ZAKAZATQ_OT") .implode(" ", $prices[0])."</b>" ; } else { $CURRENT_PRICE = GetMessage("AQW_SHOP_ZAKAZATQ"); } ?> <a data-toggle="modal" class="btn btn-primary btn-block product_order_show" data-id="<?php echo $arParams['ID']; ?> " href="#orderModal"> <?php echo $CURRENT_PRICE; ?> </a>