Promotions need a way to check if they apply. Our kernel tests for the PluginItem field actually test this right now. However we'll want to extend core's Condition plugin into PromotionCondition plugins. This gives us greater control over what is available in the UI for promotion conditions.

Conditions will be limited by the selection PromotionAction. We can do this because We know if the action applies to an order or line item. The promotion entity form can handle switching all of this around.

We also need to extend the core condition plugin so we can implement simple AND/OR logic.

Comments

mglaman created an issue. See original summary.

mglaman’s picture

Promotion offers are just about ready. Working on this now.

mglaman’s picture

Status: Active » Needs review
bojanz’s picture

Status: Needs review » Fixed

Merged.

  • mglaman committed 0a09673 on 8.x-2.x
    Issue #2770757 by mglaman: Implement offer conditions
    

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.