Is there any way to display name attribute in Magento layered navigation for filtering products by name.
i need to list some products in the filter and give ability to a multiselection
Is there any way to display name attribute in Magento layered navigation for filtering
Share
You can only have Dropdown, Multiple Select and Price in the Layered Navigation.
I’m not sure why you would need Name in there, but a possible way to get it would be to create a product attribute dropdown called something like ln_name, set Use In Layered Navigation then assign it to the attribute set. You would then have to populate ln_name with all of the product names in your catalog and go to each product and select the product’s name from the list and save. On the front end you would then have the product name as a layered nav option.
To answer your second question below:
Add a “Yes/No” attribute called “left_nav” and add it to your attribute set. Go to your product listings and set “left_nav” to “Yes” for any that you want to be included in the collection. Use this code in your template to call the products. Note: I haven’t tested this but it should work.