Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
|
Public Member Functions | |
__construct (Product $saleableItem, $quantity, CalculatorInterface $calculator, \Magento\Framework\Pricing\PriceCurrencyInterface $priceCurrency, TimezoneInterface $localeDate) | |
getValue () | |
getSpecialPrice () | |
getSpecialFromDate () | |
getSpecialToDate () | |
isScopeDateInInterval () | |
isPercentageDiscount () | |
![]() | |
__construct (SaleableInterface $saleableItem, $quantity, CalculatorInterface $calculator, \Magento\Framework\Pricing\PriceCurrencyInterface $priceCurrency) | |
getValue () | |
getAmount () | |
getCustomAmount ($amount=null, $exclude=null, $context=[]) | |
getPriceCode () | |
getProduct () | |
getQuantity () | |
Data Fields | |
const | PRICE_CODE = 'special_price' |
![]() | |
const | PRICE_CODE = 'abstract_price' |
Protected Attributes | |
$localeDate | |
![]() | |
$amount | |
$calculator | |
$product | |
$priceType | |
$quantity | |
$priceInfo | |
$value | |
$priceCurrency | |
Special price model
Definition at line 18 of file SpecialPrice.php.
__construct | ( | Product | $saleableItem, |
$quantity, | |||
CalculatorInterface | $calculator, | ||
\Magento\Framework\Pricing\PriceCurrencyInterface | $priceCurrency, | ||
TimezoneInterface | $localeDate | ||
) |
Product | $saleableItem | |
float | $quantity | |
CalculatorInterface | $calculator | |
\Magento\Framework\Pricing\PriceCurrencyInterface | $priceCurrency | |
TimezoneInterface | $localeDate |
Definition at line 37 of file SpecialPrice.php.
getSpecialFromDate | ( | ) |
Returns starting date of the special price
Implements SpecialPriceInterface.
Definition at line 83 of file SpecialPrice.php.
getSpecialPrice | ( | ) |
Returns special price
Implements SpecialPriceInterface.
Definition at line 69 of file SpecialPrice.php.
getSpecialToDate | ( | ) |
Returns end date of the special price
Implements SpecialPriceInterface.
Definition at line 93 of file SpecialPrice.php.
getValue | ( | ) |
Implements PriceInterface.
Definition at line 51 of file SpecialPrice.php.
isPercentageDiscount | ( | ) |
isScopeDateInInterval | ( | ) |
Implements SpecialPriceInterface.
Definition at line 101 of file SpecialPrice.php.
|
protected |
Definition at line 28 of file SpecialPrice.php.
const PRICE_CODE = 'special_price' |
Price type special
Definition at line 23 of file SpecialPrice.php.