Use Functions and Context Rules with the Standard Cart APIs

When you use functions and context rules with the Standard Cart-Based APIs, be aware of these considerations.

  • For any existing context rules that use no function-based rules, set them up as you would in previous releases.
  • To set up context based rules with advanced rule conditions that use functions, set them up as you would in previous releases. This excludes scenarios when a customer tries to fetch order information to validate it.
  • When you use function-based rules that query for orders, replace the order logic with Cart documents. Here's an example for the offersInCart function.