Model
SpecialPrice
Magento\Catalog\Model\Product\Price\SpecialPrice
What it does
This model class encapsulates special pricing data for products in Magento 2.
Developers use it to programmatically manage time-limited promotional prices, including the special price amount, effective date range (from/to), product SKU, and store scope.
It's primarily used with Magento's efficient price API for bulk special price operations.
Public Methods
- setPrice()
- getPrice()
- setStoreId()
- getStoreId()
- setSku()
- getSku()
- setPriceFrom()
- getPriceFrom()
- setPriceTo()
- getPriceTo()
- getExtensionAttributes()
- setExtensionAttributes()