Gift cards - Recipients & Deliver dates #1905
-
|
Last summer the gift card functionality was rolled out in most all non-headless themes. Does this exist via the Storefront API? I can't seem to find it anywhere, and I'd love to implement it if it does! https://shopify.dev/docs/themes/product-merchandising/gift-cards |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 9 replies
-
|
@emiliekmartinez what are you trying to accomplish? |
Beta Was this translation helpful? Give feedback.
-
|
I ran into this same wall recently. The Storefront API is still lagging behind the native Liquid implementation for those specific gift card recipient fields. If you don't want to wait for a Shopify update, a solid workaround is to handle these as Line Item Properties. I actually use an app I've been working on called Misk Smart Product Options to solve this. It lets you add Recipient Name and Delivery Date (with a date picker) as custom fields right on the product page. The best part is that it passes that data into the order notes/properties automatically, which works perfectly with the Storefront API without needing a custom headless schema. Might save you the headache of building a custom metadata solution from scratch! |
Beta Was this translation helpful? Give feedback.



For anyone else watching this, the answer is to pass
oninto the field 🙈{key: '__shopify_send_gift_card_to_recipient', value: 'on'}These docs should be updated: https://shopify.dev/docs/themes/product-merchandising/gift-cards