订餐


{% comment %} Source: https://gist.github.com/carolineschnapp/9122054 If you are not on a collection page, do define which collection to use in the order form. Use the following assign statement, replace 'your-collection-handle-here' with your collection handle. {% assign collection = collections.your-collection-handle-here %} Use the assign statement outside of this comment block at the top of your template. {% endcomment %} {% paginate collection.products by 100 %}
{% if collection.products_count > 0 %}

{% if template contains 'page' %}{{ page.title }}{% else %}{{ collection.title }}{% endif %}

{% else %}

{% if template contains 'page' %}{{ page.title }}{% else %}{{ collection.title }}{% endif %}

{% endif %} {% if template contains 'page' and page.content.size > 0 %}
{{ page.content }}
{% elsif collection.description.size > 0 %}
{{ collection.description }}
{% endif %} {% if collection.products_count > 0 %} {% for product in collection.products %} {% if product.available %} {% for variant in product.variants %} {% if variant.available %} {% endif %} {% endfor %} {% endif %} {% endfor %}
{{ variant.title | escape }} {{ product.title }}{% unless variant.title contains 'Default' %} - {{ variant.title }}{% endunless %}{% unless variant.sku == blank %} - {{ variant.sku }}{% endunless %} {{ variant.price | money }}
{% else %}

There are no products in this view.

{% endif %}
{% endpaginate %} {% if collection.products_count > 0 %}{% endif %}