ShoppingCartItemCheckResult Methods |
The ShoppingCartItemCheckResult type exposes the following members.
Name | Description | |
---|---|---|
![]() | CombineWithResult |
Includes specified check result into this object in order to find the most restrictive values.
No action is taken when results belong to different SKUs.
|
![]() | GetFormattedMessage |
Returns formatted result message when check has failed. Message is HTML-formatted: each error on its own line.
Returns empty string if check passed.
|
![]() | GetMax |
Returns larger value from params. Values below 0 are considered to be "not specified".
|
![]() | GetMessage |
Returns check result formatted as string. Message contains individual
error messages separated with specified separator. Empty string is returned when no errors found.
|
![]() | GetMin |
Returns smaller value from params. Values below 0 are considered to be "not specified".
|
![]() | MarkMaxUnitsFailed |
Marks this result as "Maximum unit count not reached".
|
![]() | MarkMinUnitsFailed |
Marks this result as "Minimum unit count not reached".
|
![]() | MarkNotEnoughUnits |
Marks this result as "Not enough units available".
|
![]() | MarkOtherError |
Marks this result with error message. Use this method to report custom errors. Duplicate entries are removed.
|