Apply gift cards in the cart #1432
-
Is there a way to apply gift card codes in the cart, similar to how demo store does for discount codes? At checkout people can insert discount codes and gift card codes in the same input: I was wondering if this is possible to achieve with Hydrogen 🤔 I know that I could pass a custom method for |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 9 replies
-
@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 |
Beta Was this translation helpful? Give feedback.
-
Following this topic I found you can use the |
Beta Was this translation helpful? Give feedback.
@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