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)
?
magento左欄添加篩選Filtering options on Left-Navigation Menu in Products List Page
更多文章、技術交流、商務合作、聯系博主
微信掃碼或搜索:z360901061

微信掃一掃加我為好友
QQ號聯系: 360901061
您的支持是博主寫作最大的動力,如果您喜歡我的文章,感覺我的文章對您有幫助,請用微信掃描下面二維碼支持博主2元、5元、10元、20元等您想捐的金額吧,狠狠點擊下面給點支持吧,站長非常感激您!手機微信長按不能支付解決辦法:請將微信支付二維碼保存到相冊,切換到微信,然后點擊微信右上角掃一掃功能,選擇支付二維碼完成支付。
【本文對您有幫助就好】元
