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
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. ...
1
vote
1answer
109 views

Custom Product Collection not Getting Filtered by Layered Navigation in Magento 2.4.1

I am trying to create a page that show a list of products that have price which is greater than some specific amount and i also want to add Layered navigation for filter these product collection based ...
4
votes
1answer
101 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\...
6
votes
1answer
3k 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/...
2
votes
2answers
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
2answers
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
2answers
2k views

Magento 2: Left Category Sidebar from Sebwite (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-...
0
votes
1answer
37 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 = $...
0
votes
2answers
4k 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 ...
1
vote
2answers
966 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 ...
13
votes
2answers
2k views

Magento 2: Layered Navigation Price Filter Not Working After Applied Custom Product Discount

I working on a product discount module. I did it via plugin and observer. it's working fine on product page and list page. But price filter is not working according to the updated product price. Here ...
1
vote
2answers
3k views

Layered navigation 'item with same ID already exists'

Whenever i try to filter by a custom attribute (type = price) i get the error : Exception #0 (Exception): Item (Magento\Catalog\Model\Product\Interceptor) with the same ID "871" already exists ...
0
votes
1answer
961 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 ...
0
votes
2answers
1k 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 ...
5
votes
1answer
2k 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 ...
9
votes
3answers
7k 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 ...
0
votes
1answer
1k 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 ...
0
votes
1answer
1k views

Filter with Price Not shown in Navigation Layer

I have a simple product under same category with different prices and my store is multilingue (i use the same currency euro), i just configured the price as manual and i checked that price is ...
1
vote
1answer
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
1answer
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 ...
0
votes
0answers
37 views

Magento 2 catalog search - request query and filters aren't set

I am configuring a fresh Magento 2 installation, and encountered a problem with the catalog search. The request returns this exception: #1 Magento\Framework\Data\Collection\AbstractDb->...
2
votes
1answer
2k 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
1answer
1k 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
2answers
45 views

How to solve this Exception #0 (Magento\Framework\Exception\StateException): The bucket doesn't exist

1 exception(s): Exception #0 (Magento\Framework\Exception\StateException): The bucket doesn't exist. Exception #0 (Magento\Framework\Exception\StateException): The bucket doesn't exist. #1 Magento\...
1
vote
1answer
1k 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 ...
12
votes
1answer
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 ?
0
votes
1answer
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.
1
vote
1answer
3k views

Magento 2 Layered Navigation doesn't show search filter's values

I have a store with 10 products simple , configurable and grouped. My category layered navigation is working fine with filterable attributes. but when I search it shows empty attributes. I did the ...
0
votes
2answers
1k 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 ...
0
votes
0answers
22 views

Magento 2: Get Layered Navigation filters by store id

We are fetching layered navigation filters as follows: $layer = $layerResolver->get(); $layer->setCurrentCategory(2); $productCollection = $layer->getProductCollection(); $productCollection-&...
0
votes
0answers
9 views

Layered navigation results show only products with and-and attributes, now showing or-or attributes, Magento 2

How can I do and-and filter when filtering with layered navigation? For example: When I filter attributes (size = 50, color = red), the result returns a configurable product when some of this child ...
1
vote
1answer
2k 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 ...
0
votes
0answers
107 views

How to fix layered navigation error in 3rd party module with category and price filters?

Running Magento 2.3.4 with Webkul Multivendor Marketplace Module and it is having compatibility issues with Mageplaza Ajax Layered navigation. The layered navigation and ajax filters doesn't seem to ...
0
votes
2answers
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.
1
vote
1answer
2k 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 ...
1
vote
2answers
1k 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
1answer
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 ...
1
vote
1answer
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-...
3
votes
2answers
1k 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
-3
votes
1answer
259 views

Magento2: Can we add range slider on product attribute

[![enter image description here][1]][1] In current magento2 provide range slider on product attribute "price". I have requirement range slider on Case Diameter.
0
votes
0answers
13 views

Using layer navigation : filter breaks current localisation

Here are some specs : Magento 2.4.2 Argento Home Theme (Swissup) Localization : fr_FR Store code url : none (so the fr codde isn't in the url) On a category page, using the layer navigation for ...
0
votes
0answers
38 views

Add Horizontal & Vertical Layered Navigation

I have a requirement in my project where I need to show both horizontal & vertical layered navigation in product listing page. I have tried to achieve it but facing issue of Illegal state I have ...
2
votes
2answers
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 ...
0
votes
1answer
54 views

Magento 2: How to remove category layered navigation from search result

In Magento2.4.x how to hide categories from left side layered navigation on search result page only. Is there any setting/configuration or will have to do through code There is a configuration here ...
1
vote
6answers
11k views

Moving layered navigation below product toolbar in layout.xml

I'm having some issues re-ordering elements within following file: [MyTheme]/Magento_Catalog/layout/catalog_category_view.xml I'm trying to move the layered navigation below the product toolbar, ...
0
votes
1answer
2k views

Magento 2 - get list of all manufacturers in a category

I am trying to get a list of all manufactures (brands) in my block for the current category. (Essentially the "Brands" filter in the layered navigation). This is my current code: <?php ...
1
vote
1answer
148 views

Magento 2 - Custom API to get layered navigation

In magento 2.2.5 Enterprise edition I am trying to get layered navigation using custom API. I got solution form here: https://magento.stackexchange.com/a/262086/31910 my code is this: Please ignore ...
0
votes
0answers
18 views

Add layered Navigation filter as In stock availability magento2.4

I want to add "Stock availability" as layered navigation filter. but I can't find this attribute in attribute set.
0
votes
0answers
29 views

Layered Navigation extension for an electronic gadget shop

I am trying to find an extension or other solution for frontend Layered Navigation for an electronic gadget shop (Magento 2.4.2). Requirements: -displaying on storefront a specific filter set for a ...
0
votes
0answers
14 views

Magento 2 add query to custom url

I'm working with multiple checkboxes of layered navigation. I have to use mail category Id to pass active and clicked params as a filter to URL. In my plugin I override getUrl like this. public ...

1
2 3 4 5
17