Property | Description | Returns |
---|---|---|
productId | Gets the product ID for this action. | int |
displayType | Returns the nice name of an action type | string |
type | Returns the type of condition | string |
snakeType | Returns the type of condition in the snake case format: lowercase and connected by underline | string |
slugType | Returns the type of condition in the slug format: lowercase and connected by hyphen | string |
id | int | |
name | string | |
value | string | |
modifier | string | |
valueModifier | Returns if the modifier set to the exact value | bool |
percentModifier | Returns if the modifier set to the percent value | bool |
waterfall | When `true` every following discount applies to the previously discounted price, when `false` discount is applied to the original item price | bool |
data | array | |
created | Date the record was created. | DateTime |
modified | Last modification date for the record. | DateTime |
rule | Rule |
Discounts\Models\Api\ProductAction
Product action applies a discount to specific products in the cart.