Interface ILineItem
Provides properties for a single order in a cart.
Package: ui-framework
Properties
active
Declaration
active: boolean
Property Value
Type | Description |
---|---|
boolean |
customPrice
The custom price for the order.
Declaration
customPrice: number
Property Value
Type | Description |
---|---|
number | The custom price for the order. |
data
Custom data (as a JSON object).
Declaration
data: Object
Property Value
Type | Description |
---|---|
Object | Custom data (as a JSON object). |
downloadUrls
An array of the print-ready files, which should be stored along with the order in your e-commerce system.
Declaration
downloadUrls: Array<string>
Property Value
Type | Description |
---|---|
Array<string> | An array of the print-ready files, which should be stored along with the order in your e-commerce system. |
images
An array of URLs to preview images which should be stored along with the order in your e-commerce system.
Declaration
images: Array<string>
Property Value
Type | Description |
---|---|
Array<string> | An array of URLs to preview images which should be stored along with the order in your e-commerce system. |
logRequest
If true
, logging 'add-to-cart' requests (for Shopify only).
Declaration
logRequest: boolean
Property Value
Type | Description |
---|---|
boolean | If |
productIndex
The product index for this line item.
Declaration
productIndex: number
Property Value
Type | Description |
---|---|
number | The product index for this line item. |
props
Custom properties. They don't appear in the order, but are available in the onSubmitting
callback.
Declaration
props: Object
Property Value
Type | Description |
---|---|
Object | Custom properties. They don't appear in the order, but are available in the |
quantity
The number of ordered products. The default value is 1
.
Declaration
quantity: number
Property Value
Type | Description |
---|---|
number | The number of ordered products. The default value is |
sku
Order line item SKU (for option-based product).
Declaration
sku: string
Property Value
Type | Description |
---|---|
string | Order line item SKU (for option-based product). |
useBackOffice
Indicates if driver should perform some BackOffice actions.
Declaration
useBackOffice: boolean
Property Value
Type | Description |
---|---|
boolean | Indicates if driver should perform some BackOffice actions. |