{% comment %} See all documentation for this here: https://github.com/carolineschnapp/donation Author: Caroline Schnapp Enter below the handle of your link list that contains a first link pointing to your donation product. Then, you're done. {% endcomment %} {% assign linklist_handle = 'donation' %} {% if linklists[linklist_handle].empty? %}
You don't have a link list with handle {{ linklist_handle }}.
{% elsif linklists[linklist_handle].links.first.type != 'product_link' %}Your {{ linklists[linklist_handle].title }} link list does not contain a link that points to a product.
{% else %} {% assign product = linklists[linklist_handle].links.first.object %} {% comment %} If the product has one variant, we are showing a text box. If the product has more than 1 variant, we show radio buttons for each fixed amount, followed by a text box if we have a variant with price $1. {% endcomment %}