Applying only item-based rules during order creation
You can choose whether you want to run only item-based rules during order creation. Selecting this option can improve performance, because the addition of each item will not run order total, shipping, and surcharge rules for each line. Instead, the rules that do run are only item-level rules: item quantity, item combination, item-targeted manual rules and item-targeted coupons. When the order is finished and the total is requested, then all promotions can be run to calculate the entire order.
To use
this option, enable the
runItemOnlyPricingRules
flag, which is passed as input to
the following APIs: - createOrder
- changeOrder
- addLineToOrder
- getOrderPrice
- repriceOrder