Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@fendrychl
Copy link
Contributor

Q A
Branch? 1.3
Bug fix? yes
New feature? no
BC breaks? no
Deprecations? no
Related tickets
License MIT

When you create a promotion with a discount on delivery, you cannot submit an order.

Steps to reproduce
Create a promotion with "Shipping percentage discount" (set any percents). All orders with applied promotions are unable to finish. After submitting on last step, you will see a "Your order total has been changed, check your order information and confirm it again." message.

@fendrychl fendrychl requested a review from a team as a code owner October 17, 2018 11:25
@pamil pamil added the Potential Bug Potential bugs or bugfixes, that needs to be reproduced. label Oct 18, 2018
Copy link
Contributor

@pamil pamil left a comment

Choose a reason for hiding this comment

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

Would you be willing to provide a Behat scenario to prevent regressions?

@fendrychl fendrychl force-pushed the shipping_discount_bug branch 2 times, most recently from c283234 to c32d391 Compare October 20, 2018 12:29
@fendrychl
Copy link
Contributor Author

Added. 👍

@pamil pamil force-pushed the shipping_discount_bug branch from c32d391 to 2a747c3 Compare October 22, 2018 09:45
@pamil pamil changed the base branch from 1.3 to 1.2 October 22, 2018 10:39
Copy link
Contributor

@pamil pamil left a comment

Choose a reason for hiding this comment

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

The provided scenario passes without the proposed change in the code.

@fendrychl
Copy link
Contributor Author

It's because this problem isn't in 1.2. The shipping discount works as expected in 1.2 (even though there is the same line is in the code).

@pamil pamil changed the base branch from 1.2 to 1.3 October 23, 2018 12:26
@pamil pamil force-pushed the shipping_discount_bug branch from 2a747c3 to ed8c8ef Compare October 24, 2018 08:44
@pamil
Copy link
Contributor

pamil commented Oct 24, 2018

I'm sorry, you're right, it must be an error that started to happen after we fixed the percentage based promotions.

@fendrychl fendrychl force-pushed the shipping_discount_bug branch from ed8c8ef to 9540646 Compare October 26, 2018 08:40
@fendrychl
Copy link
Contributor Author

No problem :) I updated my branch with latest 1.3. All checks passed. Is it possible to merge now? Let me know if you need anything else to do.

Thanks.

@pamil
Copy link
Contributor

pamil commented Oct 26, 2018

Thanks, @fendrychl!

@pamil pamil merged commit e4af53a into Sylius:1.3 Oct 26, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Potential Bug Potential bugs or bugfixes, that needs to be reproduced.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants