Questions tagged [filter]

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

Filter by
Sorted by
Tagged with
2
votes
2answers
1k 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
97 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
25 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
740 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 ...
1
vote
1answer
461 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
1answer
932 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.....
1
vote
1answer
453 views

Magento 2.2.3 - Full text filter not working for sales order grid

The full-text search filter is not working for sales order grid. Other filters are working correctly for sales order grid.
1
vote
1answer
941 views

How to get products filtering by category and attributes?

I have searched about how to filter and I have tested about 20 codes but always return "". The situation is the following: - For the current category, I have 8 attributes, 7 are multiselect checkbox ...
1
vote
0answers
92 views

Order grid filter on the basic of custom attribute

This lines of code return the order collection, but I don't known which hierarchy of file. Where I can put this lines of code? What I am should use a plugin, preference or else? and how tom ...
2
votes
1answer
495 views

Remove price filter for specific category

I can remove all filters in category with this line: <referenceContainer name="catalog.leftnav" remove="true" /> But, I need to remove only price filter for specific category. Can I do this ...
0
votes
1answer
440 views

How to Filter a Custom Column in Product Listing?

I have created a custom column in Product gird by a module, which shows Parent product's SKU there. It's working fine but when I try to filter it Magento gives "Something went wrong with processing ...
0
votes
0answers
108 views

Magento2: I want to add layered navigation filter on category page

I have already added a layered navigation filter extension. But I want to add a new attribute filter to my extension. I have a dimension attribute. I want to filter on dimension attribute like the ...
0
votes
0answers
348 views

Not able to filter few columns in magento admin grid

I am not able filter few columns like sku in my custom module.Other columns are working. <column name="sku"> <argument name="data" xsi:type="array"> <item ...
1
vote
0answers
40 views

Simple Products Custom Options price sorting - magento 1.9.2

magento 1.9.2 - how to get simple products custom options price for price slider sorting in sidebar and load product collection in the list page. by default magento not sorting custom options price
2
votes
1answer
312 views

Custom column in Product Grid not being filtered?

I have created a custom column in Product gird by a module, which shows Parent product's SKU there. It's working fine but when I try to filter it Magento gives "Something went wrong with processing ...
0
votes
0answers
15 views

M2: Issue with filter by brands

We have any issue with filter products by brand: https://b2bstyle.pl/shoes-woman/sandals.html During select brand return "No products found". Anyone know where is issue and how to solve it?
0
votes
0answers
15 views

Show attribute value which applies to all items in a category

Let's say I have a shop which is specialized in organic food but still offers non-organic food. All items have the attribute "organic" with the options "yes", "partially" and "no". There is a ...
0
votes
1answer
643 views

filter_url_params in magento 2 Ui component is not working properly anybody have solution

I want to show data according to id that is shown in my URL..... my URL is http://dev.magento.com/admin/customer/index/edit/id/1/key/06ae49324c0bb7e328bc5bd4bb75954fcc787d538a59cb97ce4e1809a1a17ff3/...
5
votes
2answers
2k views

Magento2.2.x How to remove a field filter from collection?

