-
-
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
[ChannelPricing] Ability to remove price on channel pricing when channel is disabled #11820
Conversation
Tomanhez
commented
Sep 8, 2020
•
edited
Loading
edited
Q | A |
---|---|
Branch? | 1.8 |
Bug fix? | yes |
New feature? | yes |
BC breaks? | no |
Deprecations? | no |
License | MIT |
529a09d
to
eeba2a8
Compare
/** @var ChannelInterface $channel */ | ||
$channel = $options['channel']; | ||
|
||
if (!$channel->isEnabled() && $channelPricing->getPrice() === null) { |
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.
I'm wondering if we should cover the original price as well in this condition
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.
This is next bug, I will open new PR with next scenario to cover it
src/Sylius/Bundle/CoreBundle/Form/Type/Product/ChannelPricingType.php
Outdated
Show resolved
Hide resolved
0add6e1
to
547dedd
Compare
features/product/managing_products/removing_product_price_from_disabled_channel.feature
Outdated
Show resolved
Hide resolved
features/product/managing_products/removing_product_price_from_disabled_channel.feature
Outdated
Show resolved
Hide resolved
ac5a27d
to
73ca063
Compare
73ca063
to
56b55d5
Compare
56b55d5
to
b116c7c
Compare
|
||
Background: | ||
Given the store operates on a channel named "Web-US" in "USD" currency | ||
And the store operates on another channel named "Web-GB" in "USD" currency |
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.
Why not?
And the store operates on another channel named "Web-GB" in "USD" currency | |
And the store operates on another channel named "Web-GB" in "GBP" currency |
@@ -855,6 +855,17 @@ public function theProductShouldNotHaveAnAssociationWithProduct( | |||
Assert::false($this->updateSimpleProductPage->hasAssociatedProduct($productName, $productAssociationType)); | |||
} | |||
|
|||
/** | |||
* @Then I should be notified that original price can not be defined without price |
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.
I guess it should be removed from this PR
Thanks, Tomasz! 🎉 |
…anhez, lchrusciel) This PR was merged into the 1.7 branch. Discussion ---------- | Q | A | --------------- | ----- | Branch? | 1.7 | Bug fix? | yes | New feature? | no | BC breaks? | no | Deprecations? | no | License | MIT Down merge for : #11820 <!-- - Bug fixes must be submitted against the 1.7 branch (the lowest possible) - Features and deprecations must be submitted against the master branch - Make sure that the correct base branch is set To be sure you are not breaking any Backward Compatibilities, check the documentation: https://docs.sylius.com/en/latest/book/organization/backward-compatibility-promise.html --> Commits ------- 8b3c8f6 [Behat] removing product price for disabled channel b376ec1 Fix channel pricing type e465dc8 Fixes for tests and FormType 8bcc4a5 [Admin] Channel pricing removal for channels where the product is not available 6a4eba6 Fixes for tests