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
0 votes
1 answer
2k views

How to display categories and subcategories in layered navigation magento2?

These are Categories List in admin: If I click Shop then I want to display categories and sub-categories in layered navigation filter. How can I achieve this functionality?
0 votes
0 answers
18 views

magento 2 layer navigation by categoryId i'm getting below error

"message": "No record found with %fieldName = %fieldValue", "parameters": { "fieldName": "id", "fieldValue": "0" }, <?php ...
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 ?
2 votes
2 answers
3k views

How do I change SHOP BY text in left sidebar Magento?

How to change the text SHOP BY from left sidebar at category page in Magento? I want to change this text SHOP BY to another.
0 votes
1 answer
1k views

magento2 customize collection of product not effecting in layer & toolbar

I extend the collection 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 loading for ...
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 ...
0 votes
2 answers
2k views

Layered navigation doesn't appear in mobile view (Magento 2)

I created a layered navigation using an attribute to filter colors. This color filter is the only filter I am using and works in desktop view well. But in mobile view the filter doesn't show up. I ...
2 votes
1 answer
2k views

Magento 2: All Products Not Displaying In Admin

I have more than 5K products. Suddenly don't know what happen now on Admin Side In Admin -> Products -> Catalog now it's displaying only 1K products. All Filters are also Reset. Visibility All ...
0 votes
1 answer
1k views

Layered Navigation in Magento 2 Luma template

by default the left Layered navigations are hidden in Luma template. How do I un-hide the it. similar to blank theme.
0 votes
0 answers
736 views

Product Filter Count Showing Wrong Count After Custom Product Collection - Magento Layered Navigation

I have applied custom filter on product collection to hide certain products from listing page. I have used below event for same <event name="catalog_product_collection_load_after"> ...
0 votes
0 answers
16 views

Layered Navigation with custom filter

I want to filter Product List Page and I'm using a plugin to filter the collection using the layer class Magento\Catalog\Model\Layer::prepareProductCollection() The products are removed but the ...
1 vote
1 answer
3k views

Magento 2 layered navigation price filter issue

Price filter show negative pricing like -1000- -01 and so on I have some configurable products in Magento 2 and it shows negative pricing in the layered navigation filter. Please find the screenshot ...
0 votes
2 answers
2k views

Magento 2: Left Category Sidebar from website (copy of question)

I am trying to create left sidebar category navigation for my website. But it shows only default category. It does not show any other subcategories. I activated all category is_anchor, and re-...
1 vote
2 answers
3k views

how to show all attributes even filters applied in magento 2.1

how to show all attributes even filters applied i.e., if we click on like color options then some options get's cleared so i want to display all filters whether if we choose another option also.
0 votes
1 answer
30 views

Magento 2 api for layer navigation filters available?

<?php namespace handymust\Filter\Model; use handymust\Filter\Api\FilterInterface; use Magento\Catalog\Model\Layer\Resolver; use Magento\Catalog\Model\Layer\Category\FilterableAttributeList; use ...
2 votes
1 answer
108 views

Change Active filter position Magento 2

I want to update the Active filter position from left side to right side just above the product listing. Please guide me how can i do that. Current Position: On left side Required Position: I want to ...
1 vote
1 answer
3k views

Magento 2 Layered Navigation on Advanced Search Result Page

I am able to enable 'Layered Navigation' on Catalog Search Result-Page "http://127.0.0.1/catalogsearch/result/index/" (see image below) by just enabling the storefront properties 'Use in Search ...
1 vote
2 answers
1k views

Multiple sort collection

When I am in the listening product when I mark order alphabet by name I want to use two attributes. First my attribute, later name. This is my structure name product: my_attribute name_product I ...
1 vote
1 answer
2k views

Changing advanced search results query - Magento 2

I've extended the default layered navigation in magento 2 so that filter parameters are added like so: ?free_from=304_303_302 Where option ids are separated by an underscore, in the above example ...
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. ...
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
1 vote
2 answers
2k views

How to resolve the Error "Call to a member function getChildren() on null"

I wish to display the level1 and level2 subcategories of current active category in layered navigation in list page. So I gave the below code in catalog/category/view.phtml : <div class="sidebar-...
1 vote
1 answer
2k views

Magento 2.2 : Search Functionality/Layered Navigation on a Custom Product Collection?

