Log in
Model

Price

Magento\Catalog\Model\Product\Type\Price

What it does

This class handles all product pricing calculations in Magento 2, including base prices, special prices, tier prices, and catalog price rules.

Developers use this class when they need to retrieve or calculate product prices programmatically, apply custom pricing logic, or extend pricing functionality for custom product types.

Public Methods

  • getPrice()
  • getBasePrice()
  • getFinalPrice()
  • getChildFinalPrice()
  • getTierPrice()
  • getTierPrices()
  • setTierPrices()
  • getTierPriceCount()
  • getFormattedTierPrice()
  • getFormatedTierPrice()
  • getFormattedPrice()
  • getFormatedPrice()
  • calculatePrice()
  • calculateSpecialPrice()
  • isTierPriceFixed()
  • _resetState()