
Optimizing Click-and-Collect Logic for a European Luxury Cosmetics Brand
Built-in logic that adapts delivery modes based on real-time cart contents, seamlessly integrated into Spartacus.
Quick Info
Solution
The original system supported two delivery modes: standard pickup for later collection and express pickup for next-day availability. These modes lived in separate checkout flows, leading to a disjointed experience and redundant back-end logic.
However, the business requested a consolidated checkout interface. To support this, we redesigned the logic layer to dynamically calculate eligibility:
- Express Pickup is shown only when 100% of the cart items are in stock at the selected store.
- Standard Pickup becomes the fallback if only some items are available.
- In mixed scenarios, the logic calculates pickup eligibility based on product cost share, ensuring the optimal option is offered.
This required substantial changes to back-end logic and new rules to handle cart combinations. It also had to align with legacy fallback systems to maintain customer continuity during migration.
Results

