Question : magento 2 get collection
Answered by : agathoklis-tsiokos
$om = \Magento\Framework\App\ObjectManager::getInstance();
$productCollection = $om->create('Magento\Catalog\Model\ResourceModel\Product\Collection');
$collection = $productCollection->addAttributeToSelect('*')->load();
Source : | Last Update : Tue, 01 Sep 20