Questions tagged [layered-navigation]

Layered navigation makes it easy to find a product based on category, price range, or any other available attribute.

Filter by
Sorted by
Tagged with
19
votes
2answers
4k views

How to implement multiple category filter in Magento 2 layered navigation

I am implementing multiple category filters for layered navigation. I am getting the result as per my requirement but the collection size is coming wrong remains same as the parent categories ...
14
votes
2answers
15k views

Changing the layout of the layered navigation

I have a layered navigation, and the customer wants to have <select/> fields instead of a long list of links. I thought about just changing the template with a observer if the name/id of the ...
13
votes
2answers
273 views

Magento 2: Layered Navigation Price Filter Not Working After Applied Custom Product Discount

I working on a product discount module. I did it via plugin and observer. it's working fine on product page and list page. But price filter is not working according to the updated product price. Here ...
12
votes
2answers
23k views

Select more than one item in layered navigation (multiple select/checkboxes)

How do you convert the standard layered navigation to use checkboxes or multiple select inputs for attributes of type dropdown or multiselect? For example if a user selects blue and red for the ...
12
votes
3answers
9k views

Layered navigation for custom collection on custom page - magento2

I am working on fetching layered navigation in magento2 for a custom product collection. I am getting custom collection already on the custom page need to show layered navigation. Tried to adapt this ...
12
votes
3answers
2k views

Magento 1.9.2 Add layer navigation to advance search

I have followed following 3 steps for advanced search layer navigation, but it is not working. Any idea/suggestion OR How to implement layer navigation in advanced search? 1) In our local.xml under ...
11
votes
1answer
877 views

Magento2 Custom Layered Navigation

I want to add a layered navigation block for a custom product collection. Is there a way to do that in Magento2 ?
10
votes
1answer
209 views

Magento 2 - All products page with layered navigation and pagination

I want to create all product page with the filters, toolbar, pagination. I can do it by creating a new category with the name All Products and assign all products in it. But I guess this is not a ...
9
votes
1answer
2k views

Magento 2 : How faceted data works for layered navigation?

I have created module for custom filter on category page every thing is working fine except price range in layered navigation. Please anybody can explain me how getFacetedData('price') works in ...
9
votes
1answer
4k views

Adding layered navigation block to custom page

In Magento, the Layered Navigation block works nicely in the product list page. How can this block be successfully copied to a custom page, where there is a custom list of products? Note: Just ...
8
votes
6answers
28k views

Hide or remove “category” filter from the layered navigation

I'm struggling to remove the Category filter from the layered, because I already have a category dropdown menu in my new website, so it will be only a waste of space (and confuse my customers) I know ...
8
votes
2answers
2k views

Custom non-attribute based layered navigation. Is this the only way to do it?

Today I have been knocking up a layered navigation option that is not based on an attribute. It is for ratings so the front end can show nice shiny stars. To do this I have: Created a module ...
7
votes
2answers
7k views

layered navigation isn't populated by collection attributes — CMS page

I'm attempting to add layered navigation to a CMS page containing a widget that contains a custom product collection (products that are 'new'). Within this widget are fuctions that, given the correct ...
7
votes
4answers
6k views

Magento 2 - How to rearrange Customer “My Account” links

Now it looks like this: Account Dashboard Account Information Address Book My Downloadable Products My Orders Newsletter Subscription Billing Agreements My Product Reviews My Wish List I want to ...
7
votes
2answers
8k views

How to remove Price filter section from layered navigation

Iam trying hard but still not getting to remove SHOP BY and PRICE FILTER SECTIONS from layered navigation please help me in removing those items.
7
votes
1answer
14k views

Display filter by price on layered navigation

I have a problem with Magento. Probably I have misconfigured it. The price filter on layered navegation doesn't show. In Configuration → Catalog → Catalog → Layered Navigation i have Display Product ...
7
votes
2answers
1k views

