Skip to content
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] Removed OrderItem based promotions #4103

Merged

Conversation

Zales0123
Copy link
Member

Q A
Bug fix? no
New feature? no
BC breaks? yes
Deprecations? no
Fixed tickets
License MIT
Doc PR

In favor of upcoming changes with promotions system, it's time to clean up a little bit :) Here I remove some residues of OrderItem-based promotions.

@michalmarcinkowski
Copy link
Contributor

👍

@michalmarcinkowski michalmarcinkowski added the BC Break PRs introducing BC breaks (do not even try to merge). label Feb 10, 2016
@@ -223,6 +223,7 @@ class BookController extends ResourceController
### Core and CoreBundle

* Moved ``taxCategory`` from ``Product`` to ``ProductVariant``
* Set ``OrderItem`` not to be ``PromotionSubject``
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Set not to be... 💃

  • OrderItem model from Core component no longer implements PromotionSubjectInterface, remove all usages of addPromotion, etc. from your custom code. Custom actions targeting items need to be adjusted, see ContainsProductRuleChecker for reference.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I knew that it's not good enough 😄 👍

@Zales0123 Zales0123 force-pushed the remove-order-item-based-promotions branch from 1077d25 to 8efdcd3 Compare February 10, 2016 15:29
michalmarcinkowski added a commit that referenced this pull request Feb 11, 2016
…tions

[Core] Removed OrderItem based promotions
@michalmarcinkowski michalmarcinkowski merged commit 42cf72f into Sylius:master Feb 11, 2016
@rvanlaak
Copy link
Contributor

For reference purpose: #4954

@Zales0123 Zales0123 deleted the remove-order-item-based-promotions branch October 28, 2016 13:45
pamil pushed a commit to pamil/Sylius that referenced this pull request May 7, 2019
…-promotions

[Core] Removed OrderItem based promotions
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
BC Break PRs introducing BC breaks (do not even try to merge).
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants