Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
|
Public Member Functions | |
getDiscountPercent () | |
getValue () | |
isPercentageDiscount () | |
![]() | |
__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 () | |
Protected Member Functions | |
getRegularPrice () | |
Protected Attributes | |
$percent | |
![]() | |
$localeDate | |
![]() | |
$amount | |
$calculator | |
$product | |
$priceType | |
$quantity | |
$priceInfo | |
$value | |
$priceCurrency | |
Additional Inherited Members | |
![]() | |
const | PRICE_CODE = 'special_price' |
![]() | |
const | PRICE_CODE = 'abstract_price' |
Special price model
Definition at line 14 of file SpecialPrice.php.
getDiscountPercent | ( | ) |
Returns discount percent
Implements DiscountProviderInterface.
Definition at line 26 of file SpecialPrice.php.
|
protected |
Returns regular price
Definition at line 60 of file SpecialPrice.php.
getValue | ( | ) |
Returns price value
Implements PriceInterface.
Definition at line 39 of file SpecialPrice.php.
isPercentageDiscount | ( | ) |
|
protected |
Definition at line 19 of file SpecialPrice.php.