Log in
Interface

PriceInfoInterface

Magento\Catalog\Api\Data\ProductRender\PriceInfoInterface

What it does

This interface defines the contract for product price information used in rendering product data via API.

Developers use it to access various price types (final, regular, special, minimal, maximum) and their formatted versions when displaying product prices on storefronts or integrating with external systems.

It handles different pricing scenarios including custom options, catalog rules, and special prices.

Public Methods

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