Questions tagged [filter]

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

Filter by
Sorted by
Tagged with
0
votes
0answers
16 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 ...
0
votes
1answer
25 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
14 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
28 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
14 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
24 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
18 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
19 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
0answers
17 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
59 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
19 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
14 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
50 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
18 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
12 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
0answers
170 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
17 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
67 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
55 views

Magento2: Can we add range slider on product attribute

In current magento2 provide range slider on product attribute "price". I have requirement range slider on Case Diameter.
0
votes
0answers
34 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
7 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
25 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
92 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
20 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
16 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
52 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
9 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 ...
0
votes
0answers
18 views

Magento 2 - Size filters are not displayed when the configurable product is set to Not individually visible

I have this structure for my products, I have a grouped product that has two configurable products which are configured as Not visible Individually but in the filter section does not show any size, if ...
0
votes
0answers
18 views

Magento 2.3: Filter Purchase Date of Orders by month and year

Default Magento allow we filter purchase date from DD/MM/YYYY to DD/MM/YYYY Now, I want to filter from MM/YYYY to MM/YYYY Please help me.
0
votes
1answer
51 views

How to add working filters for max_sale_qty and manage_stock in Product grid in Magento 2.3?

I am trying to add working filters for max_sale_qty and manage_stock in product grid in Magento 2.3. I got the columns Max Sale Qty and Manage Stock in product grid to display the records using ...
1
vote
0answers
13 views

Using SearchCriteria and FIlterBuilders is it possible to have a nested AND condition inside ORs?

So I know how to create AND condition using the addFilter and how to add OR conditions using FilterBuilder however if I wanted to do do a search like (only using searchCriteria, no direct collection ...
0
votes
1answer
12 views

Show only filters in layered navigation for search results where all products have that filter populated

I am trying to implement this feature: the filters that are shown in the search results page are only visible if every products in that results page have the attribute linked with the filter populated....
0
votes
0answers
33 views

is there any way to create custom search criteria field (SearchCriteria[filter_groups][0][filters][0][field] )?

Is there any way to add a custom field in search criteria in Magento 2 REST API. Custom Field means I want to filter products by using Final Price in V1/products endpoint Thanks.
0
votes
0answers
14 views

how to make category's in magento 2 checkbox selectable and not clickable in search area

hey guys hope I well get an answer. I didn't find any extension for that and I well be happy to any help here. so I have this filter of products that I can select each sub category and it well filter. ...
0
votes
0answers
28 views

Warning: Illegal string offset 'attribute'

I want to get products collection and I need to join it to several tables so I made this function public function getProducts() { $products = $this->_productCollectionFactory->create(...
0
votes
0answers
14 views

How filtered attribute hides in layered navigation?

If I select the color as a filter in layered navigation, then it hides that color attribute and displays the remaining attributes regarding that color. I want to make this function for layered ...
0
votes
2answers
27 views

product alphabet filter option in magento 2

Product alphabet filter option in magento 2 ref video : https://www.loom.com/share/0b1de140088d41279ae2ec1d4222f3b2
0
votes
0answers
32 views

Get attribute admin values layered navigation filter - Magento 2.3

I need to change this code to get attribute Admin value not store view value, any advice about this, please. or how to set a store view in this code to be able to list the admin value and skipping the ...
0
votes
1answer
250 views

Filter With Multiple Values

In Magento 2.4.1 I have a custom multiple select attribute 'theme' The theme attribute contains options 'football' and 'sport' Some products have both attribute options applied. I can apply both ...
0
votes
0answers
20 views

Magento 2 How to add “Store view” Filter to add new product grid inside bundle product

Here am having a bundle product. While adding a New product to bundle I need to add Store View filter to add product grid. here is the image for default add new product to Bundle Required Format on ...
0
votes
0answers
29 views

How to apply null value filter for magento admin grid

I have added an additional column to sales grid in admin by adding the following to sales_order_grid.xml <column name="email_sent" > <argument name="data" xsi:...
0
votes
0answers
52 views

Magento 2: Layered navigation $filter->getItemsCount() very slow

We are using layered navigation and are loading a filter block in sidebar. But $filter->getItemsCount() takes a long time to load. <?php foreach ($block->getFilters() as $filter): ?> ...
0
votes
0answers
17 views

dateRange filter can not properly parse format

I have a datetime column for custom made listing, where date filter calendar can not process given date format. <column name="ticket_time" sortOrder="150" class="Magento\Ui\...
0
votes
0answers
7 views

Sales Order Grid Set Predefined filter of 30 days

I need to set predefined filter on Purchase Date on 30 days from current date and load the orders for that filter only. Any time should be able to load all orders if we remove the filter I tried ...
0
votes
0answers
46 views

Filter on order comment history in order grid magento 1

I have added an column to the magento 1 order grid. it renders the order history of the order. I have made a renderer with the following code: class Mage_Adminhtml_Block_Sales_Order_Renderer_Red ...
3
votes
1answer
65 views

How to reset the products grid filter don't loading in the admin panel?

My backend keeps freezing and can't do anything with it. I think it is due to the filter that was put last week on the products page to show 1000 products in the grid. I tried to open it in an ...

1
2 3 4 5
15