hydrogen
hydrogen copied to clipboard
Add `removeGiftCardCodes`
WHY are these changes introduced?
SFAPI 2025-01
added a new mutation cartGiftCardCodesRemove
. Update skeleton code to use it
WHAT is this pull request doing?
- [x] Update skeleton to use the new method
removeGiftCardCodes
fromcreateCartHandler
- [ ] Update docs on the new methods
context.cart.removeGiftCardCodes
andcartGiftCardCodesRemoveDefault
- [ ] Bug: Add a couple gift card codes to cart, go to checkout and remove one of the gift card. When navigate back to shop, all the gift card code disappeared. After refresh, they come back.
HOW to test your changes?
Post-merge steps
Checklist
- [ ] I've read the Contributing Guidelines
- [ ] I've considered possible cross-platform impacts (Mac, Linux, Windows)
- [ ] I've added a changeset if this PR contains user-facing or noteworthy changes
- [ ] I've added tests to cover my changes
- [ ] I've added or updated the documentation