Skip to content

magento man

Magento2 join product details in sales order grid as sortable / filterable column

We have added some additional sortable / filterable columns to sales order grid using some basic joins. This would be the relevant code regarding data app/code/Vendor/Module/etc/di.xml <?xml version=”1.0″?> <config xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance” xsi:noNamespaceSchemaLocation=”urn:magento:framework:ObjectManager/etc/config.xsd”> <type name=”MagentoFrameworkViewElementUiComponentDataProviderCollectionFactory”> <arguments> <argument name=”collections” xsi:type=”array”> <item name=”sales_order_grid_data_source” xsi:type=”string”>VendorModuleModelResourceModelOrderGridCollection</item>… Read More »Magento2 join product details in sales order grid as sortable / filterable column

how to validate custom condition rule based on product attribute?

I am using plugin for the same pusrpose. <type name=”MagentoShippingModelShipping”> <plugin name=”hide_shipping_method_based_on_product_attribute” type=”VendorShippingRestrictionsPluginMagentoShippingModelProductAttributeBasedShipping” disabled=”false” /> </type> And public function aroundCollectCarrierRates( MagentoShippingModelShipping $subject, Closure $proceed, $carrierCode, $request ) { $allItems = $request->getAllItems(); $storeId = $this->storeManager->getStore()->getId(); $ruleCollection = $this->collectionFactory->create() ->addFieldToSelect(‘*’) ->addFieldToFilter(‘status’, [‘eq’… Read More »how to validate custom condition rule based on product attribute?

How to cache GraphQL requests?

My Magento 2.4 isn’t caching requests I use many times, like storeConfig via PWA Studio. My request header: x-cache-hits: 0 How could I cache this kind of request to optimize the speed of my page loads?