简体   繁体   English

在 Shopify 中按所有产品系列中的标签过滤

[英]Filter by tags in all collections in Shopify

I've scoured the web and still have not found an answer to this question.我已经在网上搜索,仍然没有找到这个问题的答案。

Shopify has the ability to use product tags as a filter, but it only works after a collection has been selected. Shopify 可以使用产品标签作为过滤器,但它只能选择了一个系列才能使用。 I would like to program it so that the customer can filter all products by tag before a collection has been chosen.我想对其进行编程,以便客户可以在选择集合之前按标签过滤所有产品。

The only "answer" I've found is this article , which again, only explains how to have a dropdown after a collection has been selected.我找到的唯一“答案”是这篇文章,它再次解释了如何在选择集合后创建下拉列表。

Please help!请帮忙!

You could create a collection containing all products, and then filter by tags on that collection.您可以创建一个包含所有产品的集合,然后按该集合上的标签进行过滤。

See this article in the Shopify docs for how to create a collection containing all products: 请参阅Shopify 文档中的这篇文章,了解如何创建包含所有产品的产品系列:

Add a collection with title 'All' and which you set to Automatically select products based on conditions .添加标题为“全部”的集合,并将其设置为Automatically select products based on conditions

Set the product condition 'Product price is greater than 0' .设置产品条件'产品价格大于 0' Then click save.然后点击保存。

Then you can go ahead and filter the collection using tags .然后您可以继续使用 tags 过滤集合

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM