Shopify/buy-button-js

Add recipient fields for Gift Card in Buy Button interface

Opened this issue · 0 comments

Is there a way to enable recipient name/email fields in the Buy Button elements?

Here it shows it's possible for the online store
https://help.shopify.com/en/manual/online-store/themes/customizing-themes/add-gift-card-recipient-fields

And it looks like as long as I pass "recipient" to a gift_card object, it would trigger the notifications, but how could I pass those values to checkout? Can create the fields myself and then pass the values to the js engine? How could I accomplish that?