New answers tagged

0

Instead of a custom column class and a text filter you can use the following XML configuration with your boolean attribute: <column name="is_notified" component="Magento_Ui/js/grid/columns/select"> <settings> <filter>select</filter> <dataType>select</dataType> <options ...


1

The filter will not be working with the data source class. For filter, we need to join sales_order_address table to sales_order table. Follow these steps to make it work with the filter 1. Remove datasource class Vendor\SalesOrderGrid\Ui\Component\Listing\Column\Address from columns app/code/Vendor/Module/view/adminhtml/ui_component/sales_order_grid.xml &...


-1

Try below code :- XML file code change below code your column name <columns name="sales_order_columns"> <column name="short_name" class="Vendor\ModuleName\Ui\Component\Listing\Column\Mycolumn"> <argument name="data" xsi:type="array"> <item name="...


1

Add filter in ui component dataSource tag uicomponent.xml <dataSource name="vtn_unexportedorder_listing_data_source"> <argument name="dataProvider" xsi:type="configurableObject"> <argument name="class" xsi:type="string">Magento\Framework\View\Element\UiComponent\...


0

What Robert Egginton wrote works perfectly, but requires a change for Magento 2. In file vendor/magento/module-catalog/Model/ResourceModel/Product/Indexer/Eav/AbstractEav.php add the following in function _prepareRelationIndexSelect on line 200: $select->join( array('s' => $this->getTable('cataloginventory_stock_item')), 's.product_id=i....


0

In Magento 2.4.1, I have implemented the below code for fetching products based on search terms and filters based on search results. <?php namespace YourModule\Appapi\Model\Search; use YourModule\Appapi\Api\Search\SearchResultInterface; use Magento\CatalogInventory\Api\StockRegistryInterface; use Magento\CatalogInventory\Api\Data\StockItemInterface; use ...


0

Add a <listingToolbar ...> key to your XML file if you don't have it. Then, add the following into it: <listingToolbar name="listing_top"> ... <filters name="listing_filters"> <filterSelect name="store_id" provider="${ $.parentName }"> <settings> ...


0

please follow this link if you want product collection using graphql https://github.com/viveksh2021/GraphQL


Top 50 recent answers are included