Is this really the version you are looking for? Kentico Xperience 8.2 Documentation is no longer updated. Use the switcher in the header to choose your product version.
Discount rules are user‑friendly representations of discount- and free shipping offer-related macro conditions. These conditions allow your on-line store administrators to limit the application of discounts (catalog and order) and free shipping offers. If the condition is evaluated as true, the respective discount / free shipping offer is valid and the system applies it (unless configured otherwise).
Catalog rules are user‑friendly representations of catalog discount-related macro expressions. Using these rules in the Rule designer mode of the macro condition editor (while editing the catalog discounts' Apply to property), you can build conditions limiting your catalog discounts' application.
We recommend that you do not use time-related objects such as CurrentUser, CurrentPath, etc. in your custom catalog rules.
This is because such objects can no longer be relevant in the current session context.
The data available for catalog rules includes SKU and its properties, for example SKUOrder, SKUPrice, SKUPublicStatus, etc.
You can easily access the data in Store / Multistore configuration -> Discount rules -> Catalog rules by typing SKU. while editing the rule's Condition property on the General tab.
Order rules are user‑friendly representations of order discount- and free shipping offer-related macro expressions. Using these rules in the Rule designer mode of the macro condition editor (while editing the order discounts' / free shipping offers' Further conditions property), you can build conditions limiting your order discounts' / free shipping offers' application.
We recommend that you do not use time-related objects such as CurrentUser, CurrentPath, etc. in your custom order rules.
This is because such objects can no longer be relevant in the current session context.
The data available for order rules includes ShoppingCart and its properties, for example Currency, PaymentOption, ShippingOption, etc.
You can easily access the data in Store / Multistore configuration -> Discount rules -> Order rules by typing CTRL+SPACE while editing the rule's Condition property on the General tab.
You can add discount rules in Store configuration -> Discount rules on the Catalog rules / Order rules tab (alternatively also in the Multistore configuration application).
(Optional) Add a new classto the App_Code\CMSModules\Ecommerce\ sub-folder in your Kentico installation directory.
Add your custom methods into the class.
Register your macro method container class into the macro engine.
Save the class and build your solution.
Open the Store configuration application.
Switch to the Discount rules tab.
Switch to catalog rules (order rules) using the corresponding tab.
Click New catalog rule (New order rule).
Enter the discount rule properties as required.
Click Save.
(Optional) Switch to the Parameters tab.
Define the discount rule's parameter(s) if required.
Click Save.
You can now use the discount rule to limit the application of your discounts / free shipping offers.
Please refer to Example - Adding an order rule for an example of adding a custom discount rule with a macro condition calling a custom method.
The system allows you to view only discount rules matching certain search criteria (the display name of the rule, its condition and status).
Open the Store configuration (Multistore configuration) application.
Use the tabs to view the list of available catalog rules / order rules.
The system shows all corresponding discount rules available in the system.
Specify your search criteria.
Click Search.
(Optional) Click Reset to view all catalog rules / order rules available in the system.
The system shows only discount rules matching your search criteria.
You can modify discount rules in Store configuration -> Discount rules on the Catalog rules / Order rules tab (alternatively also in the Multistore configuration application).
You can now use the discount rule with its updated settings.
You can remove discount rules from the system in Store configuration -> Discount rules on the Catalog rules / Order rules tab (alternatively also in the Multistore configuration application).
The system removes the discount rule from your on-line store(s).
See Creating macro rules.