As of May 31, 2023, we have updated our Code of Conduct.

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
20 votes
2 answers
8k 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 ...
Pankaj Bhope's user avatar
  • 1,526
14 votes
2 answers
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 ...
Fabian Blechschmidt's user avatar
13 votes
3 answers
20k 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 ...
mp196's user avatar
  • 602
13 votes
2 answers
3k 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 ...
Dhairya Shah's user avatar
12 votes
2 answers
26k 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 ...
Alizain Prasla's user avatar
12 votes
1 answer
5k 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 ...
Nalin Savaliya's user avatar
12 votes
3 answers
3k 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 ...
Kishor Hase's user avatar
12 votes
2 answers
1k 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 ?
Atish Goswami's user avatar
11 votes
1 answer
2k 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 ...
Muhammad Farzam's user avatar
10 votes
3 answers
9k 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 ...
Nguyễn Đình Tiệp's user avatar
10 votes
1 answer
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 ...
pzirkind's user avatar
  • 2,896
9 votes
6 answers
13k 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 ...
Mark's user avatar
  • 963
9 votes
2 answers
3k 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 ...
Nikunj Vadariya's user avatar
8 votes
2 answers
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 ...
easymoden00b's user avatar
  • 1,267
8 votes
6 answers
30k 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 ...
giancarlo's user avatar
  • 151
8 votes
3 answers
2k views

Magento 2.4.5 layered navigation filter showing incorrect results

I've recently updated a non-production version of a website from 2.4.4 to 2.4.5. The site has a number of configurable products with options for colours etc. The simple products behind the ...
Stephen McAleer's user avatar
8 votes
2 answers
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 ...
Si Griffiths's user avatar
7 votes
3 answers
12k 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.
luca's user avatar
  • 93
7 votes
5 answers
17k 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 ...
rajat kara's user avatar
  • 1,209
7 votes
4 answers
3k views

Negative price filter in layered navigation

I'm experiencing a strange issue here where the price navigation filter (layered navigation) somehow came up with negative price ranges. If I flush the price tables it seems to solve the problem, ...
oblivion00's user avatar
7 votes
2 answers
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.
Abdul's user avatar
  • 421
7 votes
1 answer
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 ...
Marin Bînzari's user avatar
7 votes
3 answers
13k 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. (...
Hmac's user avatar
  • 71
7 votes
2 answers
2k 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 ...
cmgriffing's user avatar
7 votes
2 answers
6k 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?
3tech - Alessandro Staffolani's user avatar
7 votes
2 answers
2k 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 ...
Lanks's user avatar
  • 514
6 votes
3 answers
6k 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 ...
Chris Morris's user avatar
  • 1,507
6 votes
2 answers
7k views

Text attribute in the layered navigation

How can i make a text attribute available to the layered navigation? In the admin it is not possible to set an attribute to filterable if it is not a dropdown or price type. I can worry about the ...
Marty Wallace's user avatar
6 votes
1 answer
2k 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 ...
Ben H's user avatar
  • 111
6 votes
1 answer
7k 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 ...
Michel Gokan Khan's user avatar
6 votes
4 answers
6k views

Hide out of stock products in Layered Navigation

I will describe my magento issue as best I can. I have shoes size filter in Layered Navigation but for some reason when i press ex. "size 43" then the results display shoes that had number 43 and now ...
Stavros Kinalopoulos's user avatar
6 votes
2 answers
3k 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 ...
monocat's user avatar
  • 550
6 votes
1 answer
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 ...
Suman K.C's user avatar
  • 1,149
6 votes
1 answer
4k 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/...
Phong Ngo's user avatar
6 votes
0 answers
379 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 ...
Shell Suite's user avatar
  • 1,682
5 votes
1 answer
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 ...
user3250's user avatar
5 votes
1 answer
6k 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 ...
Deepak Rai's user avatar
  • 1,135
5 votes
4 answers
9k 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 ...
Nalin Savaliya's user avatar
5 votes
4 answers
3k views

Display out of stock product only for specific Category in Magento2

I have to show out of stock products only in certain categories by hiding them in all other categories. used below plugin to implement, that is not working. Vendor/Module/etc/di.xml <type name="...
Manjunath's user avatar
  • 177
5 votes
2 answers
7k 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 ...
Gerry's user avatar
  • 51
5 votes
3 answers
2k 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 ...
Bobadevv's user avatar
  • 1,120
5 votes
1 answer
9k 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 ...
Gayathri's user avatar
  • 483
5 votes
2 answers
1k 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 ...
Akash's user avatar
  • 377
5 votes
2 answers
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 ...
feversocial's user avatar
5 votes
2 answers
9k 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 ...
Ravi Bhalodia's user avatar
5 votes
3 answers
4k 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->...
Sarvesh Ahuja's user avatar
5 votes
1 answer
2k 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 ...
Nagaraju Kasa's user avatar
5 votes
0 answers
175 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,
Sunny Rahevar's user avatar
5 votes
1 answer
3k 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 ...
Manashvi Birla's user avatar
5 votes
1 answer
724 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?
Jaimin Parikh's user avatar

1
2 3 4 5
17