Skip to content

No alert when user "Apply empty Coupon Code" in create new order form (issue 24015) #24016

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

Conversation

edenduong
Copy link
Contributor

Description (*)

  1. Resolve No alert when user "Apply empty Coupon Code" in create new order form #24015: No alert when user "Apply empty Coupon Code" in create new order form

Solution: Use alert modal in the case no coupon code.

Fixed Issues (if relevant)

  1. No alert when user "Apply empty Coupon Code" in create new order form #24015: No alert when user "Apply empty Coupon Code" in create new order form

Manual testing scenarios (*)

  1. Go to backend
  2. Sales->Orders->Create New Order
  3. Choose Customer, go to the Create New Order form
  4. Add some product to cart
  5. Click "Apply Coupon Code" without filling the field.

Expected result

  1. Alert the notification

Questions or comments

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 are green)

@m2-assistant
Copy link

m2-assistant bot commented Aug 5, 2019

Hi @edenduong. 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 give me test instance - deploy test instance based on PR changes
  • @magento give me 2.3-develop instance - deploy vanilla Magento instance

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

@rogyar
Copy link
Contributor

rogyar commented Aug 7, 2019

@magento give me test instance

@magento-engcom-team
Copy link
Contributor

Hi @rogyar. Thank you for your request. I'm working on Magento instance for you

@magento-engcom-team
Copy link
Contributor

Hi @rogyar, here is your new Magento instance.
Admin access: https://pr-24016.instances.magento-community.engineering/admin
Login: admin Password: 123123q

@rogyar
Copy link
Contributor

rogyar commented Aug 7, 2019

Hi @edenduong. Thank you for the improvement!

@rogyar rogyar added the Auto-Tests: Not Covered Changes in Pull Request requires coverage by auto-tests label Aug 7, 2019
@magento-engcom-team
Copy link
Contributor

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

@engcom-Delta
Copy link
Contributor

Hi @edenduong those changes produce new issue with coupon code: coupon code cannot be removed when click on Remove Coupon Code icon
Manual testing scenario:

  • Create Cart Price Rule with coupon code
  • Create simple product
  • Create customer
  • Go Sales->Orders->Create New Order
  • Choose customer
  • Add simple product
  • Enter valid coupon code to Apply Coupon Code filed and click Apply icon
  • Now click on Remove Coupon Code icon
  • ❌ Alert notification "Attention Please enter a coupon code!" is shown and coupon code cannot be removed
    image

@edenduong
Copy link
Contributor Author

@engcom-Delta: I am sorry about that. I have resolved it, you can check it again.
@rogyar: Please review my changes.

Thank you!

@edenduong
Copy link
Contributor Author

@rogyar: Could you please review my new changes?

@magento-engcom-team
Copy link
Contributor

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

@engcom-Delta
Copy link
Contributor

✔️ QA passed

@m2-assistant
Copy link

m2-assistant bot commented Aug 27, 2019

Hi @edenduong, 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.

@magento-engcom-team magento-engcom-team added this to the Release: 2.3.4 milestone Aug 27, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

No alert when user "Apply empty Coupon Code" in create new order form
6 participants