In this article, I provide an overview of the common promotion mechanics and their default implementation in SAP hybris. You may be surprised to learn that some things don’t work as expected. I explain the edge cases and typical flaws with the default implementation and offer words of advice on how to build it properly.
In one of our projects, we have a requirement to exclude certain products from the total cart value calculation. So, for example, we would have a custom condition which would trigger a free gift action if the order total > 200 without including product A and product B on the order. This is a good example of the requirement that looks tough for hybris. I’m sharing my solution with you as well as a video demonstration and architecture details.
I managed to leverage hybris rule engine (Drools based) for the rule-based product recommendations. The existing hybris rule builder allows you to easily set up the comprehensive recommendation rules.