OrderDiscountTable
OrderDiscountTable class for handling table with discounts order's applied discounts.
Class methods
Method | Description | Available from version |
---|---|---|
calculateHash | Calculates hash amount for a discount. | |
calculateRuleHash | Calculates hash for fields CONDITIONS and ACTIONS . |
|
clearList | Deletes entries from table with order's applied discounts according to array $discount . |
|
getDiscountByHash | Returns discount ID by its hash amount. | |
getDiscountModules | Returns list of modules, required for handling discounts listed in the array $discount . |
|
getMap | Returns list of fields for table with order's applied discounts. | |
getTableName | Returns name for table with order's applied discounts. | |
prepareDiscountData | Prepares discount data for saving. | |
validateDiscountHash | Returns validator for the field DISCOUNT_HASH (discount hash amount). |
|
validateModuleId | Returns validator for the field MODULE_ID (module ID). |
|
validateName | Returns validator for the field NAME (discount name). |
© «Bitrix24», 2001-2024