37 parent::__construct($context,
$data);
48 $originalBlock = $this->
getLayout()->getBlock($this->getOriginalBlockName());
49 $quote = $originalBlock->getQuote();
50 if (!$this->msrp->getCanApplyMsrp(
$quote->getId()) && $this->config->isEnabled()) {
53 if ($this->msrp->getCanApplyMsrp(
$quote->getId())) {
54 $originalBlock->setTemplate(
'');
55 return parent::_toHtml();
__construct(\Magento\Framework\View\Element\Template\Context $context, \Magento\Msrp\Model\Config $config, \Magento\Msrp\Model\Quote\Msrp $msrp, array $data=[])