All Questions
Tagged with custom-collection or collection
1,665 questions
0 votes
2 answers
130 views
After Upgrade Magento version from 2.3.5 to 2.4.7, an error in the Admin Grid(Custom module) started to appear
After a magento update was made from version 2.3.5 to 2.4.7, an error in my custom module started appearing in the administrator. In the main view inside the administrator shows me the following error:...
0 votes
1 answer
65 views
Magento 2 - How to filter on multiselect product attribute with AND condition
I have two custom product attributes. both attribute type is Multiselect. I want a product collection using a filter of both attributes. I have tried with below solution but it not working. $...
0 votes
1 answer
79 views
Magento 2 override product list page collection
I am trying to override the product collection of the product list page (category page). (Just for testing locally) I am editing the vendor/magento/module-catalog/Block/Product/ListProduct.php file ...
0 votes
1 answer
55 views
How to filter customer collection by custom field added by db_schema xml file to customer_entity table in Magento 2?
I added 'custom_field' to 'customer_entity' table by using 'db_schema.xml' file and need to save 'some value' in it then I wanted to filter the collection by 'custom_field' value. How can I achieve ...
3 votes
0 answers
342 views
Update layer navigation filter with the proper custom collection
Goal : Create a /test/index/index route that will load a product listing page with a custom collection. Expectation : The custom collection printed in listing and the filters must be properly defined ...
0 votes
1 answer
1k views
How to load a custom product collection in frontend using smile elasticsuite
Everything is in the question i need to load a custom product collection in frontend using smile elasticsuite. But i can't figure out how to do it. Do you guys have a working example ? "smile/...
0 votes
3 answers
834 views
How can I remove a condition from a collection
I tried to use two methods to reset or clear the collection but it didn't work. I am working with the category collection on which I want to remove this part of the condition : (e.created_in <= '...
0 votes
2 answers
3k views
magento 2.4 product collection filter by custom attribute value instead of id
Via backend, I added a dropdown custom attribute on my products. Now I need to filter the product collection based on the value of this dropdown. If I add the option id in the filter, everything ...