Class ProductOptionValue
Represents the value of a product option.
Property Summary
| Property | Description |
|---|
ID: String (read-only) | Returns the product option value’s ID. |
description: String (read-only) | Returns the the product option value’s description in the current locale. |
displayValue: String (read-only) | Returns the the product option value’s display name in the current locale. |
productIDModifier: String (read-only) | Returns the product option value’s product ID modifier which can be used to build the SKU for the actual product. |
Constructor Summary
This class does not have a constructor, so you cannot create it directly.
Method Summary
| Method | Description |
|---|
| getDescription() | Returns the the product option value’s description in the current locale. |
| getDisplayValue() | Returns the the product option value’s display name in the current locale. |
| getID() | Returns the product option value’s ID. |
| getProductIDModifier() | Returns the product option value’s product ID modifier which can be used to build the SKU for the actual product. |
Methods inherited from class ExtensibleObject
describe, getCustom
Methods inherited from class PersistentObject
getCreationDate, getLastModified, getUUID
Methods inherited from class Object
assign, create, create, defineProperties, defineProperty, entries, freeze, fromEntries, getOwnPropertyDescriptor, getOwnPropertyNames, getOwnPropertySymbols, getPrototypeOf, hasOwnProperty, is, isExtensible, isFrozen, isPrototypeOf, isSealed, keys, preventExtensions, propertyIsEnumerable, seal, setPrototypeOf, toLocaleString, toString, valueOf, values
Property Details
ID
- ID: String
(read-only)
Returns the product option value's ID.
description
- description: String
(read-only)
Returns the the product option value's description
in the current locale.
displayValue
- displayValue: String
(read-only)
Returns the the product option value's display name
in the current locale.
productIDModifier
- productIDModifier: String
(read-only)
Returns the product option value's product ID modifier which
can be used to build the SKU for the actual product.
Method Details
getDescription()
- getDescription(): String
Returns the the product option value's description
in the current locale.
Returns:
- The value of the product option value's description
in the current locale, or null if it wasn't found.
getDisplayValue()
- getDisplayValue(): String
Returns the the product option value's display name
in the current locale.
Returns:
- The value of the product option value's display name
in the current locale, or null if it wasn't found.
getID()
- getID(): String
Returns the product option value's ID.
Returns:
- the product option value's ID.
getProductIDModifier()
- getProductIDModifier(): String
Returns the product option value's product ID modifier which
can be used to build the SKU for the actual product.
Returns:
- the product option value's product ID modifier which
can be used to build the SKU for the actual product.