EPiServer Commerce has a powerful discounting engine and can be used to build all types of promotions without writing custom code. In most cases these discounts can be built using one of the built in "Build Your Own Discount" options.
In this case we want to build a promotion that will give a $10 discount on certain items in our catalog. We want products with "Bordeaux" OR "Sauternes" in the display name to receive $10 off the item. In this case we are using a Promotion Type of "Catalog Entry:Build Your Own Discount". Constructing the purchase condition can be a confusing when using the Or operator. The first item we must add to the condition is the Or operator since And is the default. The Or will have the effect we desire if added first which is And (Or (DisplayName = Bordeaux, DisplayName = Sauternes)) which is translated by the rules engine to And (DisplayName = Bordeaux Or DisplayName = Sauternes). If the Or is not added first the results will not be as desired as the DisplayName would have to contain Bordeaux And Sauternes.
The Reward is set to $10 Off.
We have added three items to our shopping cart. As you can see two of the items (containing "Bordeaux" and "Sauternes") have been given the $10 off discount and the name of the promotion is shown with the item. The third item in our cart did not meet the criteria we set so no discount was applied.
Version: EPiServer Commerce 1 R2 SP2| Last updated: 2012-09-20 | Copyright © EPiServer AB | Send feedback to us