I am loading a collection: $model = $this->_objectManager->create('Test\Demo\Model\Book'); $collection = $model->getCollection(); $data = [regionCode => 111,regionCode=>222]; foreach ($...
2
votes
2answers
56 views

Load selected category products in list page magento2

I have loaded a custom template in the category view page. with content all categories in the drop down. I am looking for functionality once drop down changes the corresponding category products ...
0
votes
2answers
212 views

Category filter in list page magento2

I am trying to filter products by category as below in the screenshot. Once the category selected from the drop down the products belongs to that category should populate in the products section. I ...
1
vote
0answers
111 views

Magento2.2.x how to set admin Filter functionality on custom page on frontend grid?

I have created a custom page and I want to set admin filter functionality on a custom grid on the frontend. Admin Filter - look the first image. Frontend grid - want admin type filter above on grid ...
1
vote
1answer
399 views

How can I get the value of the selected filter in Magento 1.9 Grid and use it in another filter?

I need to get the filter value for a column and use it to further filter the results of another column, for example, country and states. How can I do this? _prepareCollection: $collection-&...
0
votes
1answer
651 views

Magento 2 How to remove price filter from category if module is enable?

I have one module is set up and it has configuration about enable/disable the module. I have multiple stores too. I want the functionality to disable or hide price filter from category page if the ...
0
votes
1answer
517 views

How to sort admin grid filter elements in Magento 2?

Using Magento 2.2.5 - I have an install with many stores - ~30. In the sales order grid, the filter for 'Purchase Point' lists all the stores, but in the order they were created. Is it possible to ...
0
votes
2answers
1k views

How to create Search “Textfield” filter in admin grid | Magento 2

I am trying to create Grid search feature based on strings entered in text fields as: This functionality is in some of the default admin grids and few have filter button like this: I wanted to ...
0
votes
1answer
783 views

Magento 2: How to remove input option from grid filter

I want to remove some of filters from my grid in Magento 2 backend admin grid. Currently I have grid like displayed on image. But if I want to remove customer name how to do so. please explain thanks
2
votes
1answer
1k views

How can I remove the category filter from category page that do not have further any categories?

I am using Porto Theme (Magento 2) for building an e-commerce website. I have some categories that has sub-categories, so when I go to that sub-categories page, then it is showing the category filter ...
1
vote
1answer
284 views

How to filter simple products by size?

I'm new to magento and I have some troubles. I've managed to filter products by style or color, which are configurable products, but I can't figure out how to filter by size, where products are simple ...
1
vote
0answers
165 views

Using layered navigation without is_anchor category attribute

Is it possible to use and display the layered navigation filtering when setting the anchor attribute to false? I don't want to set anchor to true, because I don't want products of child categories to ...
0
votes
1answer
862 views

Magento 2, opposite of finset needed to filter a product collection

I have a problem in a product collection that I need to filter. I have a multiselect list with countries. When a selection is made the products need to be hidden from these countries. $collection->...
1
vote
0answers
46 views

How to add custom field beside Export To button in Magento2?

How to add custom field as shown in image in sales order admin grid in Magento 2?
0
votes
1answer
148 views

How to remove some fields from the filter

I have all my attribute fields in the filter selection. I would like to have only a few fields in the filter selection. How can I remove all my unneeded fields ? Thanks, Noemi.
1
vote
1answer
1k views

Magento 2 -Admin Grid Select filter with comma separated values

I have created a custom admin grid in my module. It contains a customer group column and it has a select filter. The column values are comma separated groupIds. When I filter the grid based on ...
0
votes
0answers
413 views

How to get filter options on category page using REST APIs Magento 2

I need to get all applicable filters on a category page. I am using below API to fetch all filters. http://localhost/magento/rest/default/V1/products/attributes?searchCriteria[filterGroups][0][...
0
votes
0answers
51 views

Filters in custom product collection M2

I have created a new category in backend and fetched products programmatically via override ListProduct block <preference for="Magento\Catalog\Block\Product\ListProduct" type="Custom\Vendor\Block\...
0
votes
1answer
47 views

What is the role of visibility filter in colections Magento 2?

I am getting Order Items, from order collection by Order ID but as from the attached screen shot (Order 15) I am getting one product data two times. Can any body explain the reason and what will be ...
1
vote
2answers
1k views

Filter admin grid based on the url parameter

In Magento 2.2.5, I have a custom agrid. It has edit option and url parameters. I need to create another grid in the edit page based on the url parameter. ie., I need to filter the custom grid based ...
2
votes
0answers
368 views

Magento 2 Filter admin grid collection by default

In Magento 2.2.5, I want to filter the custom grid using custom attribute. I followed this link. But it is not working. Is any alternate solution there.
1
vote
0answers
25 views

Filter with category and price magento 2

After installing a new template, the filter with category and prices don't work
1
vote
1answer
71 views

how to show all attributes even filters applied in magento 1.9?

how to show all attributes even filters applied i.e., if we click on like category options then some options get cleared so I want to display all filters whether if we choose another option also.
2
votes
2answers
2k views

how to change category filter position in magento 2 layered navigation?

I have to move category filter after my custom attribute filter but I am not able to how to move it please help me how to change position. I want to move category filter in the last position.
1
vote
1answer
84 views

Filter Magento2 customer grid before it's loaded

I'm using magento 2.2.5 and i have a custom database table which contain customer_id, i want all the customer in this custom table won't be shown at magento2 admin customer grid. my custom table ...
2
votes
0answers
34 views

Bulk Ordering a Product with Many Possible Configurations

I am building a website that sells different types of fasteners (nuts, bolts, screws, etc). The issue is that each product has many, many different variations. For instance, a hex head cap screw ...
2
votes
1answer
443 views

Group Collection to Filter Unique Products Based on a Specific Attribute

Scenario: A store catalog is populated with configurable products each having several children with different sizes and colors. As the goal is to show the different color variations, only the ...
1
vote
1answer
385 views

Magento2 | MassAction Filter instance none given

I'm getting strange error when I want to use mass action in a grid : AH01071: Got error 'PHP message: PHP Fatal error: Uncaught TypeError: Argument 2 passed to Toto\\Helloworld\\Controller\\...
0
votes
2answers
37 views

Need to filter products

For a own test.phtml I need a filter by Product Attribute and Category. if the product is in category X and have custom-attribute x echo sku what is the right code? I found solutions for each (...
1
vote
0answers
134 views

Magento 2: Layered navigation sidebar filter search query customization

I want to customize the query like ?product_type=64 I want to add more attribute in query . I just actually want filter works only on configurable pre-select value not all products which have that ...
0
votes
1answer
1k views

How to add attribute filter in product listing page in magento 1.9?

How to add attribute filter.For eg, When city attribute not set in any product then this product are showing after filter of city. Here is my Product Collection List.php block file public function ...
3
votes
2answers
2k views

Error Filtering grid from joined table collection

I successfully create a custom customer grid which use select join, the problem is i concat customer first name and customer last name as a new column alias, and when i filter the column it shows ...

1
3 4
5
6 7
15