{% comment %} Quick Order Product Row Accepts: - item: {Object} Variant or Product object - image: {Object} Product or Variant image (optional) Usage: {% render 'quick-order-product-row' %} {% endcomment %}
{%- if image -%} {%- assign img_height = 36 | divided_by: image.aspect_ratio | ceil -%} {{ image | image_url: width: 72 | image_tag: loading: 'lazy', fetchpriority: 'low', decoding: 'async', class: 'variant-item__image', width: 36, height: img_height, widths: '72', alt: image.alt | escape }} {% endif %}
{{ item.title | escape }}