Skip to Content

Only one product promotion from non exclusive group is executed

Hi,

I published two product percentage discount promotions on the same product. They are both part of productPromotionRuleGroup which has Exclusivity flag set to false. When I calculate cart which meets the conditions of both promotions, only one promotion is fired.

I'm using Hybris 1808

Is this a bug? Or if not how can I change behaviour of promotions so both get fired.

First promotion: action

 [{"definitionId":"y_order_entry_fixed_discount","parameters":{"value":{"uuid":"1d8bf69f-f897-4d3b-bed9-70ab11c3b6b9","type":"Map(ItemType(Currency),java.math.BigDecimal)","value":{"USD":1}}}}]

condition

 [{"definitionId":"y_group","parameters":{"operator":{"uuid":"0fdc6312-aa55-46c1-9c44-c2e9589f69a2","type":"Enum(de.hybris.platform.ruleengineservices.definitions.conditions.RuleGroupOperator)","value":"OR"}},"children":[{"definitionId":"y_qualifying_products","parameters":{"catalog_version":{"uuid":"4c9f84ff-aa66-4db9-ba6d-1e95ac49cc12","type":"ItemType(CatalogVersion)"},"products_operator":{"uuid":"ff07643a-659e-4d0c-8e43-05bcb83dd018","type":"Enum(de.hybris.platform.ruledefinitions.CollectionOperator)","value":"CONTAINS_ANY"},"quantity":{"uuid":"430c2963-51c5-408c-9b13-b36d29d9c436","type":"java.lang.Integer","value":1},"total_quantity":{"uuid":"abc294fa-3c10-40b1-8b00-867647aff9f8","type":"java.lang.Boolean","value":false},"excluded_products":{"uuid":"756f9d7c-a30e-4311-a430-88f4ae8e2c5d","type":"List(ItemType(Product))"},"operator":{"uuid":"581f98cc-ab45-48fd-a7b3-7c7367cec248","type":"Enum(de.hybris.platform.ruledefinitions.AmountOperator)","value":"GREATER_THAN_OR_EQUAL"},"products":{"uuid":"b78e8cb3-c6d8-41c5-a312-8d717e3c3b5a","type":"List(ItemType(Product))","value":["1234"]}},"children":[]},{"definitionId":"y_qualifying_collections","parameters":{"quantity":{"uuid":"bc93d60e-d6ce-474b-837b-899b6e182821","type":"java.lang.Integer","value":1},"collections":{"uuid":"b3cbc1bd-b1f6-4e6e-90a5-b9889ff274a0","type":"List(ItemType(CommerceCollection))"},"collections_operator":{"uuid":"42f366c7-5bfe-47a9-94de-0ea9f26bc8b1","type":"Enum(de.hybris.platform.ruledefinitions.CollectionOperator)","value":"CONTAINS_ANY"},"total_quantity":{"uuid":"1ac91606-6696-428e-8105-a5003cfe51b9","type":"java.lang.Boolean","value":false},"excluded_products":{"uuid":"c131dedb-add8-4f79-ac5c-d48e484e43b0","type":"List(ItemType(Product))"},"operator":{"uuid":"d274ae70-d69b-4d17-91a4-f171b228e492","type":"Enum(de.hybris.platform.ruledefinitions.AmountOperator)","value":"GREATER_THAN_OR_EQUAL"}},"children":[]},{"definitionId":"y_qualifying_categories","parameters":{"quantity":{"uuid":"1d21ebc3-865e-4575-b394-002f242fff4d","type":"java.lang.Integer","value":1},"categories_operator":{"uuid":"d6413ba4-d607-462e-b115-93ee3b6a4950","type":"Enum(de.hybris.platform.ruledefinitions.CollectionOperator)","value":"CONTAINS_ANY"},"total_quantity":{"uuid":"fca637aa-4e16-4d08-8e94-f608776a3d0d","type":"java.lang.Boolean","value":false},"excluded_categories":{"uuid":"e8348cfa-c314-4afc-8859-c3fd05f36bb4","type":"List(ItemType(Category))"},"categories":{"uuid":"f2e87e37-c043-46a2-a89e-b2a94f5b7b1f","type":"List(ItemType(Category))","value":[]},"excluded_products":{"uuid":"33faf84d-f2dc-4e05-bf00-574006e95c49","type":"List(ItemType(Product))","value":[]},"operator":{"uuid":"3a3ee87b-82cf-470f-b063-29b2f84ec83e","type":"Enum(de.hybris.platform.ruledefinitions.AmountOperator)","value":"GREATER_THAN_OR_EQUAL"}},"children":[]}]},{"definitionId":"base_store","parameters":{},"children":[]}]

second promotion: action

 [{"definitionId":"y_order_entry_percentage_discount","parameters":{"value":{"uuid":"a1a5d598-c351-43a4-92bf-eb63d877496a","type":"java.math.BigDecimal","value":10}}}]

