Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
totalbar.phtml
Go to the documentation of this file.
1 <?php
7 // @deprecated
8 // @codingStandardsIgnoreFile
9 
10 $totals = $block->getTotals();
11 ?>
12 <?php if ($totals && count($totals) > 0): ?>
13 <table class="items-to-invoice">
14  <tr>
15  <?php foreach ($totals as $total): ?>
16  <td <?php if ($total['grand']): ?>class="grand-total"<?php endif; ?>>
17  <?= $block->escapeHtml($total['label']) ?><br />
18  <?= $block->escapeHtml($total['value']) ?>
19  </td>
20  <?php endforeach; ?>
21  </tr>
22 </table>
23 <?php endif; ?>
if(sizeof( $block->getTotals()) > 0)($block->getTotals() as $_total) endif
Definition: totalbar.phtml:10
$block
Definition: block.php:8
$totals
Definition: totalbar.phtml:10
if( $totals &&count( $totals) > 0)( $totals as $total)($total['grand']) endforeach
Definition: totalbar.phtml:18