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
13 votes
3 answers
21k 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
5 votes
5 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
10 votes
3 answers
10k 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
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,277
4 votes
3 answers
7k views

Magento 2 : Rating Filter in Layered Navigation

In Magento 2 How to add Star Rating Filter in to Layered Navigation?
Bhavik's user avatar
  • 1,230
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
2 votes
1 answer
6k views

Magento 2 How to show Layered Navigation on home page?

I want to show Layered Navigation on Home Page. On home page their is banner slider and on banner image their is Search Box like below. Now I want show Layered Navigation instead of that search box. ...
Nitesh's user avatar
  • 2,108
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
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
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
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
4 votes
4 answers
2k views

Hide an attribute in Layering Navigation for a specified category

Is it a way to hide an attribute in Layering Navigation for a specified category? I have a category which join products with different attribute sets. In this case layering navigation becomes very ...
ADDISON74's user avatar
  • 597
2 votes
2 answers
6k views

Custom Product Collection not Getting Filtered by Layered Navigation

I had Overridden the product List.php Class & here is the code protected function _getProductCollection() { if (is_null($this->_productCollection)) { $result = array_unique($productIds); ...
Ahmed's user avatar
  • 758
2 votes
1 answer
6k views

How do i get active filters in observer method?

i want to check the currently applied layered navigation filters using an observer. When specific filter values are selected an additional layout handle should be added which adds a static block to ...
phillensen's user avatar
1 vote
1 answer
1k views

Layered navigation - multiple attribute choices

I'd like to make a simple "multiple choices per attribute" addon for the layered navigation. Simply put, I want /pisarniska-razsvetljava.html?led_color[]=3&led_color[]=4 to work. For this to ...
SlimDeluxe'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,906
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
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
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,159
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
3 answers
5k 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
4 votes
3 answers
2k views

Quantity as filter in layered navigation

How to make product Quantity wise filter in layered navigation. See image
Pratik Kamani's user avatar
3 votes
2 answers
6k views

Layered Navigation price filter attribute multiselect check box

I am working on Layered navigation of Magento. I want to implement the following: Price filter with multiple check boxes. Kit type with Radio buttons. Ratings with multiple check boxes. The same is ...
Sivakumar's user avatar
  • 423
3 votes
2 answers
3k views

Magento 2 Where (code) are the filters from the layered navigation applied to the product collection?

I'm trying to find the portion of code where the filters from the layered navigation are applied to the product collection. The method called for product collection retrival is Magento\Catalog\Block\...
vitoriodachef's user avatar
2 votes
1 answer
805 views

Conflict in layer navigation and infinite scroll extension magento2

I have Installed above BSS_layeredNavigation & Lof_Ajaxscroll extensions. Both of them are working fine if used individually. If both extensions are enabled there is a conflict. To avoid ...
Jafar Pinjar's user avatar
  • 1,929
2 votes
3 answers
9k views

Magento: Hiding and not counting out of stock in layered navigation

About: Hiding and not counting out of stock in layered navigation in Magento Hi, this has boggled us for quite a while. An I did not find a solution. We upgraded to Mage 1.8.1 hoping that it would be ...
snh_nl's user avatar
  • 5,412
2 votes
1 answer
4k views

Error: You cannot define a correlation name 'type_shirt_idx' more than once

I've been trying to find the culprit giving me this error message "You cannot define a correlation name 'type_shirt_idx' more than once" Question: does anyone know what the error can be in layered ...
snh_nl's user avatar
  • 5,412
2 votes
3 answers
2k views

Including layered navigation twice on some page

We have a situation on a responsive website, in which we need to include the layered navigation twice into a page as on mobile it's hidden in one place and shown above the content. Oviously rule of ...
TTech IT Solutions's user avatar
1 vote
4 answers
19k views

How get all subcategories of specific category?

I have a file left.phtml for a vertical menu. I want to get all subcategories of specific category ID3. I have this code. <?php if (!Mage::registry('current_category')) return ?> <?php $...
Sylon's user avatar
  • 678
1 vote
2 answers
15k views

Magento 2 layered navigation with checkbox with multi select

I would like to implement layered navigation with checkbox instead of links in my Magento 2 project. What would be the best way to achieve this?
Gideon's user avatar
  • 195
1 vote
1 answer
2k views

Layered navigation filters for grouped products only

Well, I'm having a category filled only with grouped products and I want these ones to be filtered by their associated ( and simple ) products's attributes. Until now I've used a dirty workaround : I'...
DanCapitanDePlai's user avatar
0 votes
2 answers
5k views

magento 2 layered navigation on CMS page or homepage with selected category

I want layered navigation on CMS page with selected cateogry. I am following this link It is showing all category and attribute. But I don't know how to set selected category. For example on Clothing ...
Abhishek's user avatar
  • 939
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
  • 993
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
6 votes
2 answers
8k 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
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
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
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
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,145
5 votes
1 answer
4k views

magento 2: Customize collection of product not effecting in layer & toolbar area

I extend the collection query using event 'catalog_block_product_list_collection'. Query displaying proper data, as well as showing proper record in product list page. But same collection is not ...
Praful Rajput's user avatar
4 votes
1 answer
3k views

Ignoring Child Product Attributes in Layered Navigation

How would I go about modifying layered navigation to only look at attributes on the parent configurable product, and not the child? Child and parent products both have the attribute set and it is ...
Matt Dunbar's user avatar
4 votes
2 answers
6k views

layered navigation for custom product collection on custom page

I'm working on a module where some products have an attribute named designer. and for every designer, all products by him displayed as catalog category view. So far I'm able to filter the products ...
Mohammad Faisal's user avatar
4 votes
1 answer
3k views

How to sort layered navigation attributes on Alphabetic order

Trying to find a solution for the order of the attributes in layered navigation on the category list page. Now I have to sort them in the attributes from backend, and it is not a good way with many ...
M2Newbie's user avatar
4 votes
4 answers
4k views

Attribute not shown in layer navigation after Migration

I migrated from Magento 1.9.3.3 to Magento 2.1.7 EE. I have one issue, that is some of the attributes(multiple select) not shown in layer navigation. Create new category called test, Assign two ...
Bilal Usean's user avatar
  • 9,907
4 votes
2 answers
5k views

Magento 2 Layered Navigation in Advance Search Result

How can I add Layered Navigation in Advance Search result page(2 Column Left layout)? How can I dot it?
Jancy Abraham's user avatar
3 votes
1 answer
3k views

Category Specific Layered Navigation Changes (Disabling Attribute Filters) [closed]

I'm trying to disable a particular attribute filter in layered navigation for a specific category. The attribute filter I wish to disable is the manufacturer in this instance. I'm trying the ...
zigojacko's user avatar
  • 1,754
3 votes
2 answers
1k views

Overriding Magento\Catalog\Model\Layer class not working in Magento 2

Overriding Magento\Catalog\Model\Layer class not working in Magento 2. I'm trying to create a custom module for showing custom product collection with layered navigation. here i added di.xml file to ...
dhanabal's user avatar
3 votes
0 answers
1k views

Magento2: How to show Product Weight on Filter

Need to show Product Weight on Category Page Filter, so Customer can also filter via Weight. A user can also enter the weight in Text Box & Search, so it's vice versa between Slider & Textbox....
Jackson's user avatar
  • 9,849
3 votes
1 answer
10k views

How to get Search result Product collection outside result.phtml

I need to get current product collection (actually I just need all Product IDS of products in current search result) of search result page in outside result.phtml, because I'm going to do something on ...
Chamal Chamikara's user avatar