Skip to main content

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
1 answer
23 views

Apply custom product attribute filter directly in layered navigation

I have one text custom attribute for product. I want to apply directly in Category/Search page and also in Layered Navigation. I have tried by override Magento\Catalog\Model\Layer this file but by ...
Jigar Dhaduk's user avatar
0 votes
1 answer
31 views

Display Layered Navigation on CMS page

I am displaying the products on the CMS page using the pagebuilder with such conditions. Product are loads on the frontend and it works well. Now i want to add the layered navigation on the left side, ...
Sunny Rahevar's user avatar
0 votes
0 answers
32 views

How to add custom filter on category Page in Magento246

Magento246 how to add custom filter with options on category listing page. Like...https://prnt.sc/7ZtTc1kGqVJR
Keval Chauhan's user avatar
0 votes
0 answers
12 views

Magento 2 Layered Price Filter Conditional Query

I've been tasked with fixing the price filter on a Magento 2 site. It works fine with normal products, but a new "grouped_product_price" has been added to Grouped Products as part of a ...
Anthony Earles's user avatar
0 votes
1 answer
126 views

Add custom category filter in PLP page in Magento 2.4

I am trying to add the custom category filter in the PLP page in the site in Magento 2.4. Currently, the category filter is coming in the layered navigation, but the same thing we want in the top of ...
Mitul Vadalia's user avatar
0 votes
0 answers
14 views

Ignore Bundle Product Child attributes in Layered Navigation

We have a part compatibility attribute on our website. We use it to let customers filter to only see parts that would be compatible for them. The problem comes with Bundle products. We have the ...
Typhado's user avatar
  • 702
0 votes
0 answers
107 views

Show all the Products in product filters magento 2.4.6

I create an attribute name [show_category] with yes/no values if it's set to yes then the product show on the category page but if it's select no, then product not shown on category page. I create a ...
Ranvir Singh's user avatar
2 votes
1 answer
43 views

Do I need the Mageplaza Layered Navigation and Search extensions?

Magento 2.4.2-p1 Smartwave Porto theme 17 Amasty extensions ShopperApproved app/software I have these 2 extensions in my Magento and I have no idea where they came from? Either they were there in the ...
Allysin's user avatar
  • 260
0 votes
0 answers
20 views

magento 2 layer navigation by categoryId i'm getting below error

"message": "No record found with %fieldName = %fieldValue", "parameters": { "fieldName": "id", "fieldValue": "0" }, <?php ...
Faisal Khan's user avatar
0 votes
0 answers
23 views

Layered Navigation with custom filter

I want to filter Product List Page and I'm using a plugin to filter the collection using the layer class Magento\Catalog\Model\Layer::prepareProductCollection() The products are removed but the ...
Camilo Torres's user avatar
0 votes
1 answer
42 views

Magento 2 api for layer navigation filters available?

<?php namespace handymust\Filter\Model; use handymust\Filter\Api\FilterInterface; use Magento\Catalog\Model\Layer\Resolver; use Magento\Catalog\Model\Layer\Category\FilterableAttributeList; use ...
Faisal Khan's user avatar
2 votes
1 answer
189 views

Change Active filter position Magento 2

I want to update the Active filter position from left side to right side just above the product listing. Please guide me how can i do that. Current Position: On left side Required Position: I want to ...
Sunny Rahevar's user avatar
3 votes
0 answers
208 views

Update layer navigation filter with the proper custom collection

Goal : Create a /test/index/index route that will load a product listing page with a custom collection. Expectation : The custom collection printed in listing and the filters must be properly defined ...
Claims's user avatar
  • 1,211
0 votes
1 answer
30 views

How can I create Layered Navigation Filters on MobileApp using APIs?

I want to create the layered navigation filters for my mobileapp the same way it is working on web how can i do this kindly guide Thanks in advanced
Syed Hassan Zamir's user avatar
0 votes
0 answers
208 views

Magento 2.4.6 - How we can add quantity_and_stock_status in layered navigation Graphql?

I want to add an "out of stock exclude" filter in Layered Navigation using GraphQl. I have enabled "Display out of stock" in the admin configuration. And also change the ...
Arun's user avatar
  • 1
0 votes
1 answer
77 views

Theme vs Extension - What is the the correct way to remove a conflict? Magento 2 - Port Theme vs Mirasvit Layered Navigation

I am using Magento 2 with the Porto Theme and the Mirasvit Layered Navigation Extension. Currently I am getting an error because the Mirasvit Layered Extension is expecting a Mirasvit\...
UrbanwarfareStudios's user avatar
0 votes
1 answer
116 views

How Do I Get Layered Navigation Filter using REST API

