CartConditionHelper
trait CartConditionHelper
Properties
protected Collection | $actionCollection |
Methods
No description
Added for backward compatibility
No description
No description
No description
Removes some arithmetic signs (%,+,-, /, *) only
No description
No description
No description
No description
No description
Check if value is a percentage
Check if value is a subtract
Check if value is to be added
Check if value is to be added
Check if value is to be added
No description
Details
at line 14
protected
validate($rules)
No description
at line 35
protected float|string
processValue($subTotal)
Added for backward compatibility
at line 40
protected
processActionValue($action, $total)
No description
at line 62
protected
calculateActionValue($action, $total)
No description
at line 96
protected
actionHasReachedMax($actionMax, $value)
No description
at line 109
protected mixed
cleanValue($value)
Removes some arithmetic signs (%,+,-, /, *) only
at line 114
protected
operandValue($key)
No description
at line 125
protected
ruleIsValid($rule)
No description
at line 151
protected
parseRule($rule)
No description
at line 163
protected
parseAction($action)
No description
at line 174
protected
actionIsInclusive($action)
No description
at line 186
protected bool
valueIsPercentage($value)
Check if value is a percentage
at line 198
protected bool
valueIsToBeSubtracted($value)
Check if value is a subtract
at line 210
protected bool
valueIsToBeAdded($value)
Check if value is to be added
at line 222
protected bool
valueIsToBeMultiplied($value)
Check if value is to be added
at line 234
protected bool
valueIsToBeDivided($value)
Check if value is to be added
at line 243
protected
getSessionKey()
No description