-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
Fix: Make total of cart minus any discounts gift cardable #5015
Conversation
|
@Arsenalist is attempting to deploy a commit to the medusajs Team on Vercel. A member of the Team first needs to authorize it. |
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 |
Anyone able to comment on this? |
@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). |
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. |
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. |
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.