I used class as picture but it return wrong data (attribute_code is correct but values wrong
Kyle's user avatar
  • 1
1 vote
0 answers
77 views

Magento 2 - Price filter for configurable products based on associated simples within range

I have a catalog with a "size" attribute, and the product price varies based on the size. On the Product List Page, I am displaying only configurable products along with the product price, ...
Asanka Atapattu's user avatar
0 votes
1 answer
439 views

Layered Navigation issue on catalog search result page in magento 2.4.5

can anyone please tell me why am I not getting layered navigation in search result page in magento2.4.5? I tried various modules. currently I don't have any module of Layered Navigation using magento2....
user112085's user avatar
0 votes
1 answer
55 views

Is it possible to add a cms_page to show all products with layered navgiation

I created a cms page with url key "allproducts", i add a layout.xml cms_page_view_id_allproducts.xml in my theme app\design\frontend\Vendor\Name\Magento_Cms\layout\ here is the content of ...
hkguile's user avatar
  • 2,221
0 votes
1 answer
176 views

How to hide layered navigation filter if all products in category have the same value?

Imagine having a category with 10 products, all having the same weight of 2 lbs. Weight filter will still show in layered navigation as: Weight 2 lbs (10) How to remove such attributes from layered ...
vladPavlov's user avatar
0 votes
1 answer
120 views

Magento 2 : Apply filter layered navigation in REST API

In frontend side, layer filter apply because of this below code. But, how can i use this below line into rest api as well? Is it possible to get $this->getRequest() object into rest api? Below code ...
Rohan Hapani's user avatar
  • 17.5k
1 vote
0 answers
69 views

Magento 2 - Categories in Layered Navigation

My layered navigation is not displaying categories in a filterable manner, screenshot below. Currently every category in my tree is set to anchor and when I go to a given category page, all the ...
A. Andersen's user avatar
0 votes
1 answer
253 views

I need filter products by discount percentage in layared navigation (category page)

I have applied several price cart rules, I would like to see those frontend rules that work as a filter for discounted products. Someone can help me?
GerranoMargeno's user avatar
0 votes
1 answer
22 views

Can't access terms and condition from amdin panel

I try to access terms and condition from admin panel but I get the following error Error: Cannot instantiate interface Magento\Catalog\Model\Layer\FilterableAttributeListInterface in /var/www/html/...
Anass Hl's user avatar
0 votes
0 answers
183 views

Magento 2.4.3 - Anyone that has experience with Porto theme?

Is there anyone that has some experience with the Porto theme and can give me a hint on how I can get a 3rd party layered navigation to work properly with Porto Theme? I can see they have added ...
Jan-petter Havna's user avatar
1 vote
1 answer
97 views

How to enable 'Use in Layered Navigation' for EAV attribute?

The options are disabled and I would like to activate them. The module I am using is Mirasvit
Alessandro Scalesse's user avatar
1 vote
0 answers
91 views

Magento 2.4: Change price filter text and range programmatically

I want to change the price filter text and range on the layered navigation from: To: Something like this: Under $30.00 $30.00 - $60.00 $60.00 - $90.00 $90.00 - $120.00 $120.00 and Above How can it ...
mechanic's user avatar
  • 440
2 votes
0 answers
50 views

How to unset layered navigation block if theres not filters inside layered navigation

How can I unset sidebar.main container if there's no layered navigation the layered search result page navigation if there's no filters catalogsearch_result_index.xml
Anass Hl's user avatar
8 votes
4 answers
3k views

Magento 2.4.5 layered navigation filter showing incorrect results

I've recently updated a non-production version of a website from 2.4.4 to 2.4.5. The site has a number of configurable products with options for colours etc. The simple products behind the ...
Stephen McAleer's user avatar
0 votes
1 answer
112 views

Magento 2 how to get product Ids in the Product listing page without pagination

I want to get the listed product's IDs in the product listing page without pagination. But the products will be listed with pagination. If it is filtered by layered navigation/search then I want that ...
Jancy Abraham's user avatar
1 vote
1 answer
260 views

How to remove particular filters from a specific category?

I want to remove the color and price filter only for the specific category in Magento 2.4.3-p1. I created a separate XML file (catalog_category_view_id_{category_id}.xml) and apply the below code. &...
Sanjay Gohil's user avatar
  • 2,200
0 votes
1 answer
96 views

Rename Shop by and clear all text in left side Magento2

I want to change the text SHOP BY and clear all from the left sidebar in the list page, Below is the screenshot
kiran's user avatar
  • 597
1 vote
0 answers
813 views

Product Filter Count Showing Wrong Count After Custom Product Collection - Magento Layered Navigation

I have applied custom filter on product collection to hide certain products from listing page. I have used below event for same <event name="catalog_product_collection_load_after"> ...
Dexter's user avatar
  • 3,513
0 votes
0 answers
155 views

Magento 2: Product's Layered Navigation Filter DIsplay Type API

I am working on Rest API. I want a product filter type (checkbox, multiple selections,yes/no) so that mobile filters can be shown based on that. For example on website filters showing like this : How ...
Krupali's user avatar
  • 1,150
0 votes
0 answers
113 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 ...
Robinio's user avatar
  • 771
0 votes
1 answer
450 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/...
Sandeep's user avatar
  • 13
0 votes
0 answers
86 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. ...
Mahesh1343's user avatar
0 votes
1 answer
2k 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 = $...
Jitendra Patel's user avatar
4 votes
1 answer
3k 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\...
Manjunath's user avatar
  • 177
1 vote
2 answers
4k 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\...
Nishita's user avatar
  • 33
0 votes
0 answers
598 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 ...
varun's user avatar
  • 1
0 votes
1 answer
632 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 ...
ishaq's user avatar
  • 195
0 votes
0 answers
114 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
sumeet bajaj's user avatar
  • 1,316
0 votes
2 answers
2k 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 ...
Aish's user avatar
  • 81
1 vote
0 answers
44 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 ...
jojo's user avatar
  • 39
1 vote
1 answer
124 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 . ...
Jay Parmar's user avatar
0 votes
0 answers
232 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 ...
Deep Shah's user avatar
  • 567
0 votes
2 answers
578 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?
Yousaf's user avatar
  • 384
0 votes
1 answer
1k 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\...
Yogita's user avatar
  • 784

1
2 3 4 5
17