condition

 [{"definitionId":"y_group","parameters":{"operator":{"uuid":"0bc4e42c-3b09-426c-a964-d5e7a296c498","type":"Enum(de.hybris.platform.ruleengineservices.definitions.conditions.RuleGroupOperator)","value":"OR"}},"children":[{"definitionId":"y_qualifying_products","parameters":{"catalog_version":{"uuid":"b51b75eb-5557-4a4d-a9e5-f0eb8094d6b1","type":"ItemType(CatalogVersion)"},"products_operator":{"uuid":"d6255410-0de6-4064-ae3e-5de2491b1b73","type":"Enum(de.hybris.platform.ruledefinitions.CollectionOperator)","value":"CONTAINS_ANY"},"quantity":{"uuid":"bac61470-129f-4d91-b725-d2019c71257b","type":"java.lang.Integer","value":1},"total_quantity":{"uuid":"40853de6-2284-423c-b08d-932c23126598","type":"java.lang.Boolean","value":false},"excluded_products":{"uuid":"dfe3b53e-6bf3-4dd6-abb3-8d6f68754c5b","type":"List(ItemType(Product))"},"operator":{"uuid":"a2f05b73-068d-45c2-bc28-ea163c3a893c","type":"Enum(de.hybris.platform.ruledefinitions.AmountOperator)","value":"GREATER_THAN_OR_EQUAL"},"products":{"uuid":"df622983-baac-4356-a4b9-fb6ea466fbc4","type":"List(ItemType(Product))","value":["1234"]}},"children":[]},{"definitionId":"y_qualifying_collections","parameters":{"quantity":{"uuid":"1c0cc070-34ea-44de-9337-23fa855a264d","type":"java.lang.Integer","value":1},"collections":{"uuid":"07210a98-6203-4621-a645-56e69b60423e","type":"List(ItemType(CommerceCollection))","value":[]},"collections_operator":{"uuid":"5e03ed03-4302-4ba2-903c-febeb584ee71","type":"Enum(de.hybris.platform.ruledefinitions.CollectionOperator)","value":"CONTAINS_ANY"},"total_quantity":{"uuid":"052cf6d5-2379-4853-a41a-130805591207","type":"java.lang.Boolean","value":false},"excluded_products":{"uuid":"9324d613-fb20-4536-bf54-225874bfbde2","type":"List(ItemType(Product))","value":[]},"operator":{"uuid":"0bc6eb0e-c39b-4679-af54-9ce624bf92a2","type":"Enum(de.hybris.platform.ruledefinitions.AmountOperator)","value":"GREATER_THAN_OR_EQUAL"}},"children":[]},{"definitionId":"y_qualifying_categories","parameters":{"quantity":{"uuid":"6307770f-e851-45a3-bc73-88634f8a4443","type":"java.lang.Integer","value":1},"categories_operator":{"uuid":"c361f681-2f88-44c4-acf5-27281568e313","type":"Enum(de.hybris.platform.ruledefinitions.CollectionOperator)","value":"CONTAINS_ANY"},"total_quantity":{"uuid":"722c9a50-21fa-4a7f-940b-2578aec5b7ea","type":"java.lang.Boolean","value":false},"excluded_categories":{"uuid":"dd0f76d2-f8be-4dc0-a68a-b94c2259327b","type":"List(ItemType(Category))","value":[]},"categories":{"uuid":"83e6ca48-3441-49e2-b3ff-eabb479e9966","type":"List(ItemType(Category))","value":[]},"excluded_products":{"uuid":"047bea52-4d89-4c97-8994-442239fc456c","type":"List(ItemType(Product))","value":[]},"operator":{"uuid":"631c6ced-468c-46c8-b4ca-97a3a3ac10b8","type":"Enum(de.hybris.platform.ruledefinitions.AmountOperator)","value":"GREATER_THAN_OR_EQUAL"}},"children":[]}]},{"definitionId":"base_store","parameters":{},"children":[]}]

Thanks in advance, Josip

Add a comment
10|10000 characters needed characters exceeded

Related questions

4 Answers

  • Posted on Oct 22, 2018 at 09:07 AM

    I tested on 6.6 and both promotions get executed. Anyone know if this is a bug and will it be fixed in future releases? Or is there some workaround?

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Oct 22, 2018 at 09:36 PM

    is stackable flag true for both promotions ? (assuming you are using the new promotion engine - with drools)

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Oct 23, 2018 at 10:00 AM

    have u checked the promotion priority? if u have the same priority on both the promotions, then onlyu one will get applied

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Oct 23, 2018 at 12:03 PM

    can u add the promotion definition to the question? i tried this on 1808, electronics accelerator and had no problems. both promotions were applied

    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.