Log in
Model

TierPrice

Magento\Catalog\Model\Product\Price\TierPrice

What it does

This class represents a Tier Price Data Transfer Object (DTO) for product pricing in Magento 2.

Developers use this class to work with tier pricing data when creating, updating, or retrieving quantity-based discount prices for products through the API or programmatically.

It stores information like price amount, price type (fixed/percentage), SKU, customer group, quantity threshold, and website scope.

Public Methods

  • setPrice()
  • getPrice()
  • setPriceType()
  • getPriceType()
  • setWebsiteId()
  • getWebsiteId()
  • setSku()
  • getSku()
  • setCustomerGroup()
  • getCustomerGroup()
  • setQuantity()
  • getQuantity()
  • getExtensionAttributes()
  • setExtensionAttributes()