Skip to main content

Questions tagged [layered-navigation]

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

346 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
13 votes
3 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
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
425 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,702
5 votes
0 answers
177 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
725 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
5 votes
0 answers
762 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 ...
Andre Bubner's user avatar
5 votes
1 answer
841 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 ...
Manashvi Birla's user avatar
5 votes
1 answer
950 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 ...
Jimmi Moeller's user avatar
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
0 answers
3k views

Custom condition for Elastic search collection in Magento 2

I am trying to add the custom condition for the product collection using the below plugin for elastic search. app/code/Vendor/Module/etc/frontend/di.xml <type name="Magento\Elasticsearch7\...
Manjunath's user avatar
  • 177
4 votes
2 answers
2k 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
Harsh Jayswal's user avatar
4 votes
0 answers
2k 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 ...
SIBHI S's user avatar
  • 2,055
4 votes
1 answer
487 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\...
Shell Suite's user avatar
  • 1,702
4 votes
0 answers
1k 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 ...
Thomas's user avatar
  • 211
4 votes
0 answers
90 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 ...
Tom Russell's user avatar
4 votes
1 answer
873 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 ...
Nico's user avatar
  • 41
3 votes
0 answers
242 views

Update layer navigation filter with the proper custom collection

Goal : Create a /test/index/index route that will load a product listing page with a custom collection. Expectation : The custom collection printed in listing and the filters must be properly defined ...
Claims's user avatar
  • 1,236
3 votes
0 answers
284 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 ...
Sameer Bhayani's user avatar
3 votes
1 answer
430 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 ...
Paul Kuijten's user avatar
3 votes
0 answers
208 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 ...
Muhammad Hasham's user avatar
3 votes
0 answers
211 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 ...
sahana's user avatar
  • 329
3 votes
1 answer
519 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 ...
Luca Cagnassi's user avatar
3 votes
0 answers
249 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 ...
Amir's user avatar
  • 221
3 votes
0 answers
2k 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]...
vitoriodachef's user avatar
3 votes
0 answers
178 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 ...
Hunter's user avatar
  • 1,484
3 votes
0 answers
57 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 ...
simple guy's user avatar
  • 2,484
3 votes
0 answers
578 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
Magento 2's user avatar
  • 3,834
3 votes
0 answers
221 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 ...
Konstantin Gerasimov's user avatar
3 votes
1 answer
164 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 ...
ImranSheik'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,939
3 votes
0 answers
734 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 ...
Jackson's user avatar
  • 9,939
3 votes
1 answer
493 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 ...
azam's user avatar
  • 83
3 votes
0 answers
3k views

Range in custom attribute in magento, layered navigation

I want to show custom attribute in range in layered navigation like the price is shown in range £20.00 - £30.00 £30.00 - £40.00 £40.00 - £50.00 i want custom attribute Length in Range 1.00 ...
Arun Karnawat's user avatar
3 votes
2 answers
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. ...
Karl's user avatar
  • 311
3 votes
1 answer
720 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 ...
James's user avatar
  • 51
3 votes
1 answer
472 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 ...
Laura's user avatar
  • 31
3 votes
2 answers
1k views

How to display all sub categories from one category?

I'm trying to show all the subcategories of the category id3. Category ID3 -> Category Level 2 for Category ID3 -> Category Level 3 (for category Level 2) <?php if (!Mage::registry('...
Sylon's user avatar
  • 678
2 votes
1 answer
48 views

Do I need the Mageplaza Layered Navigation and Search extensions?

Magento 2.4.2-p1 Smartwave Porto theme 17 Amasty extensions ShopperApproved app/software I have these 2 extensions in my Magento and I have no idea where they came from? Either they were there in the ...
Allysin's user avatar
  • 280
2 votes
0 answers
51 views

How to unset layered navigation block if theres not filters inside layered navigation

How can I unset sidebar.main container if there's no layered navigation the layered search result page navigation if there's no filters catalogsearch_result_index.xml
Anass Hl's user avatar
2 votes
1 answer
2k views

Layered Navigation Filter Problem. Working in Magento 2.3.2 but not in Magento 2.4.1

I created this module about a year ago. Maybe because of elasticseach search engine or something now I am facing this error in Magento 2.4.1 main.CRITICAL: Error: Call to undefined method Magento\...
Klaus Mikaelson's user avatar
2 votes
0 answers
107 views

Magento 2: event or plugin after filters applied and removed in category pages

I want to write customization on after filters are applied and filters are removed in category pages. I need any event or plugin while filter applied or filter removed in Magento 2.3.2.
Jothi Subramanian's user avatar
2 votes
1 answer
376 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 ...
Jothi Subramanian's user avatar
2 votes
0 answers
113 views

Overriding LayeredNavigation Block not working

di.xml <?xml version="1.0"?> <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:ObjectManager/etc/...
Elland's user avatar
  • 113
2 votes
0 answers
194 views

magento 2 keep the applied filters in opened state

I wish to make changes in the layered navigation filter, so that all the applied filters are visible(opened state). For example I am selecting red in color filter, all other options in color filter ...
Sejal Shah's user avatar
  • 2,153
2 votes
0 answers
314 views

How to change attribute position (layered navigation) sorting based on category wise in magento 2

I want to change attribute position based on category page means want to change custom position here I have list of attribute size, color, amps, phase for example in category1 I want show color ...
Pradip Garchar's user avatar
2 votes
0 answers
433 views

Magento CE 2.2.2 Elastic Search No Products Front End Category / Listing Pages

Magento CE 2.2.2 ElasticSearch 6.4 PHP 7.1 Apache 2.4 Magento CE 2.2.2 Elastic Search No Products Front End Category / Listing Pages We have installed Amasty Layered Navigation Amasty ...
jt9489's user avatar
  • 175
2 votes
1 answer
728 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 ...
Pradeep Sanku's user avatar
2 votes
0 answers
50 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 ...
Rv Singh's user avatar
  • 1,637
2 votes
0 answers
224 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 ...
Rv Singh's user avatar
  • 1,637

1
2 3 4 5
7