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

PropertyReturnsDescription
costBigDecimalThe price adjustment applied when this option is selected.
imageHashStringThe content hash of the image associated with this option, used to look up its stored blob.
nameStringThe option's path-safe, unique key within its parameter, used as the selected value in purchase forms.
titleStringThe 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.

To get full access to the Kademi Hub existing customers can login here, or new customers can register here.