To get full access to the Kademi Hub existing customers can login here, or new customers can register here.
Wraps a single purchase option value of a product parameter, such as one colour or size choice, for use in product templates. Built from a ParameterOption and carries the option's name, title, price adjustment and image hash.
Properties
| Property | Returns | Description |
|---|---|---|
| cost | BigDecimal | The price adjustment applied when this option is selected. |
| imageHash | String | The content hash of the image associated with this option, used to look up its stored blob. |
| name | String | The option's path-safe, unique key within its parameter, used as the selected value in purchase forms. |
| title | String | The option's display label, shown to buyers when choosing this variant. |
Methods
getName()
Returns: String
The option's path-safe, unique key within its parameter, used as the selected value in purchase forms.
getTitle()
Returns: String
The option's display label, shown to buyers when choosing this variant.
getCost()
Returns: BigDecimal
The price adjustment applied when this option is selected.
getImageHash()
Returns: String
The content hash of the image associated with this option, used to look up its stored blob.