Gift cards not adding to cart - Horizon 3.1.0

Topic summary

Issue: On Shopify’s Horizon 3.1.0 theme, adding a gift card to the cart resulted in nothing appearing. The network response showed status 422 with a message that the gift card variant was already sold out, despite gift cards being active and inventory not tracked. Other products added to cart normally.

Initial checks suggested: ensure cart integration uses the form ‘gift_card’, disable apps/JS conflicts, test in a default theme, and clear cache. These did not resolve it; the cart template did not contain the gift card form, but the root cause lay elsewhere.

Root cause and fix: A variant was manually added to the Gift Card product via Products instead of using Gift Card > Add a Gift Card (denominations). This caused the system to treat gift card variants as sold out. Creating a new gift card product with all desired denominations via the gift card flow, and retiring the old product (draft or delete), restored add-to-cart.

Outcome: Resolved with a workaround. Considered a Shopify platform bug; no code changes required.

Summarized with AI on December 11. AI used: gpt-5.

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