【问题标题】:How to add a page with links to collections on shopify如何在shopify上添加带有收藏链接的页面
【发布时间】:2014-08-20 20:04:37
【问题描述】:

你好,天哪,我正在设置这个电子商务网站,我有 15 个类别,我想创建一个页面,将所有 15 个类别链接为一个项目或like that。我在 shopify click 中添加了教程,但它有点令人困惑但是在一个名为“目录”的新页面上,从那里可以看到所有 15 个类别的链接。

【问题讨论】:

    标签: collections frameworks e-commerce shopify


    【解决方案1】:

    我建议看看这个教程:Shopify Theme from Scratch Part 10: list-collections.liquid

    从上面的教程:

        <h2>Collections</h2>
        {% for collection in collections %}
            <div class="product left {% cycle '','','','last' %}">
              <div class="product-thumb">
                <a href="{{ collection.url  }}">
                    {% if collection.image %}
                        {{ collection.image.src | collection_img_url: 'medium' | img_tag: collection_title }}
                    {% else %}
                        {{ collection.products.first.featured_image | product_img_url: 'medium' | img_tag: collection_title }}
                    {% endif %}              
                </a>
              </div>
              <div class="product-title">
                <a href="{{ collection.url}}">
                    {{ collection.title }}
                  </a>
              </div>
            </div>
        {% endfor %}
    

    【讨论】:

    • 谢谢,这是我在 goodle 上没有找到的教程之一,但这很有效。 :)
    猜你喜欢
    • 1970-01-01
    • 2018-04-14
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2016-12-04
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多