Loading
Communications Cloud
Table of Contents
Select Filters

          No results
          No results
          Here are some search tips

          Check the spelling of your keywords.
          Use more general search terms.
          Select fewer filters to broaden your search.

          Search all of Salesforce Help
          Display an Additional Field in the Enterprise Sales Management Cart (Managed Package)

          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.

          Managed Package Icon 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:

          1. The b2bSampleApp card can't be updated directly, so start by cloning the card:
            1. Go to Setup.
            2. In Quick Find, enter Lightning and click Lightning Components.
            3. In the list of Lightning components, go to cfB2bSampleAppCard. Click Del and then click OK to confirm.
            4. In the App Launcher, enter Cards and click Vlocity Cards.
            5. Open b2bSampleAppCard and then click Clone.
            6. Enter a name in Layout Author and click Save.
          2. 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.
            1. Click Edit JSON to view the layout JSON. This allows you to view the session variable values easily.
            2. Go to the sessionVars node in the JSON and look for b2bOfferConfig.
            3. In the fields node, add the following JSON:
              {
              	"label": "One Time Manual Discount",
              	"valueMap": "vlocity_cmt__OneTimeManualDiscount__c",
              	"dataType": "Currency"
              
              }
          3. Activate the card.

            The Enterprise Sales Management UI displays the additional field with the label One Time Manual Discount.

           
          Loading
          Salesforce Help | Article