Gift cards not adding to cart - Horizon 3.1.0

I am using Shopify’s standard gift card set up on Horizon 3.1.0. When I add a gift card to my cart, nothing appears in the cart.

Here is the gift card page - Sherlock & Pages Gift Card.

Does anyone know the solution?

Thanks!

1 Like

You need to check your gift card settings.
When you add it to card, the response from the system is:

description: 
"The product 'Sherlock & Pages Gift Card - £100' is already sold out."
message: 
"The product 'Sherlock & Pages Gift Card - £100' is already sold out."
status: 
422

Hey there :waving_hand:

This usually happens when the gift card isn’t properly linked to the theme’s cart snippet or there’s a JavaScript conflict. A few things to check:

1. Theme cart integration: Make sure your theme’s cart template includes the standard Shopify {% form ‘gift_card’ %} snippet. Some custom themes override the cart and don’t automatically display gift cards.

2. App/JS conflicts: If you have apps that modify the cart (like upsells, pop-ups, or custom scripts), temporarily disable them to see if the gift card appears.

3. Test in default theme: Switch to Shopify’s Dawn or other default theme and add a gift card - if it works there, the issue is theme-related.

4. Cache & browser: Sometimes browser cache or cookies can prevent cart updates - clear cache and try again.

Fixing the snippet or adjusting the theme usually resolves this. If it still doesn’t work, inspecting the console for JavaScript errors can point to the culprit.

Thanks for your responses.

  • On the settings, the gift cards are active and have unlimited inventory (inventory not tracked). I can’t see why they are sold out.

  • I am using Shopify’s own theme - Horizon 3.1.0 - and haven’t edited the code at all. That being said, the {% form ‘gift_card’ %} snippet does not appear in the cart template.

  • I turned off all apps, and the gift cards still do not appear in the cart when added.

    I deleted my cache, tried different browsers, same result.

    Any other ideas as to the cause?

For a physical product this is usually caused by your location settings, shipping settings, market price-lists, etc.
But this is not a physical product…

However your other products can be added to cart, so I’d re-check how else the gift card is different from other products. Unfortunately, hard to help from the outside with this.

I found the solution from @cwhaas

  • I had added an extra value to by gift card by adding a variant. After this moment, my gift cards stopped working.
  • To fix it, I created a new gift card with all the denominations I wanted and deleted the original gift card.
  • My gift cards now add to the cart and work.
  • It’s a bug with the Shopify platform and that’s the workaround.
1 Like