cpq-product-cart (layout)

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

Template

cpq-product-cart (template)

Layout Session Variables

Name

Value

nextProducts

payload.actions.nextproducts

messages

payload.messages

Data Source

Dual

Remote Class

CpqAppHandler

Remote Method

getCartsItems

Input Map

Input Map Variable

Value

cartId

{{params.id}}

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

pagesize

10

Note
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)

Image

A cart with a 'Required attribute missing...' error.