How can I load Magento 2 product object by ID
$productId = 1; $objectManager = \Magento\Framework\App\ObjectManager::getInstance(); $product = $objectManager->create('Magento\Catalog\Model\Product') ->load($productId);
How can I load Magento 2 product object by ID
$productId = 1; $objectManager = \Magento\Framework\App\ObjectManager::getInstance(); $product = $objectManager->create('Magento\Catalog\Model\Product') ->load($productId);