Product Addition to Line Items Table

Product Addition to Line Items Table

We can control visibility and layout of the view when Products are added to a line items table. This is done via the following ADL prop keys

Mobileforce Admin Only:

The following properties can only be specified by Mobileforce Administrator. Since they can have a significant impact on the behavior of the CPQ application, caution is urged, when using these properties

1. Hide/Show Cost Price

When adding a product to the line item table, sellers may choose not to display the Cost Price.

.png)

To hide the cost price, add the following prop key in ADL:

Code snippet

<prop key="cpq-product-show-cost">0</prop>

Values

0 → Hide Cost Price
1 → Show Cost Price

.png)

2. Control Product Display Fields

Sellers can choose to display the Name, Code, Description, or any combination of these fields.

.png)

This behavior is controlled by adding the following prop key in ADL with the required values:

Code snippet

<prop key="cpq-product-display">value</prop>

Values

name → Show only Product Name

Code snippet

<prop key="cpq-product-display">name</prop>

code → Show only Product Code

Code snippet

<prop key="cpq-product-display">code</prop>

description → Show only Product Description

Code snippet

<prop key="cpq-product-display">description</prop>

name,description → Show Name followed by Description

Code snippet

<prop key="cpq-product-display">name,description</prop>

Note

Multiple values must be comma-separated (no spaces).

Example

To display only the Product Name:

Code snippet

<prop key="cpq-product-display">name</prop>

In this case, only the product name will be displayed.

.png)