Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
ConfiguredPriceBox.php
Go to the documentation of this file.
1 <?php
7 
9 
10 class ConfiguredPriceBox extends \Magento\Catalog\Pricing\Render\ConfiguredPriceBox
11 {
15  protected function getCacheLifetime()
16  {
17  return null;
18  }
19 
23  protected function _prepareLayout()
24  {
26  $price = $this->getPrice();
27 
29  $renderBlock = $this->getRenderBlock();
30  if (!$renderBlock && $this->getItem() instanceof ItemInterface) {
31  $price->setItem($this->getItem());
32  }
33 
34  return parent::_prepareLayout();
35  }
36 }