Show rollup pricing in the shopping cart

task australia Updated Sep 10, 2026 2 min read display-rollup-pricing-in-the-shopping-cart.md
Raw file servicenow.com

Configure the shopping cart to display the sum of the child items as the price of the parent item.

Before you begin

Role required: admin

About this task

When a BOM (bill of materials) is represented with hierarchy, such as a parent-child relationship, you can total the prices of the child items. The total displays on the parent line as a sum. ServiceNow CPQ rollup pricing totals direct child and parent extended list values. Rollup pricing delivers the sum of all child line prices to the shopping cart, including the price of the parent, and displays it at the parent line.

To view a script that illustrates how a hierarchical bill of materials is generated, see Adv Product Action with Product List.

The following example shows four child products rolling up to their related parent products.

[Omitted image "cpq-rollup-pricing-1.png"] Alt text: Display rollup pricing in the shopping cart

The next example shows a 2-tier roll-up, with child products (child1B and child 2B) rolling up to a parent (parent B). That parent rolls up to the parent product (parent A) in addition to the remaining child products (child 1A and child 2A).

[Omitted image "cpq-rollup-pricing-2.png"] Alt text: Display rollup pricing in the shopping cart

Procedure

  1. In ServiceNow CPQ administration, create a rule by clicking + New.

    [Omitted image "cpq-rollup-pricing-3.png"] Alt text: Rules

  2. Name the rule, and click Save.

  3. Set your condition and create your product actions.

    • Start with a parent product and set the parent product ID, quantity, price, type, BOM type, and unique identifier.

      For parent products, the type should be set to Component. For child products, the type should be set to Accessory.

    • Add the unique identifier to the parent product field of any products that you want rolled up into the parent product. [Omitted image "cpq-rollup-pricing-4.png"] Alt text: Product action

  4. To display the rolled-up price in your cart, add rollUpPrice to your shopping cart in the layout editor.

    Alternatively, define the productlistcolumn type in your layout CSV with the variable name rollUpPrice.[Omitted image "cpq-rollup-pricing-5.png"] Alt text: CSV file

Related topics

Customizing the currency display in the shopping cart

How price is displayed on a layout with multiple BOMs

Set a custom message for zero-priced and null-priced items

Search documentation
Search document titles and file paths on the australia branch