Closed (fixed)
Project:
Commerce Core
Version:
8.x-2.x-dev
Component:
Promotions
Priority:
Normal
Category:
Feature request
Assigned:
Reporter:
Created:
2 Apr 2019 at 21:44 UTC
Updated:
17 Apr 2019 at 09:24 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
bojanz commentedThanks for opening the issue!
OrderItemPromotionOfferInterface has a getConditions() method.
We can introduce a getConditionOperator() method, just like we have on PaymentGatewayInterface and PromotionInterface.
This can then be used by the Promotion and OrderItemQuantity classes, without requiring people to swap both when replacing OR with AND. Plus, it opens the door for a future UI.
Comment #3
bojanz commentedLet's try this.
Comment #5
bojanz commentedFixed the failing test and committed.