В компоненте корзины что-то вроде этого написать?
Код |
---|
if ($allSum < 500) {
echo "Сумма менее 500 рублей"; {
} else
$arResult["allSum"] = $allSum;
$arResult["allWeight"] = $allWeight;
$arResult["allSum_FORMATED"] = SaleFormatCurrency($allSum, $allCurrency);
$arResult["DISCOUNT_PRICE_FORMATED"] = SaleFormatCurrency($arResult["DISCOUNT_PRICE"], $allCurrency);
if ($arParams['PRICE_VAT_SHOW_VALUE'] == 'Y')
{
$arResult["allVATSum"] = $allVATSum;
$arResult["allVATSum_FORMATED"] = SaleFormatCurrency($allVATSum, $allCurrency);
$arResult["allSum_wVAT_FORMATED"] = SaleFormatCurrency($arResult["allSum_wVAT"], $allCurrency);
} |
if ($arParams["HIDE_COUPON"] != "Y")
$arCoupons = CCatalogDiscount::GetCoupons();
if (count($arCoupons) > 0)
$arResult["COUPON"] = htmlspecialchars($arCoupons[0]);
if(count($arBasketItems)<=0)
$arResult["ERROR_MESSAGE"] = GetMessage("SALE_EMPTY_BASKET");
//echo '<pre>'; print_r($arResult); echo '</pre>';
$this->IncludeComponentTemplate();
}
?>