项塍麒螯 鲥眢 蝾忄疣 膻犷 觐祜铐屙蝈

篷腓 蔓 桉镱朦珞弪 礤 觐祜铐屙 catalog 桦 桧 邈 痤漶蜮屙龛觐, 蝾 恹忸漕 鲥睇 玎 蝾忄, 祛驽 忸珥桕眢螯 铌噻. 枢 甯 疱螯 镳邃耱噔脲眍 耠邃簋 忤溴.

袜镳桁屦, 觐祜铐屙 bitrix.news:

function get_offer_min_price($item_id, $ib_id){
    $ret = 0;

    CModule::IncludeModule("iblock");
    CModule::IncludeModule("catalog");
    // ID 桧纛犭铌 蝾忄痤
    $IBLOCK_ID = $ib_id;
    $ID = $item_id;
    $arInfo = CCatalogSKU::GetInfoByProductIBlock($IBLOCK_ID);

    if (is_array($arInfo)) {
        $res = CIBlockElement::GetList(Array("PRICE"=>"asc"),
            array('IBLOCK_ID'=>$arInfo['IBLOCK_ID'], 'ACTIVE'=>'Y', 'PROPERTY_'.$arInfo['SKU_PROPERTY_ID'] => $ID),
            false,
            false,
            array('ID', 'NAME'))->GetNext();
        if ($res){
            $ret = GetCatalogProductPrice($res["ID"], 1);
            if ($ret['PRICE']){
                $ret = FormatCurrency(round($ret["PRICE"]), $ret["CURRENCY"]);;
            }
        }
    }
    return $ret;
}

玎牮

悟镳噔栩 玎怅

篷腓 黩-蝾 镱 礤 蜞, 桦 蔓 麇-蝾 礤 筲屦屙. 袜镳桁屦 耢脲 耦狁蜮屙眍 骅珥. 橡铖蝾 磬骒栩 磬 腩泐蜩 襦轵 镱怛铕栩 镱稃蜿. 愉圜!