Log in
Interface

FormattedPriceInfoInterface

Magento\Catalog\Api\Data\ProductRender\FormattedPriceInfoInterface

What it does

This interface defines the contract for handling formatted HTML price representations in Magento 2 product rendering.

Developers use it when building product displays to retrieve and set various price types (final, regular, special, minimal, max) as formatted strings with currency symbols and HTML markup.

It's particularly useful for frontend rendering where prices need to be displayed with proper formatting, currency considerations, and styling.

Public Methods

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