Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
tier_prices.phtml
Go to the documentation of this file.
1 <?php
7 // @codingStandardsIgnoreFile
8 
9 ?>
10 
11 <?php
15 $tierPriceModel = $block->getPrice();
16 $tierPrices = $tierPriceModel->getTierPriceList();
17 ?>
18 <?php if (count($tierPrices)) : ?>
19  <ul class="<?= /* @escapeNotVerified */ ($block->hasListClass() ? $block->getListClass() : 'prices-tier items') ?>">
20  <?php foreach ($tierPrices as $index => $price) : ?>
21  <li class="item">
22  <?php /* @escapeNotVerified */ echo __(
23  'Buy %1 with %2 discount each',
24  $price['price_qty'],
25  '<strong class="benefit">' . round($price['percentage_value']) . '%</strong>'
26  ); ?>
27  </li>
28  <?php endforeach; ?>
29  </ul>
30 <?php endif; ?>
__()
Definition: __.php:13
$price
$block
Definition: block.php:8
endif
endforeach
$tierPrices
$tierPriceModel
$index
Definition: list.phtml:44