Questions tagged [layered-navigation]
Layered navigation makes it easy to find a product based on category, price range, or any other available attribute.
814
questions
0
votes
0
answers
18
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
...
0
votes
0
answers
16
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 ...
0
votes
1
answer
30
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 ...
2
votes
1
answer
108
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 ...
2
votes
0
answers
107
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 ...
0
votes
1
answer
16
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
0
votes
0
answers
102
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 ...
0
votes
1
answer
59
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\...
0
votes
1
answer
64
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
1
vote
0
answers
72
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, ...
0
votes
1
answer
197
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....
0
votes
1
answer
37
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 ...
0
votes
1
answer
103
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 ...
0
votes
0
answers
121
views
Magento2 Layered Navigation Not Working On Sidebar
I Am facing a problem with Layered navigation on a category. I have installed Mageplaza Layered Navigation Extension.
in the left-side category sidebar, I have 6 sub Category listed . when I click on ...
0
votes
0
answers
13
views
Magento 2.3.4: Speed up layered navigation filters
Is there a way to speed up layered navigation filters on Magento 2.3.4?
Filters with a lot of products are taking too long to load.
Any help would be appreciated.
0
votes
0
answers
80
views
Magento 2 Layered Navigation Active on desktop but closed on mobile
Currently all the items in the layered navigation are active in desktop and that's how I want it to display but for mobile I would want them to be all closed and open on click.
How can I achieve this?
0
votes
1
answer
109
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 ...
1
vote
0
answers
59
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 ...
0
votes
1
answer
163
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?
0
votes
0
answers
58
views
Magento 2.4.3 - Layered Navigation - Categories
How can I go about setting up my layered navigation and category tree so the displayed products can be filtered by which child category they are in?
I currently have every category in my tree is set ...
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/...
0
votes
0
answers
35
views
Magnto 2.4.5 Configurable product options are showed separately on Layered Navigation Category Filter
after upgrading to Magento 2.4.5v in the Layered Navigation Listing, configurable products are shown separately.
All configurable options are shown as simple products separately even are selected as &...
0
votes
0
answers
159
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 ...
0
votes
1
answer
82
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
1
vote
0
answers
67
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 ...
1
vote
0
answers
41
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
8
votes
4
answers
2k
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 ...
0
votes
1
answer
101
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 ...
1
vote
1
answer
209
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.
&...
0
votes
1
answer
75
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
0
votes
0
answers
737
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">
...
0
votes
0
answers
142
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 ...
0
votes
0
answers
109
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 ...
0
votes
1
answer
580
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,...
0
votes
1
answer
406
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/...
0
votes
0
answers
75
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.
...
0
votes
1
answer
1k
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 = $...
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\...
1
vote
2
answers
3k
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
0
answers
558
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
1
answer
482
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
0
answers
112
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
2
answers
1k
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
0
answers
41
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 ...
1
vote
1
answer
118
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
0
answers
218
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
2
answers
471
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
1
answer
894
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\...
1
vote
2
answers
135
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();
$...
1
vote
0
answers
1k
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 ...