Log in
Interface

PriceInfoInterface

Magento\Catalog\Api\Data\ProductRender\PriceInfoInterface

What it does

This interface defines the contract for product price information in Magento 2's product rendering system.

It provides methods to get and set various price types including regular price, final price, special price, minimal/maximal prices, and formatted price data.

Developers use this when building custom product displays, price calculations, or integrating with APIs that need comprehensive product pricing information.

Public Methods

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