> For the complete documentation index, see [llms.txt](https://docs.digitalriver.com/salesforce-b2b/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.digitalriver.com/salesforce-b2b/1.0-5/integrating-the-digital-river-salesforce-b2b-commerce-app/step-3-add-custom-salesforce-b2b-commerce-app-fields-to-page-layouts.md).

# Step 3: Add custom Salesforce B2B Commerce App fields to page layouts

## Step 3a: Configure page layouts <a href="#step-3a-configure-page-layouts" id="step-3a-configure-page-layouts"></a>

To configure objects:

1. Click **Setup** ![](/files/-MSUk3RZcxiVbJaWRm7c) and select **Setup** from the dropdown list.
2. Type `object manager` in the **Quick Find** field and press **Enter**.\
   ![](/files/-MSUlFMPu4QYt2vf_HfE)
3. Click **Object Manager**. \
   ![](/files/-MSUkbLYb6_eBMjzobum)
4. Scroll down and click the **CC Cart** link.
5. Click **Page Layouts**.\
   ![](/files/-MSUlptn52upOMMxJn2J)
6. Click **CC Cart Layout**.\
   ![](/files/-MSUlxTCNm6evghVaBDg)
7. Click the **Fields** tab in the **CC Cart Layout**. This tab lists the information provided in [Custom fields](/salesforce-b2b/1.0-5/integrating-the-digital-river-salesforce-b2b-commerce-app/step-3-add-custom-salesforce-b2b-commerce-app-fields-to-page-layouts.md#custom-fields) and [Digital River fields](/salesforce-b2b/1.0-5/integrating-the-digital-river-salesforce-b2b-commerce-app/step-3-add-custom-salesforce-b2b-commerce-app-fields-to-page-layouts.md#digital-river-fields).\
   ![](/files/-MSUm5x5SXlQ22DZPw9Z)
8. Drag the custom field you want to appear in the CC Cart Layout from the Fields list to the **CC Cart Detail** and arrange them in the order you want them to appear. Repeat this step for each field you want to appear in the CC Cart Layout. \
   ![](/files/-MSUmBCC4JjLHB7PUTjc)
9. Repeat steps 4–8 for the following custom fields using the information provided in [Custom fields](/salesforce-b2b/1.0-5/integrating-the-digital-river-salesforce-b2b-commerce-app/step-3-add-custom-salesforce-b2b-commerce-app-fields-to-page-layouts.md#custom-fields) and [Digital River fields](/salesforce-b2b/1.0-5/integrating-the-digital-river-salesforce-b2b-commerce-app/step-3-add-custom-salesforce-b2b-commerce-app-fields-to-page-layouts.md#digital-river-fields) for **CC Cart Item,** **CC Order**, **CC Order Item**, **CC Product**, and **Account**.

![](/files/-MSUmIV67AYuIuq0KtcV)

### Custom fields <a href="#custom-fields" id="custom-fields"></a>

Add these custom fields to the corresponding page layouts.

| Object        | Field / Button                                                                                                                               |
| ------------- | -------------------------------------------------------------------------------------------------------------------------------------------- |
| CC Cart       | DR Cart Id                                                                                                                                   |
| CC Cart       | DR Entity Policy Mapping                                                                                                                     |
| CC Cart       | DR Payment State                                                                                                                             |
| CC Cart       | DR Payment Failure Reason                                                                                                                    |
| CC Cart       | DR Tax Exemption Applied                                                                                                                     |
| CC Cart       | DR Order State                                                                                                                               |
| CC Cart Item  | DR Cart Item Id                                                                                                                              |
| CC Order      | DR Order Id                                                                                                                                  |
| CC Order      | Refund Payment (Button)                                                                                                                      |
| CC Order Item | DR Order Item Id                                                                                                                             |
| CC Product    | DR ECCN                                                                                                                                      |
| CC Product    | Add Custom Lightning Component “DRB2B\_UpdateCCProductECCNLookup” to CC Product Lightning page and this can be used for searching ECCN Codes |
| CC Product    | DR TaxGroup                                                                                                                                  |
| CC Product    | DR TaxType                                                                                                                                   |
| CC Product    | DR Last Synced Date                                                                                                                          |
| CC Product    | Is Product Sync Required                                                                                                                     |
| Account       | TaxExemptId                                                                                                                                  |
| Account       | DR Tax Certificate Last Upload Date                                                                                                          |

### Digital River fields <a href="#digital-river-fields" id="digital-river-fields"></a>

Add these Digital River fields to the corresponding page layouts.

| Object                    | Field / Button            |
| ------------------------- | ------------------------- |
| DR Cart ID                | DR Cart ID                |
| DR Entity Policy Mapping  | DR Entity Policy Mapping  |
| DR Payment State          | DR Payment State          |
| DR Payment Failure Reason | DR Payment Failure Reason |
| DR Tax Exemption Applied  | DR Tax Exemption Applied  |
| DR Order State            | DR Order State            |

## Step 3b: Configure picklist value sets <a href="#step-3b-configure-picklist-value-sets" id="step-3b-configure-picklist-value-sets"></a>

To configure picklist value sets:

1. From the **Object Manager** tab, locate the **CC Order** object under the **LABEL** column and click the link.\
   &#x20;![](/files/-MSUqv7oYghrizhib5a4)
2. Click the **Fields & Relationships** tab, locate **Order Status** under the **FIELD LABEL** column and click the link. \
   ![](/files/-MSZdT35-nsWfb2NyKPU)
3. From the Order Status (Managed) page, scroll down to the **Values** section.\
   &#x20;![](/files/-MScj5DFSU5TYUHO5UVK)
4. Click **Picklist Value Sets**. \
   ![](/files/-MSZdfBv0MHaMNE5qlvJ)
5. Click **New**, type `Pending Payment` in the field, and click **Save**. ![](/files/-MSZgotnlgoQKvVW6JAq) \
   The Pending Payment now appears under Validation Rules on the Order Status (CloudCraze Order Status field: ccrz\_\_OrderStatus\_\_c). \
   ![](/files/-MSZhHWQzESO0KWI6xMa)
6. Repeat steps 2–8 for each additional object in the [Picklist values](/salesforce-b2b/1.0-5/integrating-the-digital-river-salesforce-b2b-commerce-app/step-3-add-custom-salesforce-b2b-commerce-app-fields-to-page-layouts.md#picklist-values) table.

### Picklist values <a href="#picklist-values" id="picklist-values"></a>

Refer to the following table when configuring picklist value sets:

| Object                             | Picklist              | Picklist Value  |
| ---------------------------------- | --------------------- | --------------- |
| CC Order                           | Order Status          | Pending Payment |
| Digital River Fulfillment          | EFN Status            | Problem         |
| Digital River LineItem Fulfillment | EFN Order Item Status | Problem         |
| DR Subscription Process Data       | Subscription Context  | Renewal         |

## Step 3c: Configure picklist error types

Add the [picklist error types](/salesforce-b2b/1.0-5/integrating-the-digital-river-salesforce-b2b-commerce-app/step-3-add-custom-salesforce-b2b-commerce-app-fields-to-page-layouts.md#picklist-error-types) (if they are not already present) to the Error Type custom field (API Name: digitalriverb2b\_\_Error\_Type\_\_c).

To configure the picklist error types:

1. From the **Object Manager** tab, locate the **Digital River Error Log** object under the **LABEL** column and click the link. \ <img src="/files/-MSckn5z34l8NSvk3yfz" alt="" data-size="original">​
2. Click the **Fields and Relationships** tab, locate **Error Type** under the **FIELD LABEL** column and click the link. \
   ![](/files/-MScmH17gwlAsdINPZZa)
3. Scroll down to **Values** in the **Digital River Error Log**. \
   ![](/files/-MScmk3pS_KC3l9fLsGZ)
4. Review the existing values against the picklist error types.
5. If there are any missing values, click **New**, type the value in the field, and click **Save**. Repeat this step for each missing value.

### Picklist error types <a href="#picklist-error-types" id="picklist-error-types"></a>

Add the following error types, if they are not already present to the Error Type custom field.

| Values                    | API Name                  |
| ------------------------- | ------------------------- |
| Tax Calculation           | Tax Calculation           |
| Payment CC                | Payment CC                |
| Payment PO                | Payment PO                |
| Payment Paypal            | Payment Paypal            |
| Fulfillment               | Fulfillment               |
| Insufficient Access       | Insufficient Access       |
| Trigger                   | Trigger                   |
| Payment                   | Payment                   |
| Subscription              | Subscription              |
| Subscription Payment      | Subscription Payment      |
| Checkout Payment          | Checkout Payment          |
| Invoice Payment           | Invoice Payment           |
| User Registration         | User Registration         |
| Assign Permission Set     | Assign Permission Set     |
| Refunds                   | Refunds                   |
| Shopper                   | Shopper                   |
| Product Sync              | Product Sync              |
| Wallet                    | Wallet                    |
| VAT Validation            | VAT Validation            |
| Payment PP                | Payment PP                |
| Access Token              | Access Token              |
| Connecter Config Metadata | Connecter Config Metadata |
| Tax Exemption             | Tax Exemption             |
| Debug                     | Debug                     |
