As of May 31, 2023, we have updated our Code of Conduct.

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
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\...
Klaus Mikaelson's user avatar
1 vote
1 answer
345 views

Show only filters in layered navigation for search results where all products have that filter populated

I am trying to implement this feature: the filters that are shown in the search results page are only visible if every products in that results page have the attribute linked with the filter populated....
diego_magento's user avatar
0 votes
1 answer
228 views

Magento 2 How to get layer navigation filters available in rest api?

Here am trying to get layered navigation available filters here is my code $filterableAttributes = $this->filterableAttributes; $layerResolver = $this->layerResolver; $...
Praveen Negimani's user avatar
0 votes
3 answers
416 views

ajax based multiple select layered Navigation with infinite product Scroll

I am looking for an extension with these Features Ajax Based Layered Navigation with Multiple select Infinite product Scroll please recommend any free or paid extension or group of an extension but ...
Waqar Ali's user avatar
  • 2,189
2 votes
2 answers
1k views

Magento 2.4.1 layered issue with elasticsearch

I am having this issue. After every reindex category pages in front end keep crashing with error: [2020-11-13 10:51:09] report.CRITICAL: {"error":{"root_cause":[{"type":&...
G. G.'s user avatar
  • 1,044
0 votes
1 answer
513 views

Magento 2 - Filter through non anchor categories throws "The bucket doesn't exist." exception

I am facing this issue on M2.3.5-p2 when filter through non anchored subcategory on the main category(anchored) page. Steps to reproduce From the admin set parent category anchor to Yes. For one of ...
Rahul Barot's user avatar
  • 1,072
0 votes
1 answer
379 views

Magento 2.3.5 : Call custom block before layered navigation

I am using Magento 2.3.5 and I need to call custom block before layered navigation. How can I call that? I used this below code <?xml version="1.0"?> <page xmlns:xsi="http://...
Niket's user avatar
  • 147
0 votes
1 answer
87 views

Using luma LayeredNavigation in custom theme based on blank theme

I want to copy the style and functionality of luma layered navigation to my custom theme - parent is blank theme. If I copy the Magento_LayeredNavigation of luma theme to my custom theme <vendor>...
Samuel Demir's user avatar
0 votes
1 answer
654 views

Layered Navigation not working using elastic search 6.0+

i am using elastic search 6.0+ and porto theme with magento 2.3.2 , using mageplaza layered navigation but when i click in any filter gave 500 error on console and front end show without css.
Shan Haider's user avatar
0 votes
2 answers
320 views

Magento 2 rating add custom filter add in product page review tab

i need a filter review by name or date and by sort in magento 2.3 product review tab , so customer can easily search best review how can implement this functionality?
jay's user avatar
  • 1
0 votes
1 answer
396 views

Magento 2.3.4 how to Develop custom filter in left layered navigation?

I am developing a custom module to add the custom filter in left layered navigation,currently we have custom product collection and want to add the filter in layered navigation with three option: 1....
akgola's user avatar
  • 2,877
1 vote
1 answer
1k views

How to add swatch data in Layered navigation aggregations in graphql?

How to add swatch data in Layered navigation aggregations in Graphql? Magento provides swatch data to filters [LayerFilter] but this is DEPRECATED so we use aggregations for the filter. Below query is ...
Devidas's user avatar
  • 3,253
0 votes
1 answer
287 views

Layered navigation showing error in magento 2.3

I am using BSS layered nabigation extension. After installing, i am getting one error. See below: I am using BSS layered navigation. but it showing error and my site is not working. Error: {"0&...
gill's user avatar
  • 329
1 vote
1 answer
919 views

Magento 2.3 Custom Filter Layer Navigation Error: The attribute model is not defined

I have a custom product attribute brands, this is a dropdown option that has dynamic select value, basically i want to add a custom layer navigation filter to check whether the product attribute value ...
blue's user avatar
  • 108
0 votes
3 answers
909 views

Product attribute in filter

My issue is quite simple to resume : I have 2 products attribute. One of them is already appearing in my filter front panel. The other is not. I have almost the same configuration for both of them. ...
Claims's user avatar
  • 1,054
1 vote
0 answers
15 views

Magento2: Lareyed navigation - how to select multi category name

Currently from filter is possible only select one option from one attribute: https://prnt.sc/tkjrep Is any way to display products from example both option from one attribute? example: https://prnt.sc/...
Sylvester's user avatar
  • 2,156
1 vote
0 answers
82 views

Shop by brand on CMS Page

How to shown Layered navigation like shop by categories or shop by brand on left side of CMS page, in Magento 2.3.5
ishaq's user avatar
  • 141
2 votes
0 answers
102 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
0 votes
1 answer
97 views

Can i add product in category page product collection?

Can I add a product in category page product collection? I want to add product #123 in category page product collection but the same product already exists in the collection so it is possible? My ...
Sagar Dobariya's user avatar
2 votes
1 answer
297 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
1 vote
0 answers
87 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
  • 93
0 votes
0 answers
43 views

Wrong attributes displaying in layered navigation

Don't know if anyone can help. Using Magento 2.3.2 We sell plants on our site, and I have set up different attribute groups for different types of plants - shrubs, veg, flowers, fruit, and herbs. Some ...
user355218's user avatar
0 votes
1 answer
761 views

Magento 2.3.5 extend \Magento\Catalog\Model\Layer

I'm able to add layered navigation to a custom page, but if I try to extend \Magento\Catalog\Model\Layer class i've got this exception: 1 exception(s): Exception #0 (Exception): Notice: Undefined ...
krybbio's user avatar
  • 1,258
0 votes
0 answers
488 views

I am getting incorrect count of products for layered navigation in magento 2.3

In layered navigation filter i am getting incorrect product count, i can't get the solution for this problem. Example : The products under Shorts category in 49 but in the filter for me showing as ...
Sabareesh's user avatar
  • 328
0 votes
1 answer
644 views

Magento 2.3.4 - How to create filter by product rating in layered navigation

I want to have a filter by product rating in layered navigation. Regarding this, I found a solution Magento 2 : Rating Filter in Layered Navigation. This is working fine if you modify vendor\magento\...
Soham.M's user avatar
0 votes
1 answer
845 views

How to change the position of the filters in product page or Layered navigation

Hi, I need to change the layer navigation position as shown in below image the Manufacturer first and Category to second. But i can't find how to change these. The Category must come at second ...
Sabareesh's user avatar
  • 328
2 votes
1 answer
398 views

Magento 2 : BreadCrumbs and Page Title not Display on Custom Page

I used this blog for add custom collection on my custom page with layered navigation. But, there are not display breadcrumbs and page title using this below blog. How to add it? https://webkul.com/...
Daniel Philip's user avatar
2 votes
3 answers
2k views

Problem in creating Drop down product attribute in Magento2

I have created a Data patch file to create the product drop down attribute with options. used the following code in it. <?php declare(strict_types=1); namespace Custom\Module\Setup\Patch\Data; ...
jafar pinjar's user avatar
  • 1,839
0 votes
0 answers
49 views

Products showing up in layered navigation after saving them again from admin panel

This is Very weird problem i am into right now, Its a clothing store where i have uploaded 50 products for an example and they are successfully visible in both front and back end. Now if i apply ...
Neelam Kohli's user avatar
0 votes
1 answer
451 views

How to add button at top of Layered navigation Filter from custom module?

I have a phtml that contain button like this in my custom module : app/code/Vendor/Module/view/templates/button.phtml <button> <span> <?= __('New Button') ?> </span> </...
jojo's user avatar
  • 119
0 votes
1 answer
84 views

Layer Navigation on custom collection Magento 2

We have created custom extension for clearance sale products. Collection based on the Product attribute which we have created for clearance sale.We have Block file which contains the Collection.We ...
Harshil Parekh's user avatar
0 votes
1 answer
390 views

Magento 2 Search within category product list

In magento 2, is it possible to have search option within category product listing? please find below attach image [updated] finally, i have rewritten Listproduct.php class and search is working. The ...
ratheepan siva's user avatar
0 votes
0 answers
31 views

Magento2 call WebPixel module after Algolia module

I have facing issue when 2 modules are overriding the same core Module \Magento\CatalogSearch\Model\Layer\Filter\Attribute Both are extending same file. In Webpixel WeltPixel\LayeredNavigation\...
Arjun's user avatar
  • 3,504
0 votes
1 answer
303 views

Magento2.3.3: Unknown column 'e.min_price' in 'field list'

Working on custom layered navigation on custom collection. follow this solution link Getting an Error: Exception #0 (Zend_Db_Statement_Exception): SQLSTATE[42S22]: Column not found: 1054 Unknown ...
Hafiz Arslan's user avatar
0 votes
0 answers
40 views

Magento2 - Price Layered Navigation Issue

When a product price is more than 100,000 . The price filter showing only two options 13,000 - 100,000 100,000 - 130,000 As filterable options , When i disabled the product which is having price ...
Dinesh's user avatar
  • 532
1 vote
0 answers
67 views

Rest Api add additional attribute filter in Layer navigation API

I have successfully created Layer navigation REST API using given solution on this question Magento 2 api - How to get layer navigation filters available in rest api? However I want if someone ...
Kanika's user avatar
  • 171
1 vote
0 answers
41 views

Magento2 - Layered navigation issue

I have a Magento2.3.4 installation. The issue is that the product count on layered navigation is wrong. When I am selecting an option the products showing on the grid are correct.
eftihios1986's user avatar
0 votes
1 answer
263 views

Magento 2 How to apply filters for layered navigation Using REST API

I want to apply filters for layered navigation using REST API. If I send color=5 then in category page it is displaying 2 products so how to get that data in API response?
gajjala sandeep's user avatar
5 votes
4 answers
3k views

Display out of stock product only for specific Category in Magento2

I have to show out of stock products only in certain categories by hiding them in all other categories. used below plugin to implement, that is not working. Vendor/Module/etc/di.xml <type name="...
Manjunath's user avatar
  • 177
2 votes
0 answers
168 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,081
0 votes
3 answers
336 views

Theme(Zemez template monster) not supporting Multi-select Layered Navigation extension in magento 2.3.3

I have been searching for a free and open source Multiple select Layered Navigation. I found this https://www.magesolution.com/magento2-layered-navigation.html extension which working 100% fine and ...
Sayyed Hasan's user avatar
0 votes
1 answer
400 views

How to copy Luma Layered Navigation to Blank Theme

I have created a custom theme in Magento 2.3 which is extended from the blank theme. I would like to use the luma layered navigation. I have copied Magento_LayeredNavigation folder from /vendor/...
Gary's user avatar
  • 11
0 votes
0 answers
247 views

Magento InfiniteScroll not working with AheadWorks Layered Navigation

I am using https://github.com/Strategery-Inc/Magento-InfiniteScroll extesion for infinite scroll with porto + AheadWorks Layered Navigation It's stops working when we apply any sorting? Do you have ...
Kanika's user avatar
  • 171
1 vote
1 answer
203 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 ...
Shoaib Munir's user avatar
  • 9,203
0 votes
0 answers
172 views

Can we use virtualType in programmatically in layererd navigation filter?

Just wanted to know, how can we use virtualType programmatically in magento 2 custom script file ? Actually I am building api for layered navigation and I am getting following error. Fatal error: ...
Amit Maurya's user avatar
  • 2,853
3 votes
4 answers
10k views

How to filter product collection with default graphql products query

I am using Magento 2 Graphql to get product collection based on category id. I want to apply filter by color, size, material etc. I have checked the graphql available filters and those are not ...
Yash Shah's user avatar
  • 2,443
1 vote
1 answer
531 views

Magento2.3.3 Layered navigation filters are not working properly

We recently upgraded from magento 2.2.7 to 2.3.3 We have an issue when we click on any filters at PLP. The filter parameters are getting stripped from the URL and it redirects back to Original PLP ...
Manaf P M's user avatar
  • 223
1 vote
0 answers
68 views

Magento 2 - Layered navigation show products with salable quantity to 0

In my store I have all products with only 1 quantity. When I buy a product, its "Salable Quantity" is 0 instead its "Quantity" stays 1 and thats ok, because the product is only "reserved" and the ...
Mirko Rapisarda's user avatar
1 vote
0 answers
117 views

Magento2 Mageplaza LayeredNavigation multiselect filter with AND condition [closed]

I am working on a project which uses Mageplaza Layered Navigation. I need to change the behavior of multiselect from OR to AND. As an example, I create attribute color. When I search for red and ...
Atta Ul Mustafa's user avatar
0 votes
2 answers
2k views

Magento 2 Custom filter of product list page not affecting layered navigation

I have a filter in My list.phtml like below: $_productCollection = $block->getLoadedProductCollection(); if($_COOKIE['selectToGarageList']){ $dat = $_COOKIE['selectToGarageList']; ...
Ramesh KR's user avatar
  • 826

1
2
3 4 5
17