Log in
Model

PriceInfo

Magento\Catalog\Model\ProductRender\PriceInfo

What it does

This class serves as a data container for product pricing information used in product rendering operations.

Developers use this model to store and retrieve various price types (final, regular, special, min/max prices) and their formatted versions when displaying products in the frontend or API responses.

It implements the PriceInfoInterface and provides getter/setter methods for all price-related attributes with extension attribute support.

Public Methods

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