Workshop 5.3: Displaying Price Tags

The Price Tag option is a visual display of a currently applied product discount.

To add the price tags to the layout:

  1. Go to Settings and open the existing layout for the Order Line Item object.

  2. In the Fields to Display field, add the PriceTag keyword to the list of API names of fields that exist on the Order Line Item object (separated by a comma, without a blank space).

    The Price Tag is always displayed after the last column in the order cart, despite the order of fields in the Fields to Display field.
    ctorders overview 2021 02 03 3
  3. Click Save.

The setup is complete.

If set correctly, the price tags with the information about the available discounts will be displayed in the order cart next to each added product:

static PriceTagnew
``