ProductVariant
A variant's SKU, price, stock, and selected attributes.
Last updated
Usage
A variant can have its own image, price, and VariantTypeComboList.
Key properties
| Property | Meaning |
|---|---|
| ProductVariantIdentifier | Key that connects the selected variant to an order line. |
| VariantTypeComboList | Selected attributes in this combination. |
| QuantityInStock | Stock for this particular variant. |
| ImageMediaId / ImageMediaUrl | The variant image reference or URL. |
Public properties
Property names and C# types follow this package version. Some fields are populated only when a service or repository prepares the model.
| Property | C# type |
|---|---|
| ProductVariantIdentifier | string |
| SKU | string |
| PriceInDKK | decimal |
| QuantityInStock | int |
| ImageMediaId | string |
| ImageMediaUrl | string |
| VariantTypeComboList | List<VariantTypeCombo> |
| DiscountInCurrency | decimal |
| DiscountAsPercentage | decimal |
Source: OptimusCommercev2.Core/Models/ProductVariant.cs · OptimusCommerce.Extension 17.94.0