Skip to content

magento/magento2#12817: [Forwardport] Coupon code with canceled order. #20579

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

Merged
merged 6 commits into from
Jul 14, 2019

Conversation

p-bystritsky
Copy link
Contributor

@p-bystritsky p-bystritsky commented Jan 24, 2019

Forwardport for https://github.com/magento-engcom/magento2ce/pull/1095

Description

The number of coupon code uses is decreased if an order, that previously used this coupon code, is canceled.

Fixed Issues (if relevant)

  1. Coupon code with canceled order #12817: Coupon code with canceled order

Manual testing scenarios

  1. Create a Cart Price Rule with Specific Coupon. Set Uses per Coupon to 1.
  2. Create Order (1st Order).
  3. Apply the Coupon to 1st Order.
  4. Place the 1st Order.
  5. Create Order (2nd Order).
  6. Apply the Coupon to 2nd Order.
  7. Message "Coupon code is not valid" appears.
  8. Cancel 1st Order.
  9. Apply the Coupon to 2nd Order.
  10. Message "Your coupon was successfully applied." appears.
  11. Create a Cart Price Rule with Specific Coupon. Set Uses per Customer to 1.
  12. Repeat steps 2-10 with this Coupon (note than orders must be placed by logged customer).

Contribution checklist

  • Pull request has a meaningful description of its purpose
  • All commits are accompanied by meaningful commit messages
  • All new or changed code is covered with unit/integration tests (if applicable)
  • All automated tests passed successfully (all builds on Travis CI are green)

@magento-engcom-team
Copy link
Contributor

Hi @p-bystritsky. Thank you for your contribution
Here is some useful tips how you can test your changes using Magento test environment.
Add the comment under your pull request to deploy test or vanilla Magento instance:

  • @magento-engcom-team give me test instance - deploy test instance based on PR changes
  • @magento-engcom-team give me 2.3-develop instance - deploy vanilla Magento instance

For more details, please, review the Magento Contributor Assistant documentation

@PascalBrouwers
Copy link
Contributor

@slavvka Can you just approve this? Because it comes from 2.2.4 branch.

@m2-assistant

This comment has been minimized.

@davidverholen davidverholen reopened this May 25, 2019
@m2-assistant

This comment has been minimized.

@davidverholen
Copy link
Member

closed and reopened to trigger new checks

@davidverholen davidverholen self-assigned this May 25, 2019
Co-Authored-By: David Verholen <david@verholen.com>
@p-bystritsky
Copy link
Contributor Author

@davidverholen our suggestions committed.

@magento-engcom-team
Copy link
Contributor

Hi @davidverholen, thank you for the review.
ENGCOM-5171 has been created to process this Pull Request

@VasylShvorak
Copy link
Contributor

✔️ QA passed

@ghost ghost unassigned ysapiga Jun 6, 2019
@ghost
Copy link

ghost commented Jun 6, 2019

@ysapiga unfortunately, only members of the maintainers team are allowed to assign developers to the pull request

@ysapiga ysapiga self-assigned this Jun 7, 2019
@p-bystritsky
Copy link
Contributor Author

@p-bystritsky why did you move it back to changes requested?

@davidverholen we had some non-public issues, but now it seems like they are fixed.

@engcom-Delta
Copy link
Contributor

✔️ QA passed

@m2-assistant
Copy link

m2-assistant bot commented Jul 14, 2019

Hi @p-bystritsky, thank you for your contribution!
Please, complete Contribution Survey, it will take less than a minute.
Your feedback will help us to improve contribution process.

taskula pushed a commit to Hypernova-Oy/magento2 that referenced this pull request Jul 14, 2019
@magento-engcom-team magento-engcom-team added this to the Release: 2.3.3 milestone Jul 14, 2019
@sidolov sidolov added the Auto-Tests: Covered All changes in Pull Request is covered by auto-tests label Sep 14, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

10 participants