FormattedPriceInfoInterface
Magento\Catalog\Api\Data\ProductRender\FormattedPriceInfoInterface
What it does
This interface defines a contract for handling formatted price information for product rendering in Magento 2.
It provides methods to get and set various price types (final price, regular price, special price, minimal/maximal prices) as formatted HTML strings that include currency symbols, proper formatting, and CSS classes.
Developers use this when building frontend product displays or custom price rendering logic that needs to present prices in a user-friendly, localized format.
Public Methods
- getFinalPrice()
- setFinalPrice()
- getMaxPrice()
- setMaxPrice()
- getMinimalPrice()
- setMaxRegularPrice()
- getMaxRegularPrice()
- setMinimalRegularPrice()
- getMinimalRegularPrice()
- setSpecialPrice()
- getSpecialPrice()
- setMinimalPrice()
- getRegularPrice()
- setRegularPrice()
- getExtensionAttributes()
- setExtensionAttributes()