Skip to main content
1 of 2
nihal malik
  • 556
  • 4
  • 13

how to get special price and regular price in phtml file magento2

i have a phtml file where i want to get special and regular price of product im using product model but getting nothing, im using this code:

$product_id =$block->getProduct()->getId();
$_product = $objectManager->get('Magento\Catalog\Model\Product')->load($product_id);
 
$orgprice = $_product->getPrice();
$specialprice = $_product->getSpecialPrice();
nihal malik
  • 556
  • 4
  • 13