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
16 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
7 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
6 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
19 views

How To Apply Selected Attribute filters and remove other filters

I create custom module where I create multiselect dropdown.How to Apply Selected option as Filter and hide other in the front end side. I create a file which overrides Filterlist and get the selected ...
0
votes
0answers
10 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
27 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
9 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
9 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
35 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
92 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
166 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
25 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
39 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
41 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
26 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
45 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
82 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
14 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
57 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
26 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
45 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
18 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
255 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
17 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
15 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
89 views

Magento2: Can we add range slider on product attribute

In current magento2 provide range slider on product attribute "price". I have requirement range slider on Case Diameter.
1
vote
1answer
70 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
32 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
14 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
213 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
28 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
17 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
13 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
8 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
12 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
18 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
26 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
15 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 ...
0
votes
1answer
24 views

CATEGORY filter appearing two times

In Layered navigation There are two filters of same name appearing two times how can I remove the above one: We want to remove the first CATEGORY FILTER AND make the second to be displayed only?
1
vote
1answer
505 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\...
0
votes
0answers
35 views

custom brand filter issue duplicate layered navigation magento 2.4.0

I have create custom filter by brand but issue duplicate layered navigation Magento 2.4.0 This xml code comment layered navigation work perfectly Anyone advance thanks for help. catalog_category_view....
0
votes
0answers
19 views

Combine Layered Navigation and search by name

I am trying to add a searchbox on my category pages that my users can use to filter (by name) the products in category that they are looking at. It should also work with already existing filters that'...
1
vote
1answer
20 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
44 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
0answers
15 views

I need to show the layered navigation according to the Category in magento 2.3.5

I need to show the filters according to the categories. Categories: Tyre Tube Filters: Brand Thickness Size Model Vehicle Need to show the filter according to category Tyre: Brand, Model, Vehicle....
0
votes
0answers
13 views

How to get all filters even after filtered applied magento 2?

How to get all filters even after filtered applied in Magento 2 Layered Navigation.I need this for Rest API Magento 2. If I filter by color. All other Options of color did not get in response. Please ...
0
votes
0answers
197 views

Exception #0 (Magento\Framework\Exception\LocalizedException): The attribute model is not defined

When i search on my website with sku below error message appear https://yassupanju.com/index.php/catalogsearch/result/?q=k-614 1 exception(s): Exception #0 (Magento\Framework\Exception\...
0
votes
0answers
14 views

How filtered attribute hides in layered navigation?

If I select the color as a filter in layered navigation, then it hides that color attribute and displays the remaining attributes regarding that color. I want to make this function for layered ...

1
2 3 4 5
17