Skip to main content

New answers tagged

0 votes
Accepted

Magento 2.4.6 building custom admin grid filter issue

It looks like this is a MAGENTO bug :) This is how you can create a patch: Here is a patch: diff --git a/vendor/magento/module-sales/Plugin/Model/ResourceModel/Order/OrderGridCollectionFilter.php b/...
Attila Naghi's user avatar
  • 4,023
0 votes

How to filter duplicate values in magento array?

array_unique function only works with one-dimensional arrays. Since you have a multidimensional array, you'll need to iterate over the array and create a new array with the unique values. $...
Jigar Karangiya's user avatar
0 votes

How to use getFirstItem() in collection into magento 2

Please try the below example will help you to fetch the required data using collection <?php /** * Copyright © Example All rights reserved. * See COPYING.txt for license details. */ declare(...

Top 50 recent answers are included