Class: module:models/VariationAttributeValue

module:models/VariationAttributeValue(value)

new module:models/VariationAttributeValue(value)

Constructs a new VariationAttributeValue. Document representing a variation attribute value.

Parameters:
Name Type Description
value String

The actual variation value.

Source:

Members

(inner) description :String

The localized description of the variation value.

Type:
  • String
Source:

(inner) image :module:models/Image

The first product image for the configured viewtype and this variation value.

Type:
Source:

(inner) image_swatch :module:models/Image

The first product image for the configured viewtype and this variation value. (typically the swatch image)

Type:
Source:

(inner) name :String

The localized display name of the variation value.

Type:
  • String
Source:

(inner) orderable :Boolean

A flag indicating whether at least one variant with this variation attribute value is available to sell.

Type:
  • Boolean
Source:

(inner) value :String

The actual variation value.

Type:
  • String
Source:

Methods

(static) constructFromObject(data, obj) → {module:models/VariationAttributeValue}

Constructs a VariationAttributeValue from a plain JavaScript object, optionally creating a new instance. Copies all relevant properties from data to obj if supplied or a new instance if not.

Parameters:
Name Type Description
data Object

The plain JavaScript object bearing properties of interest.

obj module:models/VariationAttributeValue

Optional instance to populate.

Source:
Returns:

The populated VariationAttributeValue instance.

Type
module:models/VariationAttributeValue