How can i get the special price of the product if it is active ?

1 Answer 1

You will need to load product by product id and then get special price

With Object Manager

$objectManager = \Magento\Framework\App\ObjectManager::getInstance();
$productData = $objectManager->create('Magento\Catalog\Model\Product')->load($productId);

echo "<pre/>";

I will suggest you use Factory method to get product detail as per Magento Standard.
  • i am getting the special .But if it is not active also i am getting the special.i mean if the To date is over also iam getting the special price.
    – christy
    Oct 25, 2017 at 11:01

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.