Skip to content

Apply gift cards in the cart #1432

Answered by wizardlyhel
maplessmann asked this question in Help
Discussion options

You must be logged in to vote

@maplessmann Hi, we just merged #2298 that would add the method for applying gift card code. This method will be available in the September release. You only need a cart id to add a gift card code to cart.

As for combining the gift card code and discount code input into one, this is certainly do-able. However, you would need to handle the logic of distinguishing a gift card code input vs a discount code input in your routes/cart.ts

Replies: 2 comments 9 replies

Comment options

You must be logged in to vote
7 replies
@dvnrsn
Comment options

@wizardlyhel
Comment options

@dvnrsn
Comment options

@wizardlyhel
Comment options

@dvnrsn
Comment options

Answer selected by maplessmann
Comment options

You must be logged in to vote
2 replies
@dvnrsn
Comment options

@johnxy84
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
5 participants