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, \Magento\Msrp\Helper\Data $msrpData, \Magento\Msrp\Model\Config $config) | |
isShowPriceOnGesture () | |
getMsrpPriceMessage () | |
isMsrpEnabled () | |
canApplyMsrp (Product $product) | |
isMinimalPriceLessMsrp (Product $product) | |
![]() | |
getValue () | |
getMinimalPrice () | |
getMaximalPrice () | |
![]() | |
__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 = 'msrp_price' |
![]() | |
const | PRICE_CODE = 'final_price' |
![]() | |
const | PRICE_CODE = 'abstract_price' |
Protected Attributes | |
$msrpData | |
$config | |
![]() | |
$minimalPrice | |
$maximalPrice | |
![]() | |
$amount | |
$calculator | |
$product | |
$priceType | |
$quantity | |
$priceInfo | |
$value | |
$priceCurrency | |
Additional Inherited Members | |
![]() | |
getBasePrice () | |
MSRP price model
Definition at line 16 of file MsrpPrice.php.
__construct | ( | Product | $saleableItem, |
$quantity, | |||
CalculatorInterface | $calculator, | ||
\Magento\Framework\Pricing\PriceCurrencyInterface | $priceCurrency, | ||
\Magento\Msrp\Helper\Data | $msrpData, | ||
\Magento\Msrp\Model\Config | $config | ||
) |
Product | $saleableItem | |
float | $quantity | |
CalculatorInterface | $calculator | |
\Magento\Framework\Pricing\PriceCurrencyInterface | $priceCurrency | |
\Magento\Msrp\Helper\Data | $msrpData | |
\Magento\Msrp\Model\Config | $config |
Definition at line 41 of file MsrpPrice.php.
canApplyMsrp | ( | Product | $product | ) |
Check if can apply Minimum Advertise price to product
Product | $product |
Implements MsrpPriceInterface.
Definition at line 90 of file MsrpPrice.php.
getMsrpPriceMessage | ( | ) |
Get Msrp message for price
Implements MsrpPriceInterface.
Definition at line 69 of file MsrpPrice.php.
isMinimalPriceLessMsrp | ( | Product | $product | ) |
isMsrpEnabled | ( | ) |
Check if Minimum Advertised Price is enabled
Implements MsrpPriceInterface.
Definition at line 79 of file MsrpPrice.php.
isShowPriceOnGesture | ( | ) |
Returns whether the MSRP should be shown on gesture
Implements MsrpPriceInterface.
Definition at line 59 of file MsrpPrice.php.
|
protected |
Definition at line 31 of file MsrpPrice.php.
|
protected |
Definition at line 26 of file MsrpPrice.php.
const PRICE_CODE = 'msrp_price' |
Price type MSRP
Definition at line 21 of file MsrpPrice.php.