TrophyCustomer's Canvas is honored with a 2020 InterTech Technology Award! Learn more 

Interface: ICartConfig

Provides items for a cart.

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\",'') }}"
          }
        }
      ]
    }
  }]
}

Hierarchy

  • ICartConfig

Index

Properties

Properties

lineItems

lineItems: ILineItem[]

An array of orders that represents a cart.