Interface ICartConfig
Provides items for AuWidgetCart. The following example illustrates how you can define carts.
{
"widgets": [{
"name": "cart",
"type": "cart",
"params": {
"lineItems": [
{
"productIndex": 0,
"images": "{{ getOrDefault(\" $['cc'].proofImageUrls.map(item=>item[0])\",[]) }}",
"downloadUrls": "{{ getOrDefault(\" $['cc'].hiResUrls \",[]) }}",
"data": {
"stateId": "{{ getOrDefault(\" $['cc'].stateId \",'') }}",
"orderUrl": "{{ getOrDefault(\" settings.customersCanvasBaseUrl.toLowerCase().split('users')[0] + '/orders/DepositPhotos?userId=' + $['cc'].userId + '&stateId=' + $['cc'].stateId\",'') }}"
}
}
]
}
}]
}
Package: ui-framework
Properties
lineItems
An array of orders that represents a cart.
Declaration
lineItems: ILineItem[]
Property Value
Type | Description |
---|---|
ILineItem[] | An array of orders that represents a cart. |