Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [filter]

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

0
votes
0answers
16 views

Filter Products in list page based on attribute in magento2

I have a requirement like below. Right above the category page i have loaded custom template file with the drop down html. with options like below. ---select class --- test 1 test 2 test 3 ...
0
votes
0answers
22 views

Set a default filter for Order Grid

How can I set a default filter for Order Grid programmatically? I read many different answer but they don't work properly.
0
votes
1answer
25 views

custom attribute on product Filtered result is Always one in magento 2

I have added custom attribute on product, this is for learning purpose so I just added it with a name 'brand2'. I just updated 4 products brand2 value to Adidas: But unfortunately in the ...
1
vote
1answer
41 views

Magento 2 - Need to filter comma sperated values in addAttributeToFilter along with category filter

I need to filter comma sperated values in addAttributeToFilter in magento 2 Here is my Code: $comma_separated_values = 26,27,28,29; $categoryProducts = $category->getProductCollection()->...
1
vote
0answers
14 views

Filter a custom attribute in Order Grid

I added new attribute and new column to Order Grid : [vendor]\[module]\view\adminhtml\ui_component\sales_order_grid.xml <?xml version="1.0" encoding="UTF-8"?> <listing xmlns:xsi="http://www....
1
vote
1answer
14 views

Magento 2 Custom Filters

Dear Magento 2 developers, I am currently new in the Magento 2 development, now I struggle about how to make custom Product filter on the sidebar, like the picture below. My new brand column in ...
0
votes
0answers
5 views

Bundle multiple values of the same filter

I'd like to bundle the values of filters as much as possible. Right now, filters are displayed like this: As you can see, I've enabled 2 "Materiaal" filters. I'd like to place these vertically under ...
0
votes
0answers
21 views

Call to a member function isLoaded() on array

Call to a member function isLoaded() on array in /var/www/html/codility-magento-market-place/vendor/magento/module-backend/Block/Widget/Grid/Extended.php:473 Stack trace $bestsalecollection = $this-&...
0
votes
2answers
46 views

Magento 2 addAttributeToFilter not working

In product collection addAttributeToFilter is not working if we assing attribute value in only store view. But if we assing in default and store view than it working fine. anyone have idea why it is ...
3
votes
1answer
25 views

Custom FilterList incorrectly sets Collection size in Layered Navigation

In order to add a custom filter to the Layered Navigation, I overrode the class Magento\LayeredNavigation\Block\Navigation\Category to load my own FilterList class instead of the one from core. My ...
0
votes
1answer
26 views

add filter before load data in custom admin grid in magento 2

Here i have to add filter in charity and fee column,if charity is filled then display in grid otherwise that data should not show in grid. But all record's are displayed. I have 2 order in one order ...
3
votes
1answer
149 views

Add default filter to sales_order_grid for order status

I want to filter the order grid in admin to see only the orders in status "processing" in the grid by default. This grid is different from the others, I tried solutions from here but no success add ...
2
votes
0answers
12 views

How to have irregular price filter ranges?

If I configure manual price ranges, I can define the step, but that step is a constant for all ranges. Is there a way to have, for example, USD 1 to USD 199 USD 200 to USD 499 USD 500 to USD 5,000 ...
0
votes
0answers
12 views

How to move sorter block from toolbar to filters?

I want to move "sort by" block from toolbar to filters? How can i do that? I tried to: <move element="product_list_toolbar" destination="sidebar.main" after="catalog.navigation.renderer"/>
0
votes
0answers
18 views

Add input text to a select on filters

I created a new column, with a select filter, but I want to add an input text to this selection to make it easy to search. I found that there's multi-select on Magento 2, but is there any single-...
1
vote
0answers
28 views

Filter product with Ajax and return Json Array from a controller to show in a phtml file

Is it possible to return an array from a controller or from a block function to the phtml file? <?php namespace Mnuhell\FormSearchAttributes\Controller\Index; use Magento\Framework\App\Action\...
0
votes
1answer
23 views

