-
Notifications
You must be signed in to change notification settings - Fork 2
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
Fix coupon apply button bug #296
Conversation
3c0d164
to
50b0feb
Compare
50b0feb
to
5e4f913
Compare
Codecov Report
@@ Coverage Diff @@
## master #296 +/- ##
==========================================
- Coverage 94.12% 94.11% -0.02%
==========================================
Files 160 160
Lines 5400 5418 +18
Branches 312 312
==========================================
+ Hits 5083 5099 +16
- Misses 261 263 +2
Partials 56 56
Continue to review full report at Codecov.
|
5e4f913
to
ed2b0a1
Compare
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.
Works as described but I noticed an issue when I have an "auto" coupon that is valid for the product in my basket. If I clear out the coupon code and click "Apply", the auto coupon is added to the basket and applied to the price, but does not show up in the coupon input field, unless I refresh the page:
Ah, good catch. I'll investigate. |
ed2b0a1
to
414ba0f
Compare
I think that should fix it |
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.
👍
Pre-Flight checklist
What are the relevant tickets?
Fixes #268
What's this PR do?
Fixes logic on frontend where the coupon code submitted and the one rendered in the text field were calculated differently.
How should this be manually tested?
Apply a coupon. Refresh the page. Click the "Apply" button next to the coupon code. Nothing should appear to change. If you look in the network tab you should see a successful PATCH to the basket with the coupon code. On master you would see the coupon being removed from the basket, which is incorrect.