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
1answer
63 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....
0
votes
1answer
80 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; $...
0
votes
2answers
128 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 ...
0
votes
2answers
718 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":&...
0
votes
1answer
232 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 ...
0
votes
1answer
121 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://...
0
votes
1answer
49 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>...
0
votes
1answer
508 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.
0
votes
2answers
171 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?
0
votes
1answer
81 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....
1
vote
1answer
586 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 ...
0
votes
1answer
191 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&...
1
vote
1answer
578 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 ...
0
votes
3answers
98 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. ...
1
vote
0answers
11 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/...
1
vote
0answers
44 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
2
votes
0answers
46 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.
0
votes
1answer
57 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 ...
2
votes
1answer
135 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 ...
0
votes
0answers
58 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/...
0
votes
0answers
37 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 ...
0
votes
1answer
421 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 ...
0
votes
0answers
236 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 ...
0
votes
1answer
305 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\...
0
votes
1answer
235 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 ...
2
votes
1answer
182 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/...
2
votes
3answers
1k 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; ...
0
votes
0answers
21 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 ...
0
votes
1answer
196 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> </...
0
votes
1answer
27 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 ...
0
votes
1answer
160 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 ...
0
votes
0answers
24 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\...
0
votes
1answer
187 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 ...
0
votes
0answers
34 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 ...
1
vote
0answers
41 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 ...
1
vote
0answers
39 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.
0
votes
1answer
186 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?
5
votes
4answers
2k 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="...
2
votes
0answers
108 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 ...
0
votes
3answers
288 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 ...
0
votes
1answer
257 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/...
0
votes
0answers
168 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 ...
1
vote
1answer
149 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
99 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: ...
3
votes
4answers
7k 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 ...
1
vote
1answer
363 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 ...
1
vote
0answers
56 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 ...
1
vote
0answers
66 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 ...
0
votes
2answers
1k 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']; ...
1
vote
1answer
216 views

Category Toolbar Showing Incorrect Count and Paging Not Working

I've got a problem with a live site where the toolbar is showing the incorrect product count, not changing sort direction or filter nor is it changing the product on pagination change. You can see it ...

1
2
3 4 5
17