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
0answers
27 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->...
0
votes
2answers
29 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\...
0
votes
0answers
19 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
8 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 ...
0
votes
0answers
69 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
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
28 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 ...
0
votes
1answer
44 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 ...
0
votes
0answers
12 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
28 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 ...
0
votes
0answers
21 views

Magento 2 shop by price is not showing on sub category pages

Magento 2.3.5-p2 shop by price is not showing on the subcategory page, it is showing on category pages
0
votes
0answers
62 views

How to Create an 'AND' Condition for Layered Navigation Magento 2?

Filtering with layered navigation on attribute 1, attribute 2 and attribute 3, I get the parent product because the child products have filtered attributes like child product 1 => attribute 1, ...
0
votes
0answers
8 views

Magento 2 | Enable filters on collection factory programmatically

In my phtml file that I recalled in a cms page I took the entire collection of products, filtered it and finally recalled it. Everything works fine but I can't get the navigation filters like they are ...
0
votes
0answers
16 views

Magento 2 | Add Filters of Layered Navigation to custom collection

I asked this question because I would like to explain myself better. In my CMS page I have recalled my custom collection in this way: $blockProductColl = $block->getLayout()->createBlock(...
0
votes
0answers
39 views

Magento 2.4 : override product collection filter not work in layered navigation

I am using magento 2.4 version. I wanna user custom filter in product collection so I override getProductCollection() function in \Magento\Catalog\Model\Layer.php but it filters the product but not ...
0
votes
0answers
11 views

How to add layered navigation in bestseller product page

I want to add layered navigation in bestseller product page in magento2.4 how can i add this without using any extension
0
votes
0answers
10 views

How can I do product sorting on configurable's child product attribute data depending on the layered navigation filter selection

I have a particular requirement where I need to do product sorting on configurable's child product attribute data depending on the layered navigation filter selection. The following illustration will ...
0
votes
0answers
43 views

How to implement Magento 2 Custom Layered Navigation on custom product collection list page?

I already have a products collection on custom list page, how would I implement custom layered navigation and use my own products collection? Here is an example module that will allow specify product ...
0
votes
0answers
192 views

Magento 2.3 Layered Navigation Keep FIlters Available

I need the attributes present in Layered Navigation to remain available after the results are further filtered. Example In the search results or by selecting a category, the manufacturer attribute ...
0
votes
2answers
505 views

Magento 2.4.1 Layered navigation with custom product collection

I want to override category product collection on the category product page in front-end. I want to show collection according to attribute set. After customize collection layered navigation product ...
1
vote
0answers
28 views

How does product count on layered navigation in Magento 2.4 is being rendered?

i'm using magento 2.4.1 and successfully overriding the product collection for layered navigation by overriding the getProductCollection method. The problem is the layered navigation sidebar showing ...
0
votes
0answers
98 views

Magento 2 | Use input text as a filter in layered navigation

I try to explain what I would like to do: I created a new attribute called stockqty in Stores> Attributes> Products. I assigned this attribute to the Default section and re-indexed everything ...
1
vote
1answer
54 views

How can i create custom filter with custom attribute in header panel in magento 2?

I create one product attribute which name "country" type drop-down. in that i add two country there US and CA now at front-end , front header show custom drop-down with that product option . ...
0
votes
0answers
30 views

I want to add qty filter same as price filter in layered Navigation in Magento 2

In this i want to develop functionality in which qty filter is added and in that range is displayed in layered navigation as price filter. qty range as below: 1 - 50, 50 - 100, 100 - 150, ... so can ...
0
votes
2answers
60 views

Magento 2 How to change attribute filter position in layered navigation

I want to move the climate product attribute position from the bottom to the third position. Can you please help me out?
0
votes
1answer
197 views

Product collection override but filter not magento in Magento 2.4

I have override vendor/magento/module-catalog/Model/Layer.php for custom product collection but now the layer navigation and product count is working wrong, I checked for Magento\CatalogSearch\Model\...
0
votes
0answers
15 views

Filter Category Options are differente when I change from one page to another?

I am facing something weird in one project that I don't know if is normal (I hadn't seen this behavior in another project). The customer reports to me that when you enter to Category first page, ...
1
vote
2answers
62 views

addAttributeToFilter for Multislect Attribute Update Query Magento 2

I have Multiselect product attribute and i want to filter product by that attribute. Currently i am using below code, $productCollection = $this->getLayer()->getProductCollection(); $...
0
votes
0answers
45 views

