How to get product price in Magento 2 by the object manager

Please use the below code for getting the priceHow to get product price in Magento 2 by the object manager

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

$product_id = 15;

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

$price = $product->getPriceInfo()->getPrice('final_price')->getAmount()->getBaseAmount();

echo $price;


How to get product price in Magento 2 by the object managerexpoundsofttechsolution

ghb