How to group numeric attribute ranges similar to prices in layered navigation?

I have a numeric attribute that is a size (in cm). I would like to group products into ranges of the attribute similar to how prices are grouped. So if I have several products with sizes 151cm, 152 ...
7
votes
2answers
4k views

Magento 2 - Remove filter in category page

I need to remove the category filter in Layered Navigation, but I can't find a way to remove the filter option in the layout arguments. Anyone knows the best way to do this?
7
votes
2answers
2k views

Magento 2 layer navigation custom rating filter pagination doesn't work

I have created a module for rating filter and its working but after filter number of item and pagination showing wrong as per attached screenshot. There is only one 5 start product but showing wrong ...
7
votes
2answers
1k views

How to show layered navigation 2 times on category list with a different template file? [duplicate]

I succeed to load 2 times layered navigation by using <action method="insert"><blockName>catalog.leftnav</blockName></action> The problem here is that I need to load another ...
6
votes
3answers
4k views

Magento layered navigation filtering URL's with name not id

I have a quick question that is effecting the usability of my site. I've added some custom attributes to my layered navigation, and all works find. apart from one tiny little issue. I would ideally ...
6
votes
1answer
1k views

Bespoke attribute filters for each category pages

By default Magento will display every attribute with a status of 'Filterable' on layered navigation. I want to be able to decide which filterable attributes appear on each category page. It's ...
6
votes
1answer
4k views

How to retrieve which layered navigation filters are applied in product list page in Magento 2?

I'm going to write a block to put in products list page. My question is how can I get to know which layered navigation filters are currently applied in the current list page ? Any help will be ...
6
votes
2answers
2k views

How to display core Country of Manufacture attribute in layered navigation?

I like to have core Country of Manufacture attribute displayed in the layered navigation but it seems simply selecting one of the "Filterable" options in Use In Layered Navigation field is not ...
6
votes
3answers
5k views

Magento 2 - Layered Navigation for Custom Product Collection

