Skip to content

Fix coupon clicks #683

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

Open
wants to merge 4 commits into
base: develop
Choose a base branch
from
Open

Conversation

tswfi
Copy link
Contributor

@tswfi tswfi commented Mar 12, 2025

Questions Answers
Description? Fix problems with multiple highlighted coupon codes. Only the first highlighted coupon would work. Also fix multiple clicks on the coupon so that it does not toggle the input field. And fix problem when the input field was open already that clicking on highlighted coupon would close it again. Make remove coupon a post (next step would be to make it ajax call, but the current handleCartAction is not generic enough)
Type? bug fix
BC breaks? maybe? (link changed to form)
Deprecations? no
Fixed ticket? Fixes #684
Sponsor company Your company or customer's name goes here (if applicable).
How to test? Prereqs: Add two cart coupons that are highlighted. View cart. Adding multiple coupons: Click on one coupon, the input field shows up, click apply, click on the next coupon. The click should work and the input field prefilled. Removing click on the trash button on the coupon line, the url should stay as "action=show" and no token is in the url and the coupon is removed.

@github-project-automation github-project-automation bot moved this to Ready for review in PR Dashboard Mar 12, 2025
@tswfi
Copy link
Contributor Author

tswfi commented Mar 12, 2025

Unit tests are broken?
image

@tswfi tswfi force-pushed the fix_coupon_clicks branch from eda5556 to b24e2a0 Compare March 13, 2025 08:08
@tswfi
Copy link
Contributor Author

tswfi commented Mar 13, 2025

rebased to get unit tests working

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Ready for review
Development

Successfully merging this pull request may close these issues.

Highlighted coupons in cart do not work in all situations
1 participant