Documentation

DiscountManager

DiscountManager - class for handling discounts within orders.

Class methods

MethodDescription Available from version
applyDiscountUsed for calculating product discounts when placing and editing an order.
calculateApplyCouponsApplies discounts to shopping cart products using the passed coupons. Intended for calculating coupon discounts, added to an already existing order.
catalogDiscountManagerReturns methods, required for handling product discounts within an order.
extendOrderDataAdds data (necessary for applying shopping cart rules) to products in shopping cart.
getEditUrlReturns URL for a product discount edit page in the site admin section.
prepareDataReturns discount data, necessary for further use within a created order.
roundPriceRounds off price for a product in shopping cart.
roundBasketRounds off prices in shopping cart and returns array of prices.
clearProductPropertiesCacheClears product properties cache.
clearProductsCacheClears product cache.
clearProductPricesCacheClears product prices cache.


© «Bitrix24», 2001-2024
Up