DiscountManager
DiscountManager - class for handling discounts within orders.
Class methods
Method | Description | Available from version |
---|---|---|
applyDiscount | Used for calculating product discounts when placing and editing an order. | |
calculateApplyCoupons | Applies discounts to shopping cart products using the passed coupons. Intended for calculating coupon discounts, added to an already existing order. | |
catalogDiscountManager | Returns methods, required for handling product discounts within an order. | |
extendOrderData | Adds data (necessary for applying shopping cart rules) to products in shopping cart. | |
getEditUrl | Returns URL for a product discount edit page in the site admin section. | |
prepareData | Returns discount data, necessary for further use within a created order. | |
roundPrice | Rounds off price for a product in shopping cart. | |
roundBasket | Rounds off prices in shopping cart and returns array of prices. | |
clearProductPropertiesCache | Clears product properties cache. | |
clearProductsCache | Clears product cache. | |
clearProductPricesCache | Clears product prices cache. |
© «Bitrix24», 2001-2024