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
[CatalogPromotion] Add exclusiveness flag #13303
Merged
GSadee
merged 6 commits into
Sylius:master
from
AdamKasp:add-exclusivness-of-catalog-promotion-v3
Nov 25, 2021
Merged
[CatalogPromotion] Add exclusiveness flag #13303
GSadee
merged 6 commits into
Sylius:master
from
AdamKasp:add-exclusivness-of-catalog-promotion-v3
Nov 25, 2021
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Contributor
AdamKasp
commented
Nov 18, 2021
Q | A |
---|---|
Branch? | master |
Bug fix? | no |
New feature? | yes |
BC breaks? | no |
License | MIT |
AdamKasp
force-pushed
the
add-exclusivness-of-catalog-promotion-v3
branch
2 times, most recently
from
November 18, 2021 10:28
84eb3a6
to
31ca767
Compare
probot-autolabeler
bot
added
the
Documentation
Documentation related issues and PRs - requests, fixes, proposals.
label
Nov 18, 2021
AdamKasp
force-pushed
the
add-exclusivness-of-catalog-promotion-v3
branch
2 times, most recently
from
November 18, 2021 10:39
131bdf0
to
1c4915c
Compare
GSadee
reviewed
Nov 18, 2021
...ures/promotion/applying_catalog_promotions/applying_only_exclusive_catalog_promotion.feature
Outdated
Show resolved
Hide resolved
src/Sylius/Bundle/CoreBundle/Resources/config/doctrine/model/ChannelPricing.orm.xml
Outdated
Show resolved
Hide resolved
src/Sylius/Bundle/PromotionBundle/Doctrine/ORM/CatalogPromotionRepository.php
Outdated
Show resolved
Hide resolved
src/Sylius/Bundle/PromotionBundle/Resources/config/doctrine/model/CatalogPromotion.orm.xml
Outdated
Show resolved
Hide resolved
Zales0123
reviewed
Nov 18, 2021
...ures/promotion/applying_catalog_promotions/applying_only_exclusive_catalog_promotion.feature
Outdated
Show resolved
Hide resolved
src/Sylius/Bundle/CoreBundle/Applicator/CatalogPromotionApplicator.php
Outdated
Show resolved
Hide resolved
AdamKasp
force-pushed
the
add-exclusivness-of-catalog-promotion-v3
branch
from
November 22, 2021 10:19
347e40e
to
0b50104
Compare
AdamKasp
force-pushed
the
add-exclusivness-of-catalog-promotion-v3
branch
6 times, most recently
from
November 23, 2021 11:14
d8ed706
to
4bda9bd
Compare
GSadee
reviewed
Nov 24, 2021
src/Sylius/Bundle/CoreBundle/Migrations/Version20211122104644.php
Outdated
Show resolved
Hide resolved
src/Sylius/Bundle/CoreBundle/Formatter/AppliedPromotionInformationFormatter.php
Outdated
Show resolved
Hide resolved
AdamKasp
force-pushed
the
add-exclusivness-of-catalog-promotion-v3
branch
from
November 24, 2021 18:38
4bda9bd
to
9d78dca
Compare
GSadee
approved these changes
Nov 25, 2021
Comment on lines
+146
to
+151
if (reset($this->appliedPromotions)['is_exclusive']) | ||
{ | ||
return true; | ||
} | ||
|
||
return false; |
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.
Suggested change
if (reset($this->appliedPromotions)['is_exclusive']) | |
{ | |
return true; | |
} | |
return false; | |
return reset($this->appliedPromotions)['is_exclusive']); |
Thanks, Adam! 🎉 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
Admin
AdminBundle related issues and PRs.
Documentation
Documentation related issues and PRs - requests, fixes, proposals.
Shop
ShopBundle related issues and PRs.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.