63 parent::__construct($context);
84 if (!$this->config->isEnabled()) {
88 $product = $this->productRepository->getById(
$product,
false, $this->storeManager->getStore()->getId());
91 if (
$result && $visibility !==
null) {
92 $productPriceVisibility =
$product->getMsrpDisplayActualPriceType();
93 if ($productPriceVisibility ==
Type\Price::TYPE_USE_CONFIG) {
94 $productPriceVisibility = $this->config->getDisplayActualPriceType();
96 $result = $productPriceVisibility == $visibility;
100 $isEnabledInOptions = $this->productOptions->isEnabled(
$product, $visibility);
101 if ($isEnabledInOptions !==
null) {
119 $message =
__(
'To see product price, add this item to your cart. You can always remove it later.');
121 $message =
__(
'See price before order confirmation.');
153 $product = $this->productRepository->getById(
$product,
false, $this->storeManager->getStore()->getId());
157 if ($msrp ===
null) {
165 $msrp = $this->priceCurrency->convertAndRound($msrp);
167 return $msrp >
$price->getValue();
elseif(isset( $params[ 'redirect_parent']))
getMsrpPriceMessage($product)
canApplyMsrp($product, $visibility=null)
isMinimalPriceLessMsrp($product)
isShowPriceOnGesture($product)
isShowBeforeOrderConfirm($product)
__construct(Context $context, StoreManagerInterface $storeManager, \Magento\Msrp\Model\Product\Options $productOptions, \Magento\Msrp\Model\Msrp $msrp, \Magento\Msrp\Model\Config $config, \Magento\Framework\Pricing\PriceCurrencyInterface $priceCurrency, ProductRepositoryInterface $productRepository)