Frontend Development
App adds custom properties to line item in order to identify scheduled gift card product. Our app block (added through Shopify Theme Customizer) does that automatically for you, however it is also possible to add this line item fields manually in code editor.
This might be helpful if you want to add additional fields for scheduling gift card anywhere outside product page (for example on collection grid item). Also if your theme does not support App Blocks - you might add these properties manually on product page.
For a gift card product to be automatically scheduled you need to include one line item property named:
The value of the property is a base64 encoded string of properties, i.e:
Decoded json:
You can use following one-liner to create encoded value for _gcp_checksum
:
Last updated