-
-
Notifications
You must be signed in to change notification settings - Fork 3k
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(medusa): Remove shipping on updates to cart.items
#4715
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎ 1 Ignored Deployment
|
🦋 Changeset detectedLatest commit: 75999ae The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
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.
LGTM, i think it is fine to remove the methods completely when we update the items ✅
cart.items
/snapshot-this |
Crazy quick fix! thanks! If i am not mistaken you missed the addOrUpdateLineItems function. |
Right, thx @SimonsThijs! Now that you've seen what needs to be added, would you be up for tackling this one? |
Yes, should be no problem. @olivermrbl do you want me to just make a new pull request? |
That would be great, thanks! |
Alright #4725 ✅ |
@adrien2p, what do you think about this? Resolves #4707
I think it's reasonable to remove the method on line item updates to always ensure correct shipping on the cart.
The more elegant way would be to validate if the shipping method is still applicable given the update to the items, but that is a more extensive change that I don't know if we should do given we will be modularizing the cart + shipping soon.