本文整理汇总了PHP中CCatalogDiscount::GetCoupons方法的典型用法代码示例。如果您正苦于以下问题:PHP CCatalogDiscount::GetCoupons方法的具体用法?PHP CCatalogDiscount::GetCoupons怎么用?PHP CCatalogDiscount::GetCoupons使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类CCatalogDiscount
的用法示例。
在下文中一共展示了CCatalogDiscount::GetCoupons方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: DoubleVal
}
$arResult["DISCOUNT_PERCENT_FORMATED"] = DoubleVal($arResult["DISCOUNT_PERCENT"]) . "%";
} else {
$arResult["DISCOUNT_PRICE"] = CCurrencyRates::ConvertCurrency($arMinDiscount["DISCOUNT_VALUE"], $arMinDiscount["CURRENCY"], $allCurrency);
$arResult["DISCOUNT_PRICE"] = roundEx($arResult["DISCOUNT_PRICE"], SALE_VALUE_PRECISION);
}
$allSum = $allSum - $arResult["DISCOUNT_PRICE"];
}
$DISCOUNT_PRICE_ALL += $arResult["DISCOUNT_PRICE"];
$arResult["allSum"] = $allSum;
$arResult["allWeight"] = $allWeight;
$arResult["allWeight_FORMATED"] = roundEx(DoubleVal($allWeight / $arParams["WEIGHT_KOEF"]), SALE_VALUE_PRECISION) . " " . $arParams["WEIGHT_UNIT"];
$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"] = htmlspecialcharsbx($arCoupons[0]);
}
if (count($arBasketItems) <= 0) {
$arResult["ERROR_MESSAGE"] = GetMessage("SALE_EMPTY_BASKET");
}
$arResult["DISCOUNT_PRICE_ALL"] = $DISCOUNT_PRICE_ALL;
$arResult["DISCOUNT_PRICE_ALL_FORMATED"] = SaleFormatCurrency($DISCOUNT_PRICE_ALL, $allCurrency);
$this->IncludeComponentTemplate();