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
3 views

Filter collection of products (configurable, grouped, bundle) programmatically

I need to filter product collection by attributes. My collection may includes many product types: configurable, grouped, bundle, simple... I tried to research many times but cannot find any solution ...
0
votes
0answers
17 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
31 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
0answers
22 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
45 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
18 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
17 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
36 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
16 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
0answers
88 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
13 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
43 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
40 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
28 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
12 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 ...
3
votes
1answer
142 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
16 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
12 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
6 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
9 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
11 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
15 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
14 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
22 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
335 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
29 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
16 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'...
0
votes
1answer
11 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
24 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
14 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
12 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
140 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 ...
0
votes
2answers
33 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
275 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
0answers
15 views

How to add criteria to all product search?

I associate all my products to at least 1 category (visible from menu) + 1 'special' category (not visible from menu). There are many 'special' categories, they are special because not visible form ...
0
votes
1answer
86 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
0answers
44 views

Magento 2: Layered navigation $filter->getItemsCount() very slow

We are using layered navigation and are loading a filter block in sidebar. But $filter->getItemsCount() takes a long time to load. <?php foreach ($block->getFilters() as $filter): ?> ...
0
votes
1answer
49 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
26 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
0answers
90 views

Remove Child products attribute/vaules from the Layered navigation filter

As we know in default Magento 2 and layered navigation filters are coming based on the configurable product and assigned child product. Child products are not visible in the frontend but assigned ...
0
votes
0answers
26 views

How to add a custom attribute filter in Product listing, search result and also update layered navigation in Magento 2.4?

I have a custom attribute materials_used, I need to filter it's automatically (hardcode) in PLP & search with layered navigation. materials_used attribute is also hidden by customers. Hint: ...
0
votes
1answer
273 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
80 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
50 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....
0
votes
0answers
18 views

Fixed Layered Navigation

I am building a layered navigation module for my theme based off magento 2 blank. I noticed there is no mobile friendly version of the layered navigation included in this theme. I have hidden the ...

1
2 3 4 5
17