I created a CMS page for products that contain a certain attribute (On Sale Items). I extended the ListProduct class and added filters to the product collection to achieve the desired results. (...
6
votes
0answers
234 views

Add custom input text field into layered navigation without creating product custom attribute

I have successfully extend the _getProductCollection function at \Magento\Catalog\Block\Product\ListProduct to my custom module block, the problem is I need to add text input to layered navigation so ...
6
votes
1answer
832 views

Magento2.3 : Layered Navigation issue

When call block on custom view: $layer=$layout->createBlock('Magento\LayeredNavigation\Block\Navigation\Category'); Exception #0 (RuntimeException): Illegal state #0 /home/httpdocs/...
5
votes
3answers
1k views

Layered nav apply filters button

I am looking into the possibility of choosing multiple filters within layered navigation and apply them at the same time via a form submit, rather than applying one filter at a time. Anyone looked ...
5
votes
1answer
8k views

How to show layered navigation filter all time

I have seen lots of people who discussed about this issue, also given plenty of ideas, but i am still stuck at the issue. As per the answer at this link, i have written the new function to get the ...
5
votes
5answers
8k views

Attribute is not appearing on layered navigation in Magento 2

I am trying to display product attribute on layered navigation but it's not appearing. I have already selected the Use in Layered Navigation -> yes,but the attribute is not appearing on layered ...
5
votes
2answers
692 views

Rating Filter in Layered Navigation

I want to implement Rating Filter in layered navigation sidebar. But I have no idea how to proceed or where to begin.. Read this article.. got little idea but still don't know to implement rating ...
5
votes
2answers
4k views

Magento Enterprise: catalog_product_attribute not reindexed on product save

I'm using Magento ee 1.13.0.2 and discovering the next problem: I have some of the attributes used in layered navigation - color and size. When I add a new product (simple one) and save it - product ...
5
votes
1answer
2k views

How to not remove layered navigation options (which are removed after selecting other filter)

My question might be unclear. So first here is an example in this page From Shoe type when i select sandles, two of color filter options disappears from Color Type. which i want not to disappear ...
5
votes
3answers
1k views

Incorrect product count in layered navigation after overriding list product collection

I have customized(override) product list collection getProductCollection and filtered collection as required. public function getProductCollection() { if (isset($this->...
5
votes
1answer
768 views

Magento2 how to apply layered navigation filters at REST API Level?

I would like to implement below REST API in magento 2 "How to retrieve which layered navigation filters are applied as like in the product list page?" Can you please suggest me how we can ...
5
votes
2answers
6k views

Magento 2 categories at layered navigation

In Magento 2 all the subcategories aren't showing in layered navigation. I am having categories structure for 4th level. If any 3rd categories having sub categories along with products - then it isn't ...
5
votes
0answers
42 views

layered Navigation price filter issue when configurable products exist in the list Magento 2

I have an issue with the product minimum and maximum price in the layered navigation. Please see screenshot below,
5
votes
1answer
1k views

Price filter in layered navigation not working correctly with price including tax in magento 2.2.3

I am using magento-2.2.3. and showing prices including tax on product list page. Now the issue is the price filter in layered navigation is considering prices excluding tax. So how to change the ...
5
votes
1answer
701 views

Add Layered Navigation in custom module - Magento 2.1

I want to add layered navigation block in custom module page and filter custom product collection. How can I achieve this functionality?
5
votes
0answers
516 views

Magento2 Transform Multi Select Attribute Filter into Swatch Filter

is there a way in Magento 2 to transform a product multi select attribute, which is used as a filter into a color swatch on frontend? We need this attribute in backend as multi select but have to ...
5
votes
1answer
653 views

Magento layered navigation filter out configurable product out of stock

I have configurable products with size variations, for example small, medium and large. In product X, the simple product for the small size is out of stock. If I set in the layered navigation to ...
4
votes
1answer
14k views

Move layered navigation block between product list toolbar and product list

I have moved the layered navigation block into the content section however I can't figure out how to position the block. I can only get it to show at the very top of the page or the bottom. I need it ...
4
votes
3answers
10k views

Order filter layered navigation magento

I have some attributes (size, color, type ect). I want to order them in layered navigation in category page.
4
votes
1answer
3k views

Layered Navigation not showing Attributes

I have a Magento install which has several attributes in attributes sets, but they are not showing up in the layered navigation on the left hand side of the page. I have made sure that the attributes ...
4
votes
3answers
5k views

How to update category page with custom filters, and also layered navigation, Magento 2.1

I need to update category page collection by filtering restricted SKUs. As like $collection->getSelect()->where("`e`.`sku` IN('24-MB04', '24-MB03', '24-MB02')"); Above query gives collection ...
4
votes
3answers
4k views

Magento 2 : Rating Filter in Layered Navigation

In Magento 2 How to add Star Rating Filter in to Layered Navigation?
4
votes
1answer
4k views

What is difference between filterable with result and Filterable with no result in magento Attributes

Basically why magento uses filterable with result and filterable with no result in magento attribute. What is the benefit of that attribute if that is Filterable with no result. Basically, I created ...
4
votes
2answers
6k views

Do not display sub-category products from “Is Anchor” tag

Currently I have a Magento site which uses Layered Navigation. The client wants to be able to control the products displayed on the parent category AND have layered navigation enabled, thus turning ...
4
votes
1answer
2k views

Magento 2 api - How to get layer navigation filters available in rest api?

I have someone issue in api magento 2. I need get layer navigation data available in product collection ( current category , search product ) but I don't know magento 2 api available it or not . I ...
4
votes
2answers
1k views

How to Consolidate Color Swatches in Layered Navigation?

hoping someone can help me with a question on Magento 1.9.1. I set-up multiple configurable products where some products do not share a common global color such as "Blue". Example, there are colors ...