We’re rewarding the question askers & reputations are being recalculated! Read more.

Questions tagged [layered-navigation]

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

328 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
11
votes
1answer
873 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 ?
6
votes
0answers
232 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
783 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
0answers
41 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
507 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
647 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
0answers
1k views

Get Navigation Filters Programmatically

I am developing API to get the navigation filters in catalog and search results page. Using the below code I'm able to get the available filters for a category. I need apply any of the filters to the ...
4
votes
1answer
356 views

Layered Navigation not showing the right options after overriding product list block

I've successfully override productList block to show my custom filtered product collection like this: di.xml <preference for="\Magento\Catalog\Block\Product\ListProduct" type="\Vendor\Module\...
4
votes
0answers
80 views

Efficient way to access current result count in left block

Tried a few different approaches to this but still not sure of the best option for something which should be relatively simple. I want to output the current product result count, instead of within the ...
4
votes
1answer
645 views

Custom category collection not rendering correct results in layered navigation and toolbar in magento 2

I am displaying a custom product collection in a block that extends the category block. I have overriden catalog_category_view in my custom module. The custom filter yields renders proper ...
4
votes
1answer
2k 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 ...
4
votes
1answer
700 views

Layered navigation showing child brands with bundles

Using Magento 1.9.1 and have a problem with Layered navigation and bundle product brands. I have many simple products that can be part of any bundle product. All of them can be with different ...
3
votes
1answer
42 views

Magento 2 - Clean SEO URL with attribute

We run Magento 2 - 2.1.6 Question: If I create a link based on layered navigation attributes (storeurl: /clothes?cat=1029&gender=124) for example. We get a lot of errors regarding Google Search ...
3
votes
0answers
62 views

How to show/hide shared catalog enabled categories in layered navigation in Magento 2?

We have enabled the b2b extension. When we select specific categories on shared catalogs, it hides only on the mega menu, but layered navigation still lists the categories. How can we hide it from ...
3
votes
0answers
65 views

No results on layered navigation when filter applied

In Magento2 - We have a Multi-Store site with product category pages, with some attributes enabled in layered navigation. The fact is that in certain stores, filters counts shows the items per filter ...
3
votes
0answers
867 views

Magento 2 Layered Navigation SEO Friendly Urls

Context: When selecting a filter on a category page, that displays multiple products, a url is built. For example. Selecting color => red will result in the following url: www.shopurl.com/[category]...
3
votes
2answers
1k 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, ...
3
votes
0answers
157 views

Show all products with layered navigation Magento 2

Now, to be able to show all the products, I have to make 1 main parent category to contain all the product category, but I think it's not the right thing to do. Is there a page to show all the ...
3
votes
0answers
45 views

Load products page inside phtml page Magento 2

I have a custom .phtml page, and i want to insert products page which contain layered navigation like this: so i already have filtered product collection, is there a chance to do call this products ...
3
votes
0answers
543 views

magento 2 Use in Layered Navigation option showing backend

I am using Magento ver. 2.1.4 in Backend I add Attribute it not showing in front end In Backend Use in Layered Navigation option also not showing in backend
3
votes
1answer
138 views

Sort categories in layered navigation alphabitically

We are trying to sort the categories in the layered navigation alphabetically but it is not getting sort. Tried the following modifications directly in core file at line number 122 for testing ...
3
votes
0answers
748 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....
3
votes
0answers
543 views

Display Country of Manufacturer on Category Page Navigation Filter

When we add a product from Admin. We have field "Country of Manufacturer". Would like to display that as Navigation Filter on Frontend. From Admin -> Product Attribute By Inspect Element, able to ...
3
votes
1answer
470 views

magento 2: how to set category as homepage

I have tried displaying particular category products on homepage with widget through back-end. It does work. But i want to have layered navigation on left side as it comes in category product list ...
3
votes
2answers
999 views

Custom Attribute in Layered Navigation

I have a custom attribute called m2_price, which is the Metre Squared price of a piece of carpet. I've enabled it to be filterable with results in the layered navigation and this all works fine. ...
3
votes
1answer
660 views

How would I add “Brand” to the layered navigation without having to add the attribute to the product

I want to add Brand as one of the filters, however when I do this - it also comes up as an option on the actual product. Is there a way to add the Brand information to each product and have it show up ...
3
votes
1answer
390 views

How to group the options of an attribute in layered navigation frontend

How can I group the options of an attribute alphabetically in layered navigation frontend? I have approx 300 options for an attribute and I need to group them, such as [A-C] [D-F], etc. The idea is ...
2
votes
0answers
18 views

Magento 2: How to add product QTY in layered navigation filter?

I need to add qty filter in Layered Navigation so Customer can filter products using qty. I have implemented using product stock status but due to backorders. I need to display products based on ...
2
votes
1answer
28 views

