Skip to content

magento man

Magneto2.4.7 -p3 Click Admin Stores Configuration shows console errors

legacy-build.min.js:12 Uncaught TypeError: $(…).removeClassName is not a function legacy-build.min.js:12 Uncaught TypeError: $(…).removeClassName is not a function legacy-build.min.js:12 Uncaught TypeError: $(…).removeClassName is not a function legacy-build.min.js:12 Uncaught TypeError: $(…).removeClassName is not a function Uncaught TypeError: $(…).removeClassName is not a function Uncaught… Read More »Magneto2.4.7 -p3 Click Admin Stores Configuration shows console errors

Magento 2: Get Product Collection With Multiple SKUs Filter

I’m trying to get product collection with multiple skus filter, don’t know what I’m missing or doing wrong: $objectManager = MagentoFrameworkAppObjectManager::getInstance(); $productCollectionFactory = $objectManager->create(‘MagentoCatalogModelResourceModelProductCollectionFactory’); $collection = $productCollectionFactory->create(); $collection->addAttributeToSelect([‘name’,’sku’]); $collection->addAttributeToFilter(‘sku’, [‘in’ => [‘IS-OB-2165′,’TM-VIVO-Y15’]]); $collection->setPageSize(3); foreach ($collection as $product) { print_r($product->getName()); }