---
schema_version: "1"
id: d8208181a4006092f87f6d6e97c1ad8ce8c44d7c1f351245633ac0193d1fd627
title: cpq-product-cart (layout)
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/ind/264-0-0/comms_cpq_product_cart__layout_.md
canonical_url: https://help.salesforce.com/s/articleView?id=ind.comms_cpq_product_cart__layout_.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: 8f6b059167e7b2fed8e3a2df76163be8fd7c7c3061c5239caacbb6cc706d1e38
description: The cpq-product-cart layout renders the cart, including any relevant error messages.
products:
  - Communications
  - Media
  - Energy and Utilities
release: "264"
---
# cpq-product-cart (layout)

The cpq-product-cart layout renders the cart, including any relevant error messages.

**Template**

[cpq-product-cart (template)](https://help.salesforce.com/s/articleView?id=ind.comms_cpq_product_cart__template_.htm&release=264.0.0&type=5 "The cpq-product-cart template provides the structure for the cart.")

**Layout Session Variables**

<table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small ">
      <colgroup>
        <col>
        <col>
      </colgroup>
      <thead class="slds-text-title_caps ">
        <tr class="">
          <th scope="col" class="slds-cell-wrap" style="vertical-align:top;" id="d387220e54">
            <p style="margin-bottom:0;">Name</p>
          </th>
          <th scope="col" class="slds-cell-wrap" style="vertical-align:top;" id="d387220e60">
            <p style="margin-bottom:0;">Value</p>
          </th>
        </tr>
      </thead>
      <tbody>
        <tr class="">
          <td data-label="Name" class="slds-cell-wrap" style="vertical-align:top;" headers="d387220e54 ">
            <p style="margin-bottom:0;">nextProducts</p>
          </td>

          <td data-label="Value" class="slds-cell-wrap" style="vertical-align:top;" headers="d387220e60 ">
            <p style="margin-bottom:0;">payload.actions.nextproducts</p>
          </td>

        </tr>
        <tr class="">
          <td data-label="Name" class="slds-cell-wrap" style="vertical-align:top;" headers="d387220e54 ">
            <p style="margin-bottom:0;">messages</p>
          </td>

          <td data-label="Value" class="slds-cell-wrap" style="vertical-align:top;" headers="d387220e60 ">
            <p style="margin-bottom:0;">payload.messages</p>
          </td>

        </tr>
      </tbody>
    </table>

**Data Source**

Dual

**Remote Class**

```
CpqAppHandler
```

**Remote Method**

```
getCartsItems
```

**Input Map**

<table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small ">
      <colgroup>
        <col>
        <col>
      </colgroup>
      <thead class="slds-text-title_caps ">
        <tr class="">
          <th scope="col" class="slds-cell-wrap" style="vertical-align:top;" id="d387220e148">
            <p style="margin-bottom:0;">Input Map Variable</p>
          </th>
          <th scope="col" class="slds-cell-wrap" style="vertical-align:top;" id="d387220e154">
            <p style="margin-bottom:0;">Value</p>
          </th>
        </tr>
      </thead>
      <tbody>
        <tr class="">
          <td data-label="Input Map Variable" class="slds-cell-wrap" style="vertical-align:top;" headers="d387220e148 ">
            <p style="margin-bottom:0;">cartId</p>
          </td>

          <td data-label="Value" class="slds-cell-wrap" style="vertical-align:top;" headers="d387220e154 ">
            <p style="margin-bottom:0;">{{params.id}}</p>
          </td>

        </tr>
        <tr class="">
          <td data-label="Input Map Variable" class="slds-cell-wrap" style="vertical-align:top;" headers="d387220e148 ">
            <p style="margin-bottom:0;">fields</p>
          </td>

          <td data-label="Value" class="slds-cell-wrap" style="vertical-align:top;" headers="d387220e154 ">
            <p>vlocity_cmt__BillingAccountId__c,vlocity_cmt__ServiceAccountId__c,Quantity,vlocity_cmt__RecurringTotal__c,vlocity_cmt__OneTimeTotal__c,</p>
            <p>vlocity_cmt__OneTimeManualDiscount__c,vlocity_cmt__RecurringManualDiscount__c,vlocity_cmt__ProvisioningStatus__c,</p>
            <p>vlocity_cmt__RecurringCharge__c,vlocity_cmt__OneTimeCharge__c,ListPrice,vlocity_cmt__ParentItemId__c,vlocity_cmt__BillingAccountId__r.Name,</p>
            <p style="margin-bottom:0;">vlocity_cmt__ServiceAccountId__r.Name,vlocity_cmt__PremisesId__r.Name,vlocity_cmt__InCartQuantityMap__c</p>
          </td>

        </tr>
        <tr class="">
          <td data-label="Input Map Variable" class="slds-cell-wrap" style="vertical-align:top;" headers="d387220e148 ">
            <p style="margin-bottom:0;">pagesize</p>
          </td>

          <td data-label="Value" class="slds-cell-wrap" style="vertical-align:top;" headers="d387220e154 ">
            <p style="margin-bottom:0;">10</p>
          </td>

        </tr>
      </tbody>
    </table>

![Note](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-ind-comms_media_energy_managed-264-0-0-production-enus/ff4079f6-a384-475c-b863-578bbbb0ef9b/images/icon_note.png)

Note

The `pagesize` must be greater than one. If the `pagesize` is set to one, when loading more line items or deleting a product, Industries Cart may stop responding.

**Result JSON Path**

```
records
```

**REST API Information**

Get Line Items

```
GET /services/apexrest/vlocity_cmt/v2/cpq/carts/{{params.id}}/items?pagesize=10&fields=vlocity_cmt__BillingAccountId__c,vlocity_cmt__ServiceAccountId__c,Quantity,vlocity_cmt__RecurringTotal__c,vlocity_cmt__OneTimeTotal__c,vlocity_cmt__OneTimeManualDiscount__c,vlocity_cmt__RecurringManualDiscount__c,vlocity_cmt__ProvisioningStatus__c,vlocity_cmt__RecurringCharge__c,vlocity_cmt__OneTimeCharge__c,ListPrice,vlocity_cmt__ParentItemId__c,vlocity_cmt__BillingAccountId__r.Name,vlocity_cmt__ServiceAccountId__r.Name,vlocity_cmt__PremisesId__r.Name,vlocity_cmt__InCartQuantityMap__c
```

**Cards**

[cpq-product-cart-item (card)](https://help.salesforce.com/s/articleView?id=ind.comms_cpq_product_cart_item__card_.htm&release=264.0.0&type=5 "The cpq-product-cart-item card displays each line item in a cart.")

**Image**

![A cart with a 'Required attribute missing...' error.](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-ind-comms_media_energy_managed-264-0-0-production-enus/ff4079f6-a384-475c-b863-578bbbb0ef9b/resources-product/images/salesforce_cpqcart_cartwitherrors.jpg)