-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Core][Originator] Base on promotion codes instead of originator #5537
[Core][Originator] Base on promotion codes instead of originator #5537
Conversation
Looks good! 👍 Since we have adjustments applied on different levels, what do you think about adding one more scenario for item promotion? |
@@ -93,6 +92,16 @@ public function isCredit(); | |||
*/ | |||
public function isLocked(); | |||
|
|||
/** | |||
* @return int |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
According to spec it should be string instead of int
@michalmarcinkowski ok, I fact there is no possibility for such scenario 😄 we have now two types of unit promotions - fixed and percentage and both uses |
7d0e728
to
5dbdda0
Compare
🎆 |
@Zales0123 there is possibility! 😄 We can use order promotion rule together with item promotion action, e.g.: |
This change couples adjustments to promotions? What if an adjustment is made by a non-promotion? |
Hmm. Now I wonder if I should be using promotions ... |
It doesn't couple adjustments with promotions. Promotions just use |
ok, yes I see now. so I can still reference something with the combination of the |
As
Promotion
s have now unique codes, there is no need to use separate service to determine origin of promotion (or any other adjustment).