Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
final_price.phtml
Go to the documentation of this file.
1 <?php
7 // @codingStandardsIgnoreFile
8 
12 ?>
13 <?php
14 $minProduct = $block->getSaleableItem()
15  ->getPriceInfo()
16  ->getPrice(\Magento\Catalog\Pricing\Price\FinalPrice::PRICE_CODE)
17  ->getMinProduct();
18 
19 if ($minProduct) {
20  $amountRender = $block->getRendererPool()
21  ->createAmountRender(
22  $minProduct->getPriceInfo()->getPrice('final_price')->getAmount(),
24  $minProduct->getPriceInfo()->getPrice('final_price'),
25  ['include_container' => true]
26  );
27 }
28 ?>
29 <div class="price-box" itemprop="offers" itemscope itemtype="http://schema.org/Offer">
30  <?php if ($minProduct && \Magento\Framework\Pricing\Render::ZONE_ITEM_VIEW != $block->getZone()): ?>
31  <p class="minimal-price">
32  <span class="price-label"><?= /* @escapeNotVerified */ __('Starting at') ?></span><?= $amountRender->toHtml() ?>
33  </p>
34  <?php endif ?>
35 </div>
$minProduct
__()
Definition: __.php:13
$block
Definition: block.php:8
endif