Questions tagged [filter]

Denotes questions about filtering in Magento (layered navigation, collection filtering)

Filter by
Sorted by
Tagged with
0
votes
0answers
13 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 ...
0
votes
0answers
13 views

Magento2 add filters for My Orders section in frontend

Magento2 How can I add custom filters on My Orders section Filters By LAST 30 DAYS & LAST 6 Months
0
votes
0answers
8 views

How to filter Dataprovider results using OR conditions

I am looking for a way to filter orders for a grid based on one of 2 conditions: Order has a status of "processing_consultation" OR Order has an order source ID of 9 So I currently have ...
0
votes
0answers
18 views

Admin Grid Filters Expanded on the base of Configuration

I am trying to create the configuration to expanded Magento 2 all grids filters, I overrider these 2 files its work, var config = { map: { '*': { 'Magento_Ui/js/grid/filters/...
0
votes
0answers
24 views

The code looks wrong but works correctly. Is it possible to optimize it and make it more logical?

I have a knockout component that shows or hides my items by tag. I do not work well with js and knockout is new to me, I would like to improve my filtering logic so that it works correctly and locally....
0
votes
0answers
19 views

How to filter array and change data on front end KO

I using knockout to create a list with my custom collection data. <div data-bind="scope: 'myData'"> <!-- ko template: getTemplate() --><!-- /ko --> <script type=&...
0
votes
0answers
24 views

Filter Grid with Comma Separated Values - Magento2

I'm working on a module where I need to filer store view which is stored as comma-separated values in a custom table. I tried solutions mentioned in Magento 2 -Admin Grid Select filter with comma ...
0
votes
1answer
15 views

Custom Sort options for Catalog Dropdown

I created: di.xml on app/code/Filter/Sorting/etc <?xml version="1.0"?> <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="...
0
votes
0answers
19 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
1answer
17 views

Only display products with stock when filter is selected

guys so recently I noticed that when I select a filter, for example, the size M some of the products even though they have the size M some of them are out of stock and I was wondering if it's possible ...
0
votes
0answers
8 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
13 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
30 views

Add default date from filter to UI Component grid in Magento 2

I have a custom grid created in the backend for a Magento 2.4.1 instance. Everything is working properly (filters, sorting, etc.), but I have one more request that seems to be more complicated. I have ...
0
votes
1answer
23 views

How to add Text Input Filter to custom module (hidden column)

I am trying to add a custom filter to a custom module in admin grid, however I do not want that column to be shown therefore I have tried both ways by adding a column and making visible field to false ...
0
votes
0answers
13 views

Magento 2: Need to add some additional product in filter result that is not part of the filter

I want to always show some of the product which is not part of selected filter. It means customer selects any filter then it will showing all filterable products but I also want some extra products ...
1
vote
1answer
77 views

Admin Grid is Showing Wrong filter count Magento 2.4.2

I had updated the magento version 2.3.5 to 2.4.2, in the admin when i tried to search the configurable product alone it shows the wrong product count.
0
votes
0answers
8 views

How to add filters in custom grid created using block?

I have created a custom grid using block i am trying to add filters to the grid from last two days but unfortunately i am unable to achieve that can someone please explains step by step how to add ...
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
12 views

Is it possible to make the magento filter load a phtml code inside?

Staff in magento 2, in 2-column layout, in the first column there is a value filter and in the second column the products. Is it possible to make the filter load inside the product column?. I need the ...
0
votes
0answers
26 views

Magento 2 multi-region filter

Does anyone know of a module with a multi-range filter, (with two positions to filter) that is free?, I found a filter but it only works with the value of the products. I needed it to work with other ...
-1
votes
1answer
43 views

I want filter for Most Viewed Products in Magento 2 in Category Page

I want to make a custom filter for Most Viewed Product on Category Page in Magento 2. I have used this code app/code/Hlcategory/Filter/Plugin/Catalog/Block/Toolbar.php public function ...
0
votes
0answers
15 views

Filter product everywhere on frontend view based on the attribute value

I want to filter products based on a specific value everywhere on the front end view. Suppose, I want to filter products everywhere on the front end view whose price is less than 100 dollar. So while ...
0
votes
1answer
45 views

Magento2: I want to apply SKU filter in product layered navigation

I want to add the additional filter on product list page on frontend and product list should be filter by some SKU as well. I am able to filter using SKU but filter is not working properly.
0
votes
0answers
22 views

How to filter product collection by price after tax in magento 2.3?

I am trying to apply filter product collection by price range: $productsCollection = $this->_productsCollectionFactory->create(); $collection = $productsCollection->addAttributeToSelect('*'); ...
0
votes
1answer
34 views

Magento 2 | Exclude duplicate Item ID from a collection before foreach

When I foreach my collection filtered by tier price, qty and customer group I get the error: "Item (Magento \ Catalog \ Model \ Product \ Interceptor) with the same ID already exists". This ...
0
votes
1answer
27 views

Magento 2 | Join table catalog_product_entity_tier_price to collection

I'm trying to filter my product collection by tier price. I currently have this code but it doesn't work and it returns error: protected $_productCollectionFactory; public function ...
0
votes
1answer
20 views

Url parameter in magento 2 collection filter

I need to filter Magento 2 custom grid model collection by URL parameter. I have used this below code. protected function _initSelect() { $objectManager = \Magento\Framework\App\...
0
votes
1answer
26 views

Frontend Grid Filters not Working in magento 2.4.2

I am getting this after a click on the Apply Filters Button in the frontend grid. Uncaught TypeError: $(...).notification is not a function at UiClass.apply (filters.js:203) at HTMLButtonElement. (...
0
votes
2answers
92 views

How to add filter to a already working custom sales order grid column module?

I have the following from another post, and now I'm looking for a way to make these 4 extra columns filterable. Thank you, \app\code\Vendor\SalesOrderGrid\Ui\Component\Listing\Column\Address.php &...
0
votes
1answer
31 views

Magento 2.4 Rest API need to show filters related search result

Following code fetch the products based on search keyword but the issue is filtering showing all instead of the search result page. I want filters should be shown only related to the search result ...
0
votes
0answers
13 views

magento 2 get folter attributes values in custom api

Hi i created custom API in magento 2 in that i need to implement advance search like store brand,model and year search like this i am able to get brand fileds ` public function getAddtocar($attribute)...
0
votes
0answers
15 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, ...
0
votes
2answers
51 views

how to hide the filter in product listing page without modify the code base?

How to hide the filer in product listing page without touching the code? Can I do it by CSS or javascript? Thank you
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 ...
0
votes
1answer
13 views

Show Categories Filter with Custom Attribute

I have to get the list of categories those have a specific attribute assigned, So to achieve this i have created a custom attribute boolean type like this: public function install(...
1
vote
1answer
32 views

How to add AND OR AND conditions in a product collection?

ORIGINAL POST Comment ajouter des conditions ET OU ET dans une collection de produits? comment pourrais filtrer une collection de produit par: (attribut A : condition A And attribut A : condition B) ...
0
votes
1answer
23 views

How to fusion an AND et OR filter/condition in Magento?

how to fusion this instructions: $collection->addFieldToFilter('updated_at', ['from' => $from]) ->addFieldToFilter('updated_at', ['to' => $to]) or $collection->...
0
votes
1answer
337 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
20 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 ...
1
vote
0answers
115 views

Magento 2.4 Custom Filter on product collection, wrong collection size

I created a custom filter to filter products on category pages and in search. Filter itself seems to be correct (two products are visible from origin twelve) but pagination is wrong (total size is ...
-3
votes
1answer
146 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.
0
votes
0answers
38 views

Request parameters to filter SQL query using session

I want to filter the Coupon Usage table based on the request parameter passed in querystring. http://localhost/magento2.4/admin/dev_grid/index/index/key/...
0
votes
1answer
9 views

Hide filter options with 0 products in Magento2

I am using Magento 2.3 and need to hide filters in the layered navigation that contain zero products. What files should I modify to complete this?
0
votes
0answers
36 views

How to Apply Custom Filter In Customer Admin Grid With customer attribute in magento 2

i wan to add custom filter with drop down value yes or no is select yes than apply filter and get that that custom attribute value are something if apply no than apply filter and get that value that ...
0
votes
1answer
250 views

Hide simple product on product list page Magento 2

I have simple products and configurable products on my M2 and i would like to hide child of configurable on product list page but still getting them on the filters part. If i set 'Not visible ...
0
votes
0answers
27 views

How can I customize the filter of the product grid on the admin side in order to filter by RANGE

hope you are all good and in great shape. TLDR: How can I filter my product grid on the admin side using a WEIGHT RANGE? I am a newbie in Magento and I have been doing some progress over the last ...
0
votes
0answers
18 views

Error on the Search Bar: Something went wrong with processing the default view and we have restored the filter to its original state

I've mistakenly pasted a large data set I've copied from the excel file on the search bar of the orders. Then, I got this error and it never went back to normal - "Something went wrong with ...
1
vote
0answers
80 views

Filter on custom attributes - elasticsearch - not working on simple products

I have a project where I have a lot of configurable products and I need to make some filters there. I've manage to make the filters and everything related but the issue is that when I apply filters I ...
0
votes
0answers
10 views

Add custom filter in frontent product catalog

I've been looking for a few days to add a filter to the display of products in a category. This filter is a date and should not be visible to users. I managed to do it in version 2.3 but with version ...

1
2 3 4 5
16