Table of Contents

Promotion module: Key concepts and features

This extension enables the management of customer sales promotions.

This extension is deprecated since SAP Hybris 6.1. You must use the the Promotion Engine for new projects. Promotions (Legacy) vs. Promotion Engine

Key Concepts

Key Features

Workflow

Please use this advise carefully, as I wasn't able to check if this workflow actually works.

  1. The customer adds or removes products to the cart
  2. The cart is recalculated
  3. The method PromotionService.updatePromotions(…) is called.
  4. The result are returned. it includes the fired and the potential promotions, the entries used in the fired or potential promotions and a flag indicated of there were changes since the last evaluation.
  5. If the cart is updated, it must be recalculated and reapplied
  6. At the end of the checkout process the order is created using the cart.
  7. The promotions are applied to the order by calling the PromotionService.transferPromotionsToOrder.
  8. Now the persisted promotions or their results are returned by calling PromotionService.getOrderPromotions(…) and getPromotionResults(…)

The promotions and their results can be removed from the cart by calling PromotionService.cleanupCart(…)

Pitfalls

–Based on Hybris Version 6.1