Log in
Model

BasePrice

Magento\Catalog\Model\Product\Price\BasePrice

What it does

This class serves as a Data Transfer Object (DTO) for product base price information in Magento 2.

Developers use it to encapsulate and transfer product pricing data (price, SKU, and store ID) between different layers of the application, particularly when working with catalog price APIs or bulk price operations across multiple stores.

Public Methods

  • setPrice()
  • getPrice()
  • setStoreId()
  • getStoreId()
  • setSku()
  • getSku()
  • getExtensionAttributes()
  • setExtensionAttributes()