---
schema_version: "1"
id: 4c7af6c35b9dc1a36965f25d936be5f2acfa4de328947d0db94ba4604060b4fa
title: Header Conditions for Online Orders
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/ind/264-0-0/cg_concept_user_header_conditions_online.md
canonical_url: https://help.salesforce.com/s/articleView?id=ind.cg_concept_user_header_conditions_online.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: 5c4d6048cb6d5c61a5eb30f0a29fa20d7e037e57e476df34276dd016ff3ab14d
description: Header conditions apply at the header level of an order. Header conditions are independent of individual line items. To determine a condition, the system considers a base value for all items. The condition can be a percentage or a flat rate. The result is calculated at the header level.
products:
  - Consumer Goods
release: "264"
---
# Header Conditions for Online Orders

Header conditions apply at the header level of an order. Header conditions are independent of individual line items. To determine a condition, the system considers a base value for all items. The condition can be a percentage or a flat rate. The result is calculated at the header level.

### Required Editions

<table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small edition"><colgroup><col></colgroup><tbody><tr class=""><td class="slds-cell-wrap" style="vertical-align:top;">Available in: Lightning Experience in <strong>Professional</strong>, <strong>Enterprise</strong>, and <strong>Unlimited</strong> Editions that have Consumer Goods Cloud enabled</td></tr></tbody></table>

During order calculation, the system finds and applies header conditions based on the order quantity, weight, volume, or value.

## Manual Conditions

Provide manual conditions during order calculation if the calculation step is configured. The Manual checkbox indicates whether a calculation step considers a manual discount.

Capture the price and discount information manually during order calculation. The system overrides the found condition with manually entered values. Here's how the manual order item step is run:

 
| Manual Source attribute of the pricing condition template | pricing engine takes the input value (condition) from |
| --- | --- |
| Empty | Relevant field from the Order Items tab |
| PricingInfo1, 2, 3, or 4 fields | Related order item object fields |

Here's how the manual order header step is run:

 
| Manual Source attribute of the pricing condition template | pricing engine takes the input value (condition) from |
| --- | --- |
| Empty | Relevant field from the Order Header tab |
| PricingInfo1, 2, 3, or 4 fields | Related order object fields |

The Pricing Info attributes—PricingInfo1, PricingInfo2, PricingInfo3, PricingInfo4—are updated based on how the User Exit for the Special Rewards function is run.

## Target Conditions and Results

Based on the configurations defined in the Target Condition and Target Result fields of the calculation schema, the system stores the condition value and the calculated result of the respective schema step either in the corresponding order header or order item fields.

Order item

Here's how the order item step for storing target conditions and results is run.

 
| Condition | Result |
| --- | --- |
| The Target Condition field of a calculation schema is set for a calculation step at the item level. | The system stores the condition value of the respective schema step in a field of the corresponding order item. |
| The Target Result field of the calculation schema is set for a calculation step at the item level. | The system stores the result value of the respective schema step in an attribute of the corresponding order item. |

Order header

Here's how the order header step for storing target conditions and results is run:

 
| Condition | Result |
| --- | --- |
| The Target Condition field of the calculation schema is set for a calculation step at the header level. | The system stores the condition value of the respective schema step in an attribute of the corresponding order header. |
| The Target Result field of the calculation schema is set for a calculation step at the header level. | The system stores the calculated result of the schema step in an attribute of the order header. |

The order item or order header field of the order is updated based on the values of the Target Condition and the Target Result fields.