Order Express Pricing Rules
Contents
Overview
Order Express utilizes a robust expression system designed by eVision Services which allows for the conditional pricing of items. These pricing rules are stored within the database in the PricingRules
table. Rules are written in postfix notation, but includes a number of keywords that can be used to retrieve information about the item being priced (such as how a product can be priced differently based on which styles are applied to it.
Keywords Not Used For Pricing Rules
These keywords are considered to be "valid" keywords/tokens within the Rules Engine but currently have no implementation for pricing rules, and are thus considered to be invalid.
-
C:
- Category -
E:
- Finished End Option Group
Keywords Used For Pricing Rules
-
F:
- Formula -
I:
,=>
, and,
- Conditional -
H:
- Hinging Option Group -
N:
- Style Option Selections Count -
O:
- Style Option -
P:
- Product -
L:
- Product Line -
M:
- Variable Price Code -
Q:
- Style Option Selection -
R:
- Price -
S:
- Style Category -
T:
- Tag -
U:
- Upcharge -
V:
- Variable -
W:
- Modification Variable -
X:
- Constant
Nested Formulas
Format: F:[parameter]
Executes the pricing rule with a name of [parameter]
. This is primarily used in conjunction with the conditional operators, or to split expressions into shorter pieces.
Conditional Expressions
Tokens: I:
, =>
, ,
Format: I:[conditional]=>[expression_if_true],[expression_if_false]
Conditional expressions are defined using the above tokens. When these tokens are found within the expression, the expression is split into multiple parts. The [conditional]
parameter is always executed to determine if it evaluates to a true
or false
value. If this evaluates to true
, the [expression_if_true]
parameter is executed. If it evaluates to false
, the [expression_if_false]
parameter is executed.