-
-
Save d1i1m1o1n/0fb73df491d8fd3d8596 to your computer and use it in GitHub Desktop.
Bitrix: получение оптимальной цены (с учетом скидок) #snippet
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CModule::IncludeModule("catalog"); | |
global $USER; | |
//Цена | |
$arPrice = CCatalogProduct::GetOptimalPrice($arResult['ID'], 1, $USER->GetUserGroupArray()); | |
$arResult['PRICE'] = $arPrice; | |
$arResult['DISCOUNT_PRICE'] = SaleFormatCurrency($arPrice["DISCOUNT_PRICE"], $arPrice["RESULT_PRICE"]["CURRENCY"]); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment