Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

magento 2 get collection

$om = MagentoFrameworkAppObjectManager::getInstance();
$productCollection = $om->create('MagentoCatalogModelResourceModelProductCollection');
$collection = $productCollection->addAttributeToSelect('*')->load();
 
PREVIOUS NEXT
Tagged: #magento #collection
ADD COMMENT
Topic
Name
1+1 =