Tags 在Shopify中使用标签筛选集合集合

Tags 在Shopify中使用标签筛选集合集合,tags,shopify,liquid,Tags,Shopify,Liquid,在Shopify中,我希望在没有产品的级别上提供标签,这样我就可以使用标签过滤 例如,在销售珠宝的网站上,以下是层次结构: level 0: homepage (rings, earrings, pendants, or the-john-smith-collection) level 1: grid of top level collection (earrings, for example) level 2: grid of sub-collection (model-123) of e

在Shopify中,我希望在没有产品的级别上提供标签,这样我就可以使用标签过滤

例如,在销售珠宝的网站上,以下是层次结构:

level 0: homepage (rings, earrings, pendants, or the-john-smith-collection)

level 1: grid of top level collection (earrings, for example)

level 2: grid of sub-collection (model-123) of earrings 

level 3: grid of all earrings of model-123

level 4: product page for earring-xyz of model-123
我知道我能够在第3级通过标签进行过滤,没有任何问题,因为我在一个类别中查看大量产品

我的问题是-是否有任何方法可以访问级别2上每个模型子集合中所有产品的所有标签。我会有一个集合,其中包含一系列子集合,但没有实际的产品,但我希望能够通过这些子集合中的所有产品标签进行过滤,因此我可以执行以下操作:

From the homepage, select the "rings" collection

See the rings category - a grid of 20 different sub-collections

Have a side filter menu, from which I'm able to click "see only rings tagged with "amethyst"

Be taken to a grid of all products matching those tags 

有什么想法吗?

不确定您是否仍在寻找这个问题的答案,但这在Shopify中是可能的

我最近遇到了Shopify内置的一个免费主题,它可以在收藏页面“ShowBrowse by tag”下的“自定义”面板中找到

但是,我在Shopify上也发现了一个程序,它向你展示了如何在你自己的下拉列表中编程,可以通过标签进行浏览。此代码仅在选择集合后有效

/*产品标签过滤器-适用于任何类型集合页面上的任何数量的过滤器*/ /*卡罗琳·施纳普带给你的*/ var coll filters=jQuery'.coll filter'; coll.change函数{ var newTags=[]; collFilters.eachfunction{ 如果jQuerythis.val{ newTags.pushjQuerythis.val; } }; 如果newTags.length{ var query=newTags.join'+'; window.location.href=jQuery'{{'tag'| link_to_tag:'tag'}}'。attr'href'。替换'tag',query; } 否则{ {%if collection.handle%} window.location.href='/collections/{{collection.handle}}}'; {%elsif collection.products.first.type==collection.title%} window.location.href='{{collection.title}url_for_type}}'; {%elsif collection.products.first.vendor==collection.title%} window.location.href=“{{collection.title}url}用于供应商}”; {%endif%} } }; 按标签浏览:

全部的 {%用于集合中的标记。所有_标记%} {%如果当前_标记包含标记%} {{tag}} {%else%} {{tag}} {%endif%} {%endfor%}