I use a custom product collection which is used on all category view pages (basically, instead of using Magento's collection, I wrote my own module with the custom collection to implement a cookie-...
1 vote
2 answers
2k views

Magento 2 - Move Layered Navigation above products

Currently my Layered Navigation on mobile is under the products. On a large Category we have 60 Products displayed with additional filters for the layered navgiation. Since the users cant find the ...
0 votes
2 answers
3k views

How to Keep all Filters Visible in Magento 2

Is it possible to keep all filters visible in the Layered Navigation even when one or more are active. Currently I have built a navigation with category and product attribute filters. By default when ...
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/...
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('...
0 votes
1 answer
75 views

Rename Shop by and clear all text in left side Magento2

I want to change the text SHOP BY and clear all from the left sidebar in the list page, Below is the screenshot
0 votes
0 answers
102 views

Magento 2.4.6 - How we can add quantity_and_stock_status in layered navigation Graphql?

I want to add an "out of stock exclude" filter in Layered Navigation using GraphQl. I have enabled "Display out of stock" in the admin configuration. And also change the ...
2 votes
2 answers
1k 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
0 answers
107 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 ...
0 votes
1 answer
2k views

Filter with Price Not shown in Navigation Layer

I have a simple product under the same category with different prices and my store is multilingual (i use the same currency euro), I just configured the price as manual and I checked that price is ...
0 votes
2 answers
2k views

Set Is Anchor to 'No' in Category settings have any other side effects other than removing Layered Navigation?

I've been working with a Magento 1.9 shop that has issues with their speed, and I've noticed turning off the 'Is Anchor' in Category settings speeds up the category view significantly. I understand ...
0 votes
1 answer
1k views

Show All Attributes Of Filter Layered Navigation Before & After Applying Filter : magento2

I am Creating a functionality to show all attribute of layered navigation in magento2. All options of particular attribute must shown before & after applying filter in layered navigation. I have ...
1 vote
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\...
4 votes
1 answer
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\...
0 votes
0 answers
79 views

Magento 2 Layered Navigation Active on desktop but closed on mobile

Currently all the items in the layered navigation are active in desktop and that's how I want it to display but for mobile I would want them to be all closed and open on click. How can I achieve this?
0 votes
1 answer
16 views

How can I create Layered Navigation Filters on MobileApp using APIs?

I want to create the layered navigation filters for my mobileapp the same way it is working on web how can i do this kindly guide Thanks in advanced
1 vote
1 answer
1k views

Hide certain filter from layered navigation top category

I have the following question: Add the layerend navigation of a top category, all the filters of all underlying subcategories are shown. In top categories, we only want to show two filters: product ...
0 votes
1 answer
2k views

Stock and Out Of Stock filter in Layered Navigation

I try to add Stock and Out Of Stock filter in the Layered Navigation. I set the configuration of the attribute "quantity_and_stock_status": In the storefront I look the filter, but if the ...
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 ...
2 votes
1 answer
3k 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 ...
0 votes
1 answer
1k views

Magento 2.4 | Filters are no longer seen with Elasticsuite

I have updated Magento to version 2.4.2 and have also activated Elasticsuite as the default search engine. Elasticsuite installation went smoothly and the module is correctly installed. The search bar ...
0 votes
1 answer
1k views

How to get product collection total with pagination in magento 2

I have implemented pagination with limit & offset but when I am fetching the collection total after applying multiple filters then it's giving the wrong total count. $layer = $...
8 votes
4 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 ...
2 votes
1 answer
4k views

layered navigation filters

Is there any way to get the url to only load one filter Let me brief a bit. I am talking about one filter say size I have modified the filters to select multiple items at a time But if a user has ...
0 votes
1 answer
62 views

How Do I Get Layered Navigation Filter using REST API

I used class as picture but it return wrong data (attribute_code is correct but values wrong
0 votes
1 answer
59 views

Theme vs Extension - What is the the correct way to remove a conflict? Magento 2 - Port Theme vs Mirasvit Layered Navigation

I am using Magento 2 with the Porto Theme and the Mirasvit Layered Navigation Extension. Currently I am getting an error because the Mirasvit Layered Extension is expecting a Mirasvit\...
1 vote
0 answers
72 views

Magento 2 - Price filter for configurable products based on associated simples within range

I have a catalog with a "size" attribute, and the product price varies based on the size. On the Product List Page, I am displaying only configurable products along with the product price, ...
0 votes
1 answer
192 views

Layered Navigation issue on catalog search result page in magento 2.4.5

can anyone please tell me why am I not getting layered navigation in search result page in magento2.4.5? I tried various modules. currently I don't have any module of Layered Navigation using magento2....

1
2 3 4 5
17