ProductSpecification

Extends Object. Represents a specification entry for a product.

Properties
isString

Type Boolean

True if the product specification is of type string, else false.

isSwatch

Type Boolean

True if the product specification is of type swatch, else false.

isVariable

Type Boolean

True if the specification is used for product.variations and has more than one value in values.

title

Type String

The title of the specification e.g. Colour.

type

Type String

The type of specification, which may be used to determine how to render the specification type and value. Currently the supported specification types are:

  • string
  • swatch
value

Type ProductSpecificationValue

The value of the specification e.g. Red. If the specification is used as the basis of its variations the value property will be the combined list of variations represented as a String separated by a forward slash '/';

values

Type Array

The values list as an Array, which includes all values across variations.