You are here:
Display an Additional Field in the Enterprise Sales Management Cart (Managed Package)
When you're configuring products in the cart, you might want to view additional fields on the shopping cart page.
This feature is part of the Communications Cloud managed package.
For example, let's say you have a field that allows you to specify a manual one-time discount, but this field isn't displayed on the page when you're configuring products.
To display an additional field in the shopping cart UI, update the b2bSampleApp card:
-
The b2bSampleApp card can't be updated directly,
so start by cloning the card:
- Go to Setup.
- In Quick Find, enter Lightning and click Lightning Components.
- In the list of Lightning components, go to cfB2bSampleAppCard. Click Del and then click OK to confirm.
- In the App Launcher, enter Cards and click Vlocity Cards.
- Open b2bSampleAppCard and then click Clone.
- Enter a name in Layout Author and click Save.
-
Go to the Layout Session Variables section of the card. You can update
each of these variables, as required. For this example, update the
b2bOfferConfig session variable.
- Click Edit JSON to view the layout JSON. This allows you to view the session variable values easily.
-
Go to the
sessionVarsnode in the JSON and look forb2bOfferConfig. -
In the
fieldsnode, add the following JSON:{ "label": "One Time Manual Discount", "valueMap": "vlocity_cmt__OneTimeManualDiscount__c", "dataType": "Currency" }
-
Activate the card.
The Enterprise Sales Management UI displays the additional field with the label One Time Manual Discount.

