Log in
Model

TierPrice

Magento\Catalog\Model\Product\Price\TierPrice

What it does

This class serves as a Data Transfer Object (DTO) for managing tier pricing information in Magento 2.

Developers use it to get and set tier price attributes like price amount, price type, website ID, SKU, customer group, and quantity thresholds when working with product pricing APIs.

It's commonly used when creating or updating bulk pricing rules that offer discounts based on purchase quantity.

Public Methods

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