Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <div class="pricebl">
- <?
- $intIBlockID = 4;
- $mxResult = CCatalogSKU::GetInfoByProductIBlock(
- $intIBlockID
- );
- if (is_array($mxResult))
- {
- $rsOffers = CIBlockElement::GetList(array("PRICE"=>"ASC"),array('IBLOCK_ID' => $mxResult['IBLOCK_ID'], 'PROPERTY_'.$mxResult['SKU_PROPERTY_ID'] => $arElement["ID"]));
- while ($arOffer = $rsOffers->GetNext())
- {
- $ar_price = GetCatalogProductPrice($arOffer["ID"], 1);
- echo "<p>от ".$ar_price["PRICE"]." руб. </p>" ;
- break;
- }
- }
- ?>
- </div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement