---
schema_version: "1"
id: abcaaff6bd866dc9261a642ef4ec9bce34a3e98c18bdbc4207701cd7a97df91e
title: cpq-total-bar (layout)
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/ind/264-0-0/comms_cpq_total_bar__layout_.md
canonical_url: https://help.salesforce.com/s/articleView?id=ind.comms_cpq_total_bar__layout_.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: 5aea307e324d477619f7f4404bd687fb695b167df688f859b7c97e5477a0fa02
description: The cpq-total-bar layout renders the total bar in the cart.
products:
  - Communications
  - Media
  - Energy and Utilities
release: "264"
---
# cpq-total-bar (layout)

The cpq-total-bar layout renders the total bar in the cart.

**Template**

[cpq-total-card (template)](https://help.salesforce.com/s/articleView?id=ind.comms_cpq_total_card__template_.htm&release=264.0.0&type=5 "The cpq-total-card template provides the text and buttons, as well as their styling, for the total bar in the cart.")

**Layout Session Variables**

None

**Data Source**

Dual

**Remote Class**

```
CpqAppHandler
```

**Remote Method**

```
getCarts
```

**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="d354022e92">
            <p style="margin-bottom:0;">Input Map Variable</p>
          </th>
          <th scope="col" class="slds-cell-wrap" style="vertical-align:top;" id="d354022e98">
            <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="d354022e92 ">
            <p style="margin-bottom:0;">cartId</p>
          </td>

          <td data-label="Value" class="slds-cell-wrap" style="vertical-align:top;" headers="d354022e98 ">
            <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="d354022e92 ">
            <p style="margin-bottom:0;">price</p>
          </td>

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

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

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

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

**Result JSON Path**

```
records[0].details.records[0]
```

**REST API Information**

Get Cart Details

For more information, see Get Cart Details.

```
GET /services/apexrest/vlocity_cmt/v2/cpq/carts/{{params.id}}?validate=true&price=true
```

**Cards**

[cpq-total-bar-card](https://help.salesforce.com/s/articleView?id=ind.comms_cpq_total_bar_card.htm&release=264.0.0&type=5 "The cpq-total-bar-card card renders the total bar in the cart.")

**Image**

![The Total bar, with Recurring Total, One Time Total, and Total values and a Create Assets button.](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_totalbar.jpg)