Home » Magento12 December 2011

Magento: How to get actual price and special price of a product?

Here is a quick and useful code on getting actual price and special price of any product in Magento. The actual price is the real price assigned to the product and special price is the price after any discount is applied to the product.

Loading Product

Get Actual Price

Get Special Price

Hope it helps. Thanks.

Magento

Get New Post by Email

Find me on

FacebookTwitterGoogle+LinkedInRSS Feed
  • Maurice Naragon

    My site used to display “Regular Price:” – with overstrike, and then “Special Price:” on each product page and listing page. Now, it just shows the price, and I can’t figure out what setting I changed to make this come back. I want to show the regular price and then the discounted price for every item on each screen. Any ideas how I turn this back on?

  • spiralclick

    Quite late but you can achieve it by using if( $_product->getFinalPrice()!=$_product->getPrice()){ show the both prices } else show only the get price…

    thanks

  • Pieter Van Hulle

    For special price : just use $_product->getSpecialPrice()