Closed (fixed)
Project:
Commerce Core
Version:
8.x-2.x-dev
Component:
Promotions
Priority:
Normal
Category:
Task
Assigned:
Reporter:
Created:
21 Jul 2016 at 16:47 UTC
Updated:
22 Sep 2016 at 15:34 UTC
Jump to comment: Most recent
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
Comment #2
mglamanPromotion offers are just about ready. Working on this now.
Comment #3
mglamanPR up with initial kernel test https://github.com/drupalcommerce/commerce/pull/475
Comment #4
bojanz commentedMerged.