shopify商店模板筛选条件设置和筛选器选择介绍

2024-01-01 14:01:26
By 把你留在角落里

默认筛选条件

系统默认包含针对是否有货、主要价格、厂商和产品类型的筛选条件。自定义筛选条件使用产品多属性和元字段来确定其他可用筛选选项。例如,如果您销售包含不同尺寸多属性的服装,则可以启用针对尺寸的筛选条件。

搜索筛选器

默认情况下会包含产品的搜索筛选。客户可以通过应用筛选器来筛选搜索结果以缩小搜索范围。客户还可以按相关性和价格对搜索结果进行排序。

自定义筛选条件

除了 4 个默认筛选条件外,您最多还可以设置 20 个自定义筛选条件。可以使用您的产品多属性选项或元字段来创建自定义筛选条件。通过使用元字段,您可以创建针对以下项的筛选条件:

  • single_line_text_field

  • number_integer

  • number_decimal

若要对自定义筛选条件使用元字段,首先需要创建元字段。详细了解元字段以设置您的自定义筛选选项。

设置 single_line_text_field、number_integer 或 number_decimal 元字段后,它们将显示在添加筛选条件屏幕中的可选选项列表中。除了 4 个默认筛选选项外,您最多可以选择 20 个自定义筛选条件。

Shopify商户官网原文详情:


Default filters

Filters for availability, primary price, vendor, and product type are included by default. Custom filters use your product variants and metafields to determine which additional filter options are available. For example, if you sell clothing with different variants for size, then you can enable a filter for size.

Search filters

Search filtering for products is included by default. Customers can filter search results to narrow the search by applying filters. Customers can also sort search results by relevance and price.

Custom filters

In addition to the 4 default filters, you can have up to 20 custom filters. Custom filters can be created using your product variant options, or with metafields. Using metafields, you can create filters for:

  • single_line_text_field

  • number_integer

  • number_decimal

In order to use metafields for custom filters, the metafield needs to first be created. Learn more about Metafields to set up your custom filter options.

After your single_line_text_field, number_integer, or number_decimal metafields have been set up, they'll appear in the list of selectable options in your Add filters screen. You can select up to a maximum of 20 custom filters in addition to the 4 default filter options.


文章内容来源:Shopify商户官方网站



(本文内容根据网络资料整理和来自用户投稿,出于传递更多信息之目的,不代表本站其观点和立场。本站不具备任何原创保护和所有权,也不对其真实性、可靠性承担任何法律责任,特此声明!)


常见问答(FQAS)


我想给商店模板添加筛选条件,怎么设置?

你可以在Shopify后台中的模板管理页面找到需要设置筛选条件的模板,点击模板名称旁边的\"编辑\",然后找到\"产品集\"选项,点击\"+添加筛选条件\",选择需要设置的筛选条件即可。例如颜色、尺码等。

筛选条件设置好后,如何在前端页面显示出来?

设置好筛选条件后,你需要在模板相关页面找到显示产品集的地方,添加以下Liquid代码来显示筛选条件:

{{ 'collection_filter.tags' | t }}

不同筛选条件如何区分筛选结果?

Shopify会根据不同筛选条件的值来区分筛选结果。例如选择颜色筛选条件的值“红色”,那么返回的结果产品都是颜色为红色;选择尺码筛选条件的值“XL”,则返回匹配尺码XL的产品。

用户如何选择和取消选择筛选条件值?

用户在前端页面看到筛选条件后,可以点击相关值来选择或取消选择。被选择的值会高亮显示,未选择的值会归于正常显示。选择的值会把结果限定在范围内,未选择的值不加入限定范围。