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
0 answers
13 views

Adding Multi-Select Color Extensions in Layered Navigation of Magento 2

I need to add multi-select color extensions in my website , Can u suggest some extensions for this module in Magento 2 from this list weltpixel - https://www.weltpixel.com/improved-magento-2-layered-...
user avatar
  • 1
0 votes
0 answers
8 views

Layered navigation click attribute filter ,Don't removed in the layernavigation magento 2.4.3

In default Magento, if we select any attribute from layered navigation to filter, the filtered products are shown but the selected attribute is removed. We need to display the selected attribute as ...
user avatar
0 votes
0 answers
22 views

How to get child products from Layer Class Magento 2

14219 is the ID of the parent product. 14217, 14218 are the child product ids, I need to get from the Layer which products visibility is VISIBILITY_NOT_VISIBLE , can anyone help? Thanks class Layer ...
user avatar
  • 738
0 votes
0 answers
21 views

Stock sources as filters layered navigation

I'm quite new to Magento2 so correct me if there is anything unclear or impossible to do. We have different stock sources (stock for Europe and for the UKs). I would like our customers to be able to ...
user avatar
0 votes
0 answers
16 views

How to show simple products after layered navigation filter Magento 2?

I have set visibility catalog, search but still not showing simple, only showing parent configurable product in catalog search. After that i did 1)cache:clean 2)indexer:reindex does anyone know what ...
user avatar
  • 738
0 votes
0 answers
16 views

magento 2.4 product count not correct in layer navigation

Team, I am facing an issue with layer navigation category product count in 2.4 for every subcategory displaying disabled products also but in 2.3 it works fine after the upgrade facing the issue. For ...
user avatar
0 votes
0 answers
11 views

Any idea, from where the layered Navigation Count on left side for Attrributes On Magento 2

Do anyone knows, from where the count collection of Attribute Comes from in the code. level. Here the File that display outcome of Collection Count. vendor\magento\module-layered-navigation\view\...
user avatar
0 votes
0 answers
23 views

Trouble with Mageplaza LayeredNavigation and Search

Trouble with Mageplaza LayeredNavigation and Search When I run a search, I get this error 1 exception(s): Exception #0 (Magento\Framework\Exception\LocalizedException): Sorry, something went wrong. ...
user avatar
0 votes
0 answers
34 views

Add custom non-attribute filter when elastic search is enabled

I want to add custom non-attribute filter(data is coming from custom table which has product id as foreign key) when elastic search. I have already done for MySql engine but in case of Elastic search,...
user avatar
  • 677
0 votes
1 answer
53 views

One category showing wrong sidebar layered navigation

I am using Porto theme, I upgraded Magento 2.2.4 to Magento 2.4.2, every thing working fine but there are 1 problem, all category page using app/design/frontend/Smartwave/porto/...
user avatar
0 votes
0 answers
68 views

Catalog Graph Ql to use new layer from layerpool

I have created 2 custom modules to use a custom layer. This custom layer will filter the list of products by customModel Id (which converts to entity_id IN [...]) instead of the default category ...
user avatar
0 votes
0 answers
29 views

Magento2 remove specific filter on specific category value under Layered navigation

I'm trying to hide/disable a particular attribute filter in layered navigation for a specific category. I do not want to show all filter in left side bar. If I disable in Anchor is "No" ...
user avatar
0 votes
0 answers
10 views

How to add custom filter in layered navigation magento 2

I have to add some custom filters in layered navigation in Magento 2. These filters will be non-attribute filters and data will get filtered from a custom table. Any help would be appreciated.
user avatar
  • 677
0 votes
0 answers
26 views

How we add a custom function to \Magento\LayeredNavigation\Block\Navigation

I overrode the \Magento\LayeredNavigation\Block\Navigation block and added a custom function, but while rendering the function in view.phtml, it shows a function not found error. Any once can help me. ...
user avatar
0 votes
1 answer
134 views

How to get product collection total with pagination in magento 2

I have implemented pagination with limit & offset but when I am fetching the collection total after applying multiple filters then it's giving the wrong total count. $layer = $...
user avatar
4 votes
1 answer
217 views

Custom condition for Elastic search collection in Magento 2

I am trying to add the custom condition for the product collection using the below plugin for elastic search. app/code/Vendor/Module/etc/frontend/di.xml <type name="Magento\Elasticsearch7\...
user avatar
  • 135
0 votes
0 answers
83 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->...
user avatar
  • 165
0 votes
2 answers
391 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\...
user avatar
  • 13
0 votes
0 answers
24 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-&...
user avatar
  • 548
0 votes
0 answers
10 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 ...
user avatar
  • 738
0 votes
0 answers
173 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 ...
user avatar
  • 1
0 votes
0 answers
14 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 ...
user avatar
  • 21
0 votes
0 answers
63 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 ...
user avatar
0 votes
1 answer
120 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 ...
user avatar
  • 121
0 votes
0 answers
33 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.
user avatar
  • 399
0 votes
0 answers
32 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 ...
user avatar
0 votes
0 answers
27 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 ...
user avatar
  • 828
0 votes
0 answers
35 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
user avatar
  • 1,123
0 votes
0 answers
109 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, ...
user avatar
  • 738
0 votes
0 answers
10 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 ...
user avatar
  • 285
0 votes
0 answers
20 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(...
user avatar
  • 285
0 votes
0 answers
73 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 ...
user avatar
0 votes
0 answers
14 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
user avatar
0 votes
0 answers
18 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 ...
user avatar
0 votes
0 answers
54 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 ...
user avatar
0 votes
0 answers
343 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 ...
user avatar
  • 1,198
0 votes
2 answers
772 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 ...
user avatar
  • 71
1 vote
0 answers
35 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 ...
user avatar
  • 167
1 vote
1 answer
77 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 . ...
user avatar
0 votes
0 answers
43 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 ...
user avatar
  • 473
0 votes
2 answers
152 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?
user avatar
  • 384
0 votes
1 answer
329 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\...
user avatar
  • 749
1 vote
2 answers
67 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(); $...
user avatar
1 vote
1 answer
265 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 ...
user avatar
0 votes
1 answer
621 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 ...
user avatar
  • 285
0 votes
1 answer
27 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?
user avatar
-3 votes
1 answer
406 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.
user avatar
  • 1
1 vote
1 answer
356 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/...
user avatar
4 votes
3 answers
660 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 -...
user avatar
0 votes
1 answer
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. ...
user avatar
  • 101

1
2 3 4 5
17