How to filter attribute by its option value in magento2.2.5?

I want to filter attribute by its option value in Magento2.2.5. I have tried with this: $collection->addAttributeToFilter('collections', 258); But it doesn't seem to work. Any help would be ...
0
votes
0answers
19 views

Magento2 Layered Navigation With Filtered count

In magento2 i am using layered navigation to filter my products. I have a clothing store which needs to filter the attributes. For example I have Material Attribute & Origin Attributes. I have 3 ...
1
vote
1answer
39 views

How change layered navigation filters orientation from vertical to horizontal on product page in magento 2.3

How change layered navigation filter orientation from vertical to horizontal? Now I have vertical-orientated filters, but I want to change them to horizontal.
0
votes
0answers
16 views

How to filter the date with not this(current) month in magento 2

I have a block with date filters but I want to filter by **not this month (Current month)**records how I can do this???
0
votes
0answers
16 views

Magento 2 - Editing an existing filter

I created a new column on Magento 2 using EAV method, and I fetch the data of it on grid view of products on back-office. This new grid column has the IDs of users, so I edit the result using ...
0
votes
1answer
24 views

Magento 2 : Add category filter in producy grid

In admin, I want to add column of category and also add category filter in product grid. How to do this? Please help me. Thanks.
4
votes
1answer
41 views

Filter product collection with source

I'm running on Magento 2.3 with MSI(Multi Source Inventory) setup. I would like to filter product collection with specific source. Like, I've 4 sources for products, source-1,source-2,source-3 and ...
0
votes
0answers
18 views

Text swatch not showing all the options of a attribute

I am facing a strange issue in Magento 2.3 As I have a attribute called 'Compatible' of Text Swatch type, which have many options. When I open the category page those options are visible just below ...
1
vote
0answers
26 views

How can I get all filter combinations and their links for all categories in Magento 2?

I have a problem and I do not know how to solve it. The client wants to get links of all filter combinations for the category, and make a check on index and follow. And if there is a parameter index ...
0
votes
0answers
55 views

Some 3rd level categories are not showing in filter in magento2

I have Category relationship like below. Test>Sample>Men (200 products here) Test>Sample>Women (8 products here) Test>Sample>Others (10 products here) When navigated to Sample category. In left ...
0
votes
0answers
26 views

Condition on Category Filter in New Product Page?

I have save unique id with each category save when any category save then current admin id is also save with it. Now i want to apply condition in the New Product Page when any admin want to add any ...
0
votes
1answer
37 views

Magento 2 : AddAttributeToFilter with AND Condition

In product collection, I want to do like : $productCollection = $this->productCollectionFactory->create(); $productCollection->addCategoriesFilter(['in' => $catalog_id])->...
0
votes
0answers
18 views

For heavier category(having 2000 products) ,category page takes 4-5 min to load, while for a small category( few products) it's working properly

I've used following two joins on product listing page due to which heavier category page taking 4-5 minutes to load:- Class:- vendor/magento/module-catalog/Block/Product/ProductList/Toolbar.php ...
2
votes
1answer
21 views

How do you correctly specify a filter to get all orders that have been updated since date

