Skip to Content
author's profile photo Former Member
Former Member

Why does Order Threshold Free Gift Promotion change entry numbers?


I have created Order Threshold Free Gift promotion. Lets say that the free product is "X". I added products "A", "B", "C" and "X" to my cnd this triggers free gift promotion. So now I have 5 order lines - each for every "normal" price product and separate line for free "X" product.

Order line which contains free gift product has entrynumber = 6. Which is strange, since the size of entries is 5 and the last entry number should have been 4. This is not the only issue what I noticed. Cart contains all of my selected products, but some of the entryNumbers are missing. I have following cart entry numbers: 0, 1, 3, 5, 6. So there are no cart entries with numbers 2 and 4.

Hybris version=

Has anyone faced the same issue as me?

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on Oct 03, 2016 at 09:35 AM


    If you investigate jalo class of OrderThresholdGreeGiftPromotion, you eventually get to the class PromotionOrderAddFreeGiftAction, where you should see, that new order entry is being added with the gift product. It is not rare in ootb promotions logic to remove-add new entries in the cart. Best regards!

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.