Log in
Model

FormattedPriceInfo

Magento\Catalog\Model\ProductRender\FormattedPriceInfo

What it does

This class provides a data model for storing and retrieving formatted price information for product rendering in Magento 2.

Developers use it when displaying product prices on the frontend, as it handles various price types including final price, regular price, special price, and min/max prices.

It's particularly useful in catalog listings, product pages, and price rendering scenarios where multiple price formats need to be managed consistently.

Public Methods

  • getFinalPrice()
  • setFinalPrice()
  • getMaxPrice()
  • setMaxPrice()
  • getMinimalPrice()
  • getMaxRegularPrice()
  • setMaxRegularPrice()
  • getMinimalRegularPrice()
  • setMinimalRegularPrice()
  • setSpecialPrice()
  • getSpecialPrice()
  • setMinimalPrice()
  • getRegularPrice()
  • setRegularPrice()
  • getExtensionAttributes()
  • setExtensionAttributes()