Magento 2 product count issue in the layered navigation in category listing page

I am using Magento 2.2.6, i have a color attribute of multiselect type. i had assigned this attribute to all product type. when i assign one group product of color red to category "Category 1" then in ...
2
votes
0answers
26 views

Magento 2 - Layered navigation not shown if there is only category in categories filters

In Search page, when I query some string it does not show the layered navigation filters when resultant products set belong to one category. So I want to show that particular category in categories ...
2
votes
0answers
20 views

Magento2.3.0 How to do in left side navigation custom category tree structure create it?

I am using Magento2.3.0 I need in left side layer navigation instead replace category section there our custom category tree display on it and its work as on fronted side only.If any one this type ...
2
votes
0answers
31 views

Magento2.3.0 any one use layered navigation with multi select checkbox using category and other attribute filter

I am using Magento2.3.0 community version and I have integrate all free version layer navigation but not working so my requirement is attribute option with checkbox select than not remove in ...
2
votes
1answer
38 views

Why magento2 Layered Navigation Price slider starts with Zero?

We are running Magento2.2.7. When we go to PLP, the price slider navigation starts with Zero. Even when we click/select a range of 0-0 , still it shows some products.
2
votes
0answers
169 views

jQuery got no function after AJAX call

I'm having a problem in using horizontal navigation. When I sort something, at I changes show products with ajax the navigation isn't functional anymore. The click function in jQuery is still working ...
2
votes
1answer
316 views

Magento 2 :Sort Attributes Alphabetically in layered Navigation

I want to sort the attributes in layered navigation in the alphabetical order. http://i.prntscr.com/zDuYTVDbSWqv_507ew0JbQ.png Sort in the order as:Climate, Color, ... I tried to override the ...
2
votes
1answer
51 views

How layer navigation counter works in Magento 2

I want to add some conditions for the layer navigation counter. Basically I want to skip from counting some products. In vendor/magento/module-catalog-search/Model/Layer/Filter/Category.php in ...
2
votes
0answers
187 views

Magento 2.2 Layered Navigation Category Page issue

Thank you for taking time to read this: We have customised our theme to show Category images on Category Pages – and also Category Banners. All this is controlled form the Category Settings from ...
2
votes
0answers
41 views

Solved: Layered Navigation of Parent Categories

The layered navigation of the Child Categories it's working okay. The problem is with Parent Categories. I'm trying to have the same filters on Parent Categories but i still can't solve it. What I ...
2
votes
1answer
113 views

hide out of stock products from layered navigation in magento2

I have a bought extension of many around for layered navigation with Ajax, and I have an attribute size. Show out of stock product is enable. Now when using the filter to let's say show only product ...
2
votes
0answers
139 views

Category page, static block and layered navigation

On Magento 1.9 I have a category page with produts and static block. For static block I used a block type="catalog/product_list with a custom template. In the html template I loaded a custom ...
2
votes
0answers
23 views

Magento 2: LayeredNavegation filters with incorrect price

I have products that appear in the catalog view with the attribute "minimal_price" and the LayeredNavegation filters them for the "price" attribute. I want the filter to use the "minimal price" ...
2
votes
0answers
35 views

Sales products list layered

I need to create a page that automatically shows a list of all products with catalog rules applied. This page should also include layered navigation. Which is te best way to achieve it? I tried ...
2
votes
0answers
24 views

Magento 1: Custom layer block not showing categories

I want to create a custom block to display the subcategories with a certain filter from a category. So I created a block that extends Mage_Catalog_Block_Layer_View: class My_Module_Block_Layer ...
2
votes
0answers
62 views

Layered navigation is working in magento 2.1.7 but not working in magento 2.2.2

Hear is my layout file same code is working fine in magento 2.1.7 but not working in magento 2.2.2. I don't know why it's not working : <referenceContainer name="sidebar.main"> <...
2
votes
2answers
662 views

Grouped Products: Filter based on simple products

The problem I'm currently building a Magento 2 store which sells items in boxes and as singles (eg. a single item or a sealed box of 12). The product page has a grid which lets you add any number of ...
2
votes
0answers
511 views

Filter/Sort Configurable Products by Associated Simple/Super Product Attribute

I have a query and want to know about this How Magento 2 filtration is working from layered navigation. I have a scenario, There is a configurable product in Magento 2.2 and having 6 associate ...
2
votes
0answers
612 views

Get available filters of category by category ID

I have been trying to write rest api to retrieve available filters of particular category by its ID. I have a category which has two filters price and brands. Both price and brands are visible in ...
2
votes
0answers
1k views

Magento 2 filter products by price from Rest API

Magento-2 we would like to filter the products from REST API I have filtered product by price in the frontend please check the result in the below screenshot (24-MB02 price and special price we ...