public interface ProductOptionValue extends Serializable, MultiTenantCloneable<ProductOptionValue>
Stores the values for a given product option.
For example, a ProductOption of type "color" might have values of ("red","blue").
ProductOptionValues can also have a price adjustment associated with it which will be automatically added to the Sku retail price and sale price
| Modifier and Type | Method and Description |
|---|---|
String |
getAttributeValue()
Gets the option value.
|
Long |
getDisplayOrder()
Returns the order that the option value should be displayed in.
|
Long |
getId()
Returns unique identifier of the product option value.
|
Money |
getPriceAdjustment()
Gets the price adjustment associated with this value.
|
Money |
getPriceAdjustmentSkipDynamicPricing()
Retrieve the Product Option's price adjustment without dynamic pricing
applied.
|
ProductOption |
getProductOption()
Returns the associated ProductOption
|
String |
getRawAttributeValue()
Gets the option value.
|
void |
setAttributeValue(String attributeValue)
Sets the option value.
|
void |
setDisplayOrder(Long order)
Sets the display order.
|
void |
setId(Long id)
Sets the unique identifier of the product option value.
|
void |
setPriceAdjustment(Money priceAdjustment)
Gets the price adjustment associated with this value.
|
void |
setProductOption(ProductOption productOption)
Sets the associated product option.
|
createOrRetrieveCopyInstanceLong getId()
void setId(Long id)
id - String getAttributeValue()
String getRawAttributeValue()
void setAttributeValue(String attributeValue)
attributeValue - Long getDisplayOrder()
void setDisplayOrder(Long order)
order - Money getPriceAdjustment()
This may be a negative value if you wanted to offer a particular ProductOptionValue at a discount
Depending on the implementation, this may perform dynamic pricing, which influences the value returned by examining price lists for the product option.
To retrieve the price adjustment without dynamic pricing applied,
see getPriceAdjustmentSkipDynamicPricing().
Money getPriceAdjustmentSkipDynamicPricing()
getPriceAdjustment()void setPriceAdjustment(Money priceAdjustment)
priceAdjustment - ProductOption getProductOption()
void setProductOption(ProductOption productOption)
productOption - Copyright © 2025. All rights reserved.