I have tried to create a filter to get all updated orders since date... rest/V1/orders/searchCriteria[filter_groups][0][filters][0][field]=updated_at&searchCriteria[filter_groups][0][filters][0][...
0
votes
1answer
18 views

Show product catalog based on Customer

how can I show catalog products based on customer custom field ? I've done di.xml I've done this but is doesn't filter . This is what I have in ListProduct.php (used in di.xml) protected function ...
5
votes
1answer
45 views

Generic Class override and Problems for others Grid

Actually i had override the generic class to filter the orders for sales order grid. <preference for="Magento\Framework\View\Element\UiComponent\DataProvider\DataProvider" type="VendorName\...
1
vote
0answers
21 views

Magento 2: Backend Related, Upp-Sell and Cross-Sell Product Tab Filter Issue

When I filter Product By Name in related product tab product filter Working Completed, but without product add called save function directly and page redirect to the Catalogue page.Any idea,please ...
0
votes
2answers
46 views

Show product based on customer attributes

I've added a field for my customer (called "Group"). I want to show the product from the catalog based on this group (I have added a "group" field in my product). What do I need to override to do ...
1
vote
0answers
17 views

Filter attribute value inside layered navigation

Is there anyway to make a search tool to filter value inside an attribute like this
0
votes
0answers
36 views

Magento 2: Admin Order Date filter showing wrong result

I have been trying to filter admin order based on a date but getting the wrong result. I have try to filter Purchase Date from: 03-03-2019 and to: 03-03-2019 Expected result: Filter result ...
2
votes
1answer
35 views

Magento2 : How can I add filters to frontend so it should work like a backend filter?

i'm working on adding custom filter for this custom module i want to add filters (Q_ID,Q_STATUS,Q_PRICE) it would work like back end filter Magento admin how i add filter and any idea's??
1
vote
0answers
22 views

filterSearch, search in all columns

Faced the problem that filterSearch does not search for all columns in the table ,but search only works in one column in the table grid. I installed full text in database columns My code ...
1
vote
0answers
37 views

Magento 2.3 Layered Navigation Returns all Products, unfiltered

I have set up a store with demo products, installed the Porto, which uses MagePlaza layered navigation. However, when I use the layered navigation to filter the products down, it always returns all ...
1
vote
1answer
44 views

How to filter duplicate values in magento array?

I am trying to get attribute option values for specific products. $objectManager = \Magento\Framework\App\ObjectManager::getInstance(); $baseUrl = $objectManager->get('Magento\...
2
votes
0answers
29 views

Solved: Layered Navigation of Parent Categories

The layered navigation of the Child Categories it's working okay. The problem is with Parent Categories. I'm trying to have the same filters on Parent Categories but i still can't solve it. What I ...
2
votes
1answer
121 views

Ajax in amasty layered navigation dont work

Ajax in amasty layered navigation dont work with my claue theme. Without ajax - working fine. Then I click on checkbox or another element , page reloaded without filters. In store configurations ...
1
vote
1answer
31 views

magento 1 - How to addClass without JS to the dropdown filter in Admin custom grid

I want to add class to the magento admin custom grid filter dropdown. I have dropdown in one filter column and I dont want to use JS to reduce client side load. Is there anyway to add class while ...
1
vote
1answer
109 views

Magento 2 product attribute filter url rewrite?

I have override url-rewrite router in my custom module,and add my custom rewrite code in override router file. after filter url created like below : http://domainname.com/services.html?manufacturer=...
3
votes
0answers
33 views

Magento 2 : Filter is not showing in front end in my custom module

i'm creating filter for Frontend in custom module. I'm following this module grid https://belvg.com/blog/ui-grid-component-on-the-front-end-in-magento-2.html But it's not showing in Front end. ...
0
votes
0answers
24 views

Magento2: How to changed products filter

Now the products filter looks like this: Anyone have solution how to to in this way? (filter in button).
3
votes
1answer
64 views

How Order Grid Filter in magento2

How can i filter the sale order grid by any preference , observer or plugin . How override sales order grid. Can any one help me . I just want to apply condition just like addFeildToFilter and i pass ...
0
votes
1answer
40 views

How apply Filter on the basis of Custom Attribute in Order Grid Programatically

I have save custom_attribute(current_seller_id) in sales_order and sales_order_grid and same values in both table's columns.For save value in sales_order code is given below .I have use event ...
0
votes
0answers
36 views

Magento 1.9: How do we provide a filter for date range on the Magento front end?

We recently moved our site over to Magento 1.9. We provide recorded audios and videos through our store, both for sale and via a membership. Our customers frequently want to filter results by the ...
0
votes
1answer
285 views

How i can create custom filter grid in front end magento 2

i want to create custom filter in front end how can copy the back end grid and filter for front end with working like back end filter ??? how i can code this any ideas.....