How to load products by ID via object manager ?

How to load products by ID via object manager ?

$objectManager = \Magento\Framework\App\ObjectManager::getInstance();

$product = $objectManager->create('Magento\Catalog\Model\Product')->load($product_id);



Copyright © 2024 Tridhya Tech Limited, Inc. All rights reserved.