Log in
Model

Price

Magento\Catalog\Model\Product\Type\Price

What it does

This class handles product pricing calculations in Magento 2, including base prices, tier prices, special prices, and final prices.

Developers use this class to retrieve and calculate product prices considering customer groups, quantity discounts, date-based special pricing, and catalog price rules.

It's the foundation for all simple product price calculations before the newer pricing framework.

Public Methods

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