Method |
Description |
|
Amount ( ) |
This function is always called to determine the
amount this modifier needs to charge or deduct. |
|
IsChargable ( ) : boolean |
Checks if this modifier has type = Chargable |
|
TableValue ( ) |
Monetary to use in templates. |
|
Total ( ) : boolean |
Provides a modifier total that is positive or negative, depending on whether the modifier is chargable or not. |
|
canRemove ( ) : boolean |
Checks if the modifier can be removed. |
|
modify ( $subtotal, $forcecalculation = false ) |
Modifies the incoming value by adding,
subtracting or ignoring the value this modifier calculates. |
|
required ( ) |
Specifies whether this modifier is always required in an order. |
|
valid ( ) |
Check if the modifier should be in the cart. |
|
value ( float $incoming ) |
Calculates value to store, based on incoming running total. |
|