Is it possible to add to cart with a radio input rather than a select? I'd like to add a digital product to the cart using a radio input but all the template examples I see use select. Is it possible to use a radio input?

With Select (working):

&lt;select name="purchasableId"&gt;
  {% for digitalProduct in entry.fontProducts.all() %}
    &lt;option value="{{digitalProduct.purchasableId}}"&gt;{{digitalProduct.slug}}&lt;/option&gt;
  {% endfor %}
&lt;/select&gt;


With radio inputs (not working):

{% for digitalProduct in entry.exampleProducts.all() %}
  &lt;li&gt;
    &lt;div&gt;
      &lt;input 
        type="radio"
        name="product"
        value="{{digitalProduct.purchasableId}}" /&gt;
    &lt;/div&gt;
  &lt;/li&gt;
{% endfor %}
The name for your input needs to be purchasableId:

{% for digitalProduct in entry.exampleProducts.all() %}
  &lt;li&gt;
    &lt;div&gt;
      &lt;input 
        type="radio"
        name="purchasableId"
        value="{{digitalProduct.purchasableId}}" /&gt;
    &lt;/div&gt;
  &lt;/li&gt;
{% endfor %}