magento左栏添加筛选Filtering options on Left-Navigation Menu in Products List Page

To make sidebar appear on a desired category and contain a desired attribute, you must follow next 3 simple steps:

1) Make the desired category “anchor”: Go to the admin panel -> Catalog -> Manage Categories. On the left, click on the category that you want to make filterable. On the right, click on the “Display Settings” tab, and choose “Yes” on “In Anchor” field.

2) Add filterable attributes: Go  to the admin panel ->Catalog -> Attributes -> Manage Attributes.  Add attribute which you wish to filter by (Detailed explanation about adding/managing  attributes -here). Make sure that you choose “Filterable (without results)” or” Filterabe (with results)” in”Use In Layered Navigation” field (To do so, you must choose “Dropdown” or “Multiple Select” or “Price”  in “Catalog Input Type for Store Owner” field).  Also don’t forget to add some options (on Manage Label/Options tab). Finaly, make sure that you added those attributes to some attribute set (Detailed explanation about adding/managing  attribute sets – in next articles), remember the name of this set for next section.

3)Apply attributes on some products: if in the previous section, you set “Filterable (without results)” for the attribute, you will not see this attribute on the sidebar, until you will have some products that has a value for this attribute. So, create new product (choose tha attribute set that you chose in a previous section), or update existing product (that has this attribute on it’s attribute set), so that the field of the attribute(s) you added, will contain some value. Don’t forget to set a desired category as a category of this product.

Now, on your desired category page, you should see a sidebar, that contains the attribute you added.

(Note: those 3 steps are 100% effective for clean Magento installation. If some modifications where done to the code/design files, those steps may not suffice.)

 

 

 

 

 

 

 

 

 

 

 

来源:http://getintomagento.wordpress.com/tag/how-to-filter-attributes-in-magento/

参考: creating attributes (custom fields)

 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值