【问题标题】:shopify liquid collection loopshopify 液体收集循环
【发布时间】:2018-04-13 01:04:19
【问题描述】:

## 我如何编写一个 Shopify 集合循环,它将: - 仅列出包含超过 10 个产品的集合 - 列出集合标题 - 将集合标题链接到集合 url

【问题讨论】:

    标签: shopify liquid shopify-app


    【解决方案1】:

    您应该阅读 Shopify 文档,因为这是非常基础的。

    {% for collection in collections %}
        {% if collection.products_count > 10 %}
            <h4>
                <a href="{{ collection.url }}">{{ collection.title }}</a>
            </h4>
        {% endif %}
    {% endfor %}
    

    【讨论】:

      猜你喜欢
      • 2020-08-22
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2021-03-15
      • 2012-06-06
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多