Questions tagged [layered-navigation]

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

351 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
12
votes
1answer
923 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
1answer
1k 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/...
6
votes
0answers
251 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 ...
5
votes
0answers
54 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
706 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
549 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
703 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
377 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
87 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
684 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
720 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
86 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
51 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 ...
3
votes
0answers
81 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
1answer
160 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 ...
3
votes
0answers
85 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
1k 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
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
47 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
930 views

Get active filters in Category/View Block in Magento 2

I want to return all active filters in a custom View Block in module catalog. While the categories are returned in the layered navigation view, this always returns an empty result: class CategoryView ...
3
votes
0answers
553 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
0answers
186 views

Why Mage_CatalogIndex_Model_Aggregation is not caching layered navigation filters?

A question for an expert. Make sure you read the preamble - the question is at the bottom. In app/code/core/Mage/Catalog/Model/Layer/Filter/Attribute.php I noticed a functionality to cache ...
3
votes
1answer
143 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
838 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
555 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
479 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
1k 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
694 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
396 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
1answer
32 views

how to get which filter is applied first in layered navigation

I need the order on which the filter is applied.for example if we select red value in color attribute and then we select L value in size attribute means I need that order ie)color and then Size not ...
2
votes
0answers
34 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
107 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
28 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
47 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
57 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
197 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
572 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
68 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
2answers
613 views

How to Display Vertical mega menu in Magento 2?

I want to display a vertical menu instead of the default horizontal menu for category and subcategory
2
votes
0answers
281 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
65 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
0answers
181 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
25 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
54 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
30 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
2answers
465 views

I want Country of Manufacture in my filter

I want Country of Manufacture in my filter. I am Using Magento 2
2
votes
0answers
64 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"> <...

1
2 3 4 5
8