Magento 2.4.2 increase max_result_window ES when reindex

I am wondering if there is a way to increase ElasticSearch max_result_window number every time magento is trying to reindex. I am having this issue with magento 2.4.2 Layered navigation category pages ...
0
votes
0answers
20 views

Maximum price not appearing in layered navigation

I can't get a "£100 and above" to display in my layered navigation. It's currently set to Automatic (by price range) but it's a poor experience and is happening to a variety of categories.I ...
1
vote
0answers
83 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 ...
0
votes
0answers
22 views

Magento 2 Rest Api Based Layered Navigation WIth Selected FIlter

I am looking to write rest API for layered navigation with selected filter . I have checked below link https://magento.stackexchange.com/questions/262052/magento-2-api-how-to-get-layer-navigation-...
0
votes
0answers
19 views

Url category of products not showing correct products

If the category opened from menu kategori/bordslopare then It does not show correct number of products but if a filter like this is added then It shows correct number of products ?handla_cat=9807 At ...
0
votes
1answer
431 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
1answer
23 views

How to we move current applied filter state to center of the page just beside the sortby

In the category page layered navigation, I want to move the current applied filter state just beside the sort by or center of the page. Can anyone please help me out?
0
votes
0answers
16 views

Magento2 Layered navigation doesnt work on sub menu

Im working on a filter module using Magento_LayeredNavigation module. I installed sample data to check my filter i works it doesnt work on someplaces and it works on someplaces. In the picture above ...
-3
votes
1answer
235 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.
1
vote
1answer
198 views

After update Magento 2.3.5 to 2.4.2 on all category pages error: Exception #0 (RuntimeException): Catalog Layer has been already created. How fix?

After updating the version, I started getting on all category pages this error: Exception #0 (RuntimeException): Catalog Layer has been already created This is error in: vendor/magento/module-catalog/...
0
votes
0answers
41 views

Magento 1.9 multi-select attributes not appearing in layered navigation

First post! I have inherited a Magento 1.9.4.5 install with multiple store views. I have a global attribute (added to all attribute sets) for "Diet and Lifestyle", multi-select with four ...
0
votes
0answers
22 views

Nested attributes

We are selling school uniforms and have about 40k of products. Our Magento 2 “categories” are basically schools we work with. We want to make a use of “layered navigation”, but facing a problem, which ...
4
votes
3answers
487 views

Magento 2.4: show variant images of configurable product based on filter

i have configurable product on listing page with swatches enabled . Configurable product has images swatches - Red , Green, Blue. Not when i applied Color - filter as Red still images on Listing page -...
0
votes
1answer
29 views

No categories in the layered navigation

I stuck with a problem that some of the categories won't show in the layered navigation. An anchor is enabled, re-indexation and cache clearing made many times, changed the theme to default Luma. ...
0
votes
0answers
18 views

How to add Loc_layered navigation in catalog search page in magento 2

I am using magento 2.3.5 version I have used Lof_LayeredNavigation module for multiselect filter but this is not working on catalog search page, as we have search any product, Attribute is show in ...
0
votes
0answers
17 views

Magento 2 getproduct collection with catalogsearch leftnav

I want get product collection with catalog search left block I tried this way $leftNavBlock = $layout->getBlock('catalogsearch.leftnav'); $list['options'] = $leftNavBlock->getLayer()->...
0
votes
0answers
10 views

Display static block in category page based on applied filters in layered navigation?

how display the static block content based on the applied filters in the category page of the Magento 2
0
votes
0answers
16 views

How to use grouped product attributes for simple products in layered navigation

I am working on a chemical catalog and I have created grouped products to add attributes like molecular weigt, CAS-Number and other chemical data. These data are all the same for my simple products. ...
0
votes
0answers
21 views

Magento 2.3.5 layered navigation (left sidebar) url adding category id not the name

I am configuring a Magento 2.3.5 shop. After clicking on a subcategory name in the layered navigation the category id (?cat=) is showing in the url instead of the name. Example: www.myshop.com/shoes/?...
0
votes
0answers
45 views

Magento 2 - Mobile View Layered Navigation move to top

I have a magento 2 store which has over 100 products displayed with additional filters for the layered navigation. I just want to move these filters to the top on mobile as currently they are at the ...
0
votes
0answers
27 views

how can I apply and clear a layered navigation filter via javascript in Magento 2.4?

I would like to create some quick filter buttons for layered navigation, for example to trigger popular filters like featured products, recommended etc. I would like to programmatically trigger the ...

1
2 3 4 5
17