Questions tagged [filter]

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

Filter by
Sorted by
Tagged with
0
votes
1answer
9 views

How to make custom customer attribute filterable in the customer grid?

I've made a patch and this is the code for creating my customer custom attribute: public function apply() { $this->moduleDataSetup->getConnection()->startSetup(); /** @var ...
0
votes
0answers
8 views

Magento 2.3.7 filter without results in prod system

On Product-Listing the available Filters got listed for the configured Product Attributes, also the availabe amount of products for this attribute is shown within braces on the listing. When apply a ...
0
votes
0answers
17 views

Magento 2.4 - How to get custom customer attribute value in sales order grid?

I have made the customer attribute 'institution_name' which shows proper value in the customer grid. Now I want to show the same value in the sales order grid by adding a column and filtering the ...
0
votes
1answer
19 views

Magento2 product distance sort and filter

I need a custom extension for Magento2 - sort and filter product distance with map. Its extension for m1 i needed to m2 I try converter code m1 to m2 but - but lack of knowledge ( Please help anybody, ...
0
votes
1answer
30 views

Magento 2 Admin Orders Date show not actual result

I have Magento 2.4.2-p1 EE. When i filter orders by dates, example: Purchase Date: 12/12/2021 - 12/12/2021 I have result with 777 found orders. But on last page i can see orders with wrong dates for ...
0
votes
0answers
24 views

How to get category name and count product when selecting manufacturer select attribute in Magento 2?

I have created a new page where I want to get the number of selected products from the same manufacturer in all categories into a list. Does anyone have any idea, how to get this data? Thanks. https://...
0
votes
1answer
26 views

How we can add category Filter to assign product grid

I want to add a category filter to the assigned product grid in Magento 2. Please help me out. Thanks in advance.
0
votes
0answers
39 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->...
0
votes
0answers
12 views

Catalog Price Rule - filters not showing

I am trying to filter on my store, but the results are not appearing? As you can see below. I also try to navigate page by page, but one page seems not to be working. Any ideas how to solve this? ...
0
votes
0answers
19 views

how i can change number format in filter price

when i use the filter price in any category the filter show decimal value like this but my filter is ?price=100000-200000. How i can fix it? thanks advance. Regards
0
votes
1answer
31 views

Date range issue in sales order grid in Magento2

In the sales order admin grid when we select a date range in Filter option Magento backend Sales -> Orders, it is not sticking to that date, and showing other dates too in the filter... For example,...
0
votes
0answers
21 views

How to add filter for particular field in Product Ordered Report Grid in magento 2

I have added a new custom column in Reports->Products->Ordered Grid and populated the corresponding data by following this link How to debug Reports > Products > Products Ordered ...
0
votes
0answers
22 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-&...
0
votes
0answers
9 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 ...
0
votes
0answers
19 views

Registered coupon does not display in report filter

I'm having a hard time generating coupon report used in Magento 1.9 accessing Reports -> Sales -> Coupons, I select a date period, order status I keep "any", empty lines = "no&...
0
votes
1answer
22 views

Magento2 Add Custom Sort By Option ( Special Price Low - High)

I Want to Add New Sort By Option Like (Special Price From Low To High). Does any one know how i can do this ?
0
votes
1answer
27 views

Get Latest Entry For Duplicate Rows In Collection

I currently have a logs table which has the following rows which use the same order_id: log_id order_id user action 2410 1001318004 test1 Declined 2409 1001318004 test1 Declined Inside my app/code/...
0
votes
0answers
38 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
16 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
11 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
23 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
26 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
24 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
30 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
17 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
23 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
19 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
9 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
19 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
76 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
56 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
202 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
9 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
13 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
44 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
77 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
63 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
43 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
57 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
92 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
51 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
45 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
4answers
325 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
86 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
16 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
98 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

1
2 3 4 5
16