Skip to content
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: Make total of cart minus any discounts gift cardable #5015

Closed

Conversation

Arsenalist
Copy link
Contributor

@Arsenalist Arsenalist commented Sep 11, 2023

This updates the gift cardable amount to equal the total of the cart minus any discounts.

When the order is created from the cart, the existing logic works fine and applies the gift card to the whole amount. It is only when displaying the cart where the amount isn't being applied to all the totals in the cart.

Customers who are applying gift card expect the card to cover all balances since gift cards are a form of payment.

@Arsenalist Arsenalist requested a review from a team as a code owner September 11, 2023 14:51
@changeset-bot
Copy link

changeset-bot bot commented Sep 11, 2023

⚠️ No Changeset found

Latest commit: e761e11

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@vercel
Copy link

vercel bot commented Sep 11, 2023

@Arsenalist is attempting to deploy a commit to the medusajs Team on Vercel.

A member of the Team first needs to authorize it.

@Arsenalist
Copy link
Contributor Author

Can I please get some feedback on whether this can be merged? This is my first contribution so I don’t know if I’m following the right process. Apologies if I am not. @chemicalkosek @adrien2p

@Arsenalist
Copy link
Contributor Author

Anyone able to comment on this?

@adrien2p
Copy link
Member

@Arsenalist Thanks for the pr, we will have a look and discuss about it, I just want to be sure the changes are the right one

@Arsenalist
Copy link
Contributor Author

@Arsenalist Thanks for the pr, we will have a look and discuss about it, I just want to be sure the changes are the right one

Hi, is there an ETA when this could be potentially merged? I'm ready to release gift cards to my customers but don't want to have the cart showing the wrong information (even though the order part works as expected).

@adrien2p
Copy link
Member

I ve open a more complete pr here #5075 and we just need to discuss it to be sure se don't introduce any unforeseen bug and then we will merge it.

@riqwan
Copy link
Contributor

riqwan commented Jul 5, 2024

Hey, thanks for the PR! Since v2 brought a lot of architectural changes, we will be closing this PR since it no longer applies to our new setup.

If you would still like to open this PR, please rebase with the v1 branch and re-request a review & we'll get back on it quickly.

@riqwan riqwan closed this Jul 5, 2024
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.

3 participants