简体   繁体   English

如何在分层导航Magento中按属性过滤?

[英]How to filter by attributes in layered navigation Magento?

I have two attributes in my Admin: Color and Size. 我的“管理”中有两个属性:“颜色”和“大小”。

This attributes haves this configuration: 此属性具有以下配置:

Scope: global Catalog input type: Drop down Apply To: all Use in layered navigation: Filterable with results 范围:全局目录输入类型:下拉应用于:全部用于分层导航:可过滤结果

And I have configurable products that haves simple products. 我有具有简单产品的可配置产品。 For example: 例如:

CONFIGURABLE: MY T-SHIRT SIMPLE 1: MY T-SHIRT with Color = White and Size = L SIMPLE 2: MY T-SHIRT with Color = Black and Size = L 可配置:我的T恤简单1:我的T恤,颜色=白色,尺寸= L SIMPLE 2:我的T恤,颜色,颜色=黑色,尺寸= L

CONFIGURABLE: MY OTHER T-SHIRT SIMPLE 1: MY OTHER T-SHIRT with Color = White and Size = S SIMPLE 2: MY OTHER T-SHIRT with Color = Black and Size = M 可配置:我的另一种T恤简单1:我的另一种T恤,颜色=白色和尺寸= S简单2:我的另一种T恤,颜色=黑色和尺寸= M

But I cant't see filter by "Color" or "Size" in layered navigation. 但是我看不到分层导航中的“颜色”或“大小”过滤器。 I just can filter by price and subcategories. 我可以按价格和子类别进行过滤。

Why are those attributes not appearing in my layered navigation? 为什么这些属性没有出现在我的分层导航中?

Could possibly be one of these causing the problem: 可能是引起问题的原因之一:

  1. The category is not set to be anchored. 该类别未设置为锚定。 Go to the category in the admin area and go to the 'Display Settings' tab. 转到管理区域中的类别,然后转到“显示设置”标签。 Make sure that the 'Is Anchor' option is set to yes. 确保将“锚定”选项设置为“是”。

  2. The attributes are not in the correct attribute set for the products in the category you are viewing 这些属性不在您正在查看的类别中为产品设置的正确属性中

  3. The products in the category do not have values for those attributes 类别中的产品没有这些属性的值

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

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