Discount Conditions

The discount condition (Buy) specifies if an award will be offered to the user. The award is based on what the user buys. The Buy condition must be true for the discount to apply. The condition is evaluated for each item in the order form. A condition can be an expression specifying that the discount applies to a particular item, or it can specify that it apply to all items. The Buy****condition includes a Buy Anything property, a condition type, a value, and a catalog expression.

  • Buy Anything specifies that if there is a product in the basket to which the discount can be awarded, the discount will always apply. For example, buy anything, and get a free belt. The Buy Anything property also specifies that an item in the basket will not be used up as a condition.

    Ee784775.note(en-US,CS.20).gifNote

    • If the basket is empty, Buy Anything discounts will always qualify for an award. "Buy Anything" is the same as "Buy any product of quantity zero (0)."

    For an example of a Buy Anything discount, see Order-level/Item-level: Buy C, get $10.00 off the total, and buy anything, Get B at 10 percent off in the topic "Discount Examples."

  • Condition Type determines the type of Buy condition. There are two Buy conditions for a discount: quantity and value. You can apply discounts based on the quantity that users purchase, or on the value of the purchase. For example, you can create a discount that applies when a user buys three cases of juice (quantity), or a discount that applies when a user buys $20.00 worth of juice (value).

    Ee784775.note(en-US,CS.20).gifNote

    • Commerce Server 2002 does not support decimals in quantity values.
  • Condition value specifies the dollar or unit value of the condition.

  • Catalog expression is an expression based on the product catalog. The catalog expression evaluates against each item in the user basket. The expression must evaluate to "True" at least once for the discount to apply. Following are examples of catalog expressions in the Condition (Buy) column, and the awards in the Award (Get) column.

    Condition (Buy) Award (Get)
    Buy one pair of jeans Get one shirt at 50 percent off
    Buy two of any product in the Digital Camera category Get 30 percent of a roll of film
    Buy one of any product in the Digital Camera category
    OR
    Buy a Camcorder
    Get $20.00 off a radio

For information about creating a catalog expression, see Creating a Catalog Expression.

Ee784775.note(en-US,CS.20).gifNotes

  • The discount is not guaranteed to apply since it is not known whether the award for the discount is available.
  • Both AND and OR cumulative conditions are allowed in a catalog expression, but only the OR condition is supported for discounts. The AND condition is not supported and should not be used.

See Also

Multiple Discounts

Discount Examples

Creating a Discount

Discount Awards

Copyright © 2005 Microsoft Corporation.
All rights reserved.