Price Rule
WARNING: When several price rules are applicable, the price of the product will be the sum of all the applicable price rules. Therefore, be careful to set up conditions of your price rules so that they do not accidentally overlap.
DWA commerce "pricing rules" are policies regarding how pricing shall be applied to derive a final numeric value or "price" for a product. Pricing rules are global to the entire instance of DWA commerce. Rules may be applied to individual products, categories of products, users, or one or more DWA commerce stores.
Pricing rules are quite similar to Promotions, they are built and enforced using rules based engine. The engine evaluates a set of conditions and then executes a set of actions. First, all the defined conditions are run in the sequence specified. If all return true, then the actions are executed, using one or more of the price types (for example, "List Price", or "Wholesale Price") , to determine the final price for a product.
Rules may also be designated as "Sale" rules, in which case the eCommerce application's store where this product is being offered will add "On Sale" text next to the product's rule derived price. Rules automatically apply to the prices associated with a product by virtue of assigning the product one or more "price types".
From and Thru Date: Make rules effective by date. Both a "from" date and "thru" date are supported. "From" date defaults to "now". "Thru" date defaults to never, meaning this rule never expires. You may set future dates or past dates to expire rules at certain times and you may remove the price Rule but it is advised not to remove them from the system. (You may want to do that for audit purposes.)
Sale Rule: If "Yes" is selected, the eCommerce store will add "On Sale" text to the product's pricing as displayed on the product detail page. In our case we are not doing this.
Conditions block :: Rule conditions are created here. A rule may have any number of conditions. Conditions are evaluated in the order shown here. All conditions must be true before an action is taken. A condition is of the form: <Object> <Verb> <Value>.
Condition "Objects" may be one of:
- Product Category
- Product Catalog
- Product Feature
- Product Store Group
- Party Group Member
- Party Classification
- Role Type
- List Price
- Currency UomId
Condition "Verbs" may be one of:
- Is Not
- Is Less Than
- Is Less Than or Equal To
- Is Greater Than
- Is Greater Than or Equal To
Actions Block
- Flat Monthly Amount
- Flat Monthly Override
- Percentage of Average Cost
- Percent of Default Cost
- Percent of List Price
- Percent of Margin
- Promo Amount Override
- Wholesale Amount Override
- Multiple actions, when selected will override individual action selections.
This makes it easy to create new rules. For example, if you wanted a pricing rule that said employees get an automatic 50% discount on all products in the "Demo Catalog" then you might create two conditions:
1) "Role Type" "is" "Employee"
2) "Product Catalog" "is" "Demo Catalog"