Promo Cart
Build a powerful promotional pricing system that evaluates multiple strategies in parallel, intelligently selects optimal discounts, and provides complete pricing transparency for your customers.
David Škarka
Template author
This Decision Flow calculates promotional pricing for shopping cart items by evaluating multiple promotion types and selecting the optimal discount strategy for each item. The system handles various promotion mechanics, including percentage discounts, cart-level offers, and Buy-One-Get-One deals, then determines final unit and total pricing with complete promotional attribution.
Solution components
Decision Table Tier Bonus in folder Product Promo serves as a customer loyalty tier lookup, assigning additional discount bonuses based on customer membership level (VIP, STANDARD, NEW). These bonuses are applied on top of base product promotions to reward customer loyalty.
Decision Tables SKU Lookup and Brand Lookup serve as promotion registries that match cart items to applicable offers. SKU Lookup evaluates product identifiers and quantities, while Brand Lookup evaluates brand names and quantities. Both specify discount application strategies, base promotional discount rates, and promotional code identifiers for tracking
A Decision Tree named Price Assignment evaluates all applicable promotions for each item. It compares product discounts vs. brand discounts vs. cart-level discounts, applies special logic for Buy-One-Get-One promotions, and calculates final unit price and line item totals.
A Decision Flow orchestrates the whole evaluation:
Executes Product Promo and Brand Promo Flows simultaneously to evaluate all applicable offers for cart items, maximizing performance
Executes the Price Assignment decision tree to determine the winning promotion strategy, and calculates final discounted unit prices and line item totals.
Returns enriched cart items with promotional pricing, applied discount rates, promotion sources, and consolidated promotional codes for display at checkout.
Use this Decision Flow as a robust pattern for implementing promotional pricing systems. You can call it from your e-commerce platform, shopping cart service, or checkout gateway using a REST API to calculate optimal promotional pricing for any cart configuration instantly
More Templates
See Other Templates
A/B Testing
Discover a simple way to assign a test group for performing A/B Testing on your decisions.
Risk Based Pricing
Discover a simple way to apply a suitable Risk Based Pricing matrix based on a type of client.
Eligibility and Policy Rules
Discover a simple way to define and execute various sets of rules and get the final decision outcome.