ProductOptionValueWithColor¶
The ProductOptionValueWithColor object represents a single value which can be selected for a given option of type color
.
classDiagram
direction LR
Product --> ProductOptionsList
ProductOptionsList "1" --o "*" ProductOption
ProductOption --> ProductOptionValuesList
ProductOption --> ProductOptionValuesWithColorList
ProductOptionValuesList "1" --o "*" ProductOptionValue
ProductOptionValuesWithColorList "1" --o "*" ProductOptionValueWithColor
ProductOptionValueWithColor --> Price
ProductOptionValueWithColor --> ProductOption
ProductOptionValueWithColor --> ProductImage
class Product{
}
class ProductOptionsList{
}
class ProductOptionValuesList{
}
class ProductOptionValuesWithColorList{
}
class ProductOptionValue{
}
class ProductOptionValueWithColor{
int id
int order
string name
string color
bool isAvailable
bool isPriceModifier
bool isPercentagePriceModifier
?Price priceModification
float percentagePriceModification
string formatPercentagePriceModification
ProductOption option
ProductImage productImage
}
class ProductOption{
}
class Price{
}
class ProductImage{
}
Properties¶
Attribute name | Type | Description |
---|---|---|
id | int |
The unique identifier of the value of an option. |
order | int |
The order of the value of an option. |
name | string |
The name of the value of an option. |
color | string |
The color of the value of an option. |
isAvailable | bool |
Whether there is at least one available product variant with this value of an option. |
isPriceModifier | bool |
Whether the value is used to modify the price of the product. |
isPercentagePriceModifier | bool |
Whether the value is used to modify the price of the product by a percentage. |
priceModification | null|Price |
The price modification of this value represented by a Price Object. If the value is not a price modifier, this property is null. |
percentagePriceModification | float |
The percentage price modification of this value. If the value is not a percentage price modifier, this is set to zero (0.00). |
formatPercentagePriceModification | string |
The formatted percentage price modification of this value. If the value is not a percentage price modifier, this is set to zero (0.00). |
option | ProductOption |
The ProductOption object associated with this value. |
productImage | ProductImage |
The ProductImage object associated with this value. |