OrderLine
Line item with quantity, price, and variant selection.
Last updated
Usage
An order line retains the product name, SKU, and variant as they were at purchase time.
Key properties
| Property | Meaning |
|---|---|
| OrderLineId / OrderId | Line ID and relationship to its order. |
| ProductId / ProductSKU / ProductName | Product reference and item data copied to the order. |
| Quantity / PriceInDKK / SubTotal | Quantity, unit price, and line total. |
| VariantIdentifier / VariantText | Selected variant and its readable label. |
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 |
|---|---|
| OrderLineId | int |
| OrderId | int |
| ProductId | int |
| ProductSKU | string |
| ProductName | string |
| PriceInDKK | decimal |
| Quantity | int |
| VariantText | string |
| VariantIdentifier | string |
| PriceInDKKWithoutVat | decimal |
| TotalItemsInBasket | int |
Source: OptimusCommercev2.Core/Models/OrderLine.cs · Optimus Commerce.Extension 17.94.0