Skip to content

Conversation

@elizabeth-ilina
Copy link
Contributor

@elizabeth-ilina elizabeth-ilina commented May 30, 2025

Because

  • Before signing in, a valid coupon was applied to the subscription. However, after signing in, the coupon is no longer on the subscription.

This pull request

  • Copies previous cart's values into the new cart after user authentication.

Issue that this pull request solves

Closes: #FXA-11344

Checklist

Put an x in the boxes that apply

  • My commit is GPG signed.
  • If applicable, I have modified or added tests which pass locally.
  • I have added necessary documentation (if appropriate).
  • I have verified that my changes render correctly in RTL (if appropriate).

Screenshots (Optional)

Please attach the screenshots of the changes made in case of change in user interface.

Other information (Optional)

Any other information that is important to this pull request.

@elizabeth-ilina elizabeth-ilina force-pushed the FXA-11344-applied-coupon-code-disappears branch 2 times, most recently from fc4cc90 to cb3141a Compare June 2, 2025 17:13
@elizabeth-ilina elizabeth-ilina marked this pull request as ready for review June 2, 2025 17:17
@elizabeth-ilina elizabeth-ilina requested a review from a team as a code owner June 2, 2025 17:17
@elizabeth-ilina elizabeth-ilina force-pushed the FXA-11344-applied-coupon-code-disappears branch 3 times, most recently from 53d1202 to a08aa98 Compare June 2, 2025 18:27
@elizabeth-ilina elizabeth-ilina force-pushed the FXA-11344-applied-coupon-code-disappears branch 2 times, most recently from cc25bc3 to c295ff7 Compare June 3, 2025 14:45
@elizabeth-ilina elizabeth-ilina force-pushed the FXA-11344-applied-coupon-code-disappears branch 3 times, most recently from 1fd28b3 to c9672c3 Compare June 3, 2025 14:58
@elizabeth-ilina elizabeth-ilina marked this pull request as draft June 3, 2025 14:58
@elizabeth-ilina elizabeth-ilina force-pushed the FXA-11344-applied-coupon-code-disappears branch 2 times, most recently from e7309cd to dc63509 Compare June 3, 2025 15:39
@elizabeth-ilina elizabeth-ilina requested a review from julianpoy June 3, 2025 15:56
@elizabeth-ilina elizabeth-ilina force-pushed the FXA-11344-applied-coupon-code-disappears branch 2 times, most recently from 78f270a to 226e88d Compare June 3, 2025 18:30
@elizabeth-ilina elizabeth-ilina marked this pull request as ready for review June 3, 2025 18:55
@elizabeth-ilina elizabeth-ilina marked this pull request as draft June 4, 2025 14:36
@elizabeth-ilina elizabeth-ilina force-pushed the FXA-11344-applied-coupon-code-disappears branch 4 times, most recently from 177b99e to c36ad41 Compare June 4, 2025 20:01
@elizabeth-ilina elizabeth-ilina force-pushed the FXA-11344-applied-coupon-code-disappears branch from c36ad41 to a65e325 Compare June 4, 2025 20:02
@elizabeth-ilina elizabeth-ilina marked this pull request as ready for review June 4, 2025 20:34
Copy link
Contributor

@StaberindeZA StaberindeZA left a comment

Choose a reason for hiding this comment

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

r+wc. Just a few small changes, but this looks good to me.

fxaUid
let cart: ResultCart;

if (searchParams.cartId && fxaUid) {
Copy link
Contributor

Choose a reason for hiding this comment

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

nit. should this include cartVersion as well?

@elizabeth-ilina elizabeth-ilina force-pushed the FXA-11344-applied-coupon-code-disappears branch 2 times, most recently from 9f95074 to 971e855 Compare June 5, 2025 13:15
Comment on lines 145 to 146
redirectToUrl.searchParams.delete('countryCode');
redirectToUrl.searchParams.delete('postalCode');
Copy link
Member

Choose a reason for hiding this comment

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

Can these be removed now, or do they need to remain here?

… on checkout page after signing in

Because:

* Before signing in, a valid coupon was applied to the subscription. However, after signing in, the coupon is no longer on the subscription.

This commit:

*

Closes #FXA-11344
@elizabeth-ilina elizabeth-ilina force-pushed the FXA-11344-applied-coupon-code-disappears branch from 971e855 to 03452c3 Compare June 5, 2025 16:20
@elizabeth-ilina elizabeth-ilina merged commit 3be2974 into main Jun 5, 2025
19 checks passed
@elizabeth-ilina elizabeth-ilina deleted the FXA-11344-applied-coupon-code-disappears branch June 5, 2025 16:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants