Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
totals.phtml
Go to the documentation of this file.
1 <?php
7 // @codingStandardsIgnoreFile
8 
13 ?>
14 <?php foreach ($block->getTotals() as $_code => $_total): ?>
15  <?php if ($_total->getBlockName()): ?>
16  <?= $block->getChildHtml($_total->getBlockName(), false) ?>
17  <?php else:?>
18  <tr class="<?= /* @escapeNotVerified */ $_code ?>">
19  <th <?= /* @escapeNotVerified */ $block->getLabelProperties() ?> scope="row">
20  <?php if ($_total->getStrong()):?>
21  <strong><?= $block->escapeHtml($_total->getLabel()) ?></strong>
22  <?php else:?>
23  <?= $block->escapeHtml($_total->getLabel()) ?>
24  <?php endif?>
25  </th>
26  <td <?= /* @escapeNotVerified */ $block->getValueProperties() ?> data-th="<?= $block->escapeHtml($_total->getLabel()) ?>">
27  <?php if ($_total->getStrong()):?>
28  <strong><?= /* @escapeNotVerified */ $block->formatValue($_total) ?></strong>
29  <?php else:?>
30  <?= /* @escapeNotVerified */ $block->formatValue($_total) ?>
31  <?php endif?>
32  </td>
33  </tr>
34  <?php endif?>
35 <?php endforeach?>
if($block->getTotals()) if( $block->needDisplayBaseGrandtotal())( 'Your credit card will be charged for') ?></th >< td class endif endif
Definition: totals.phtml:17
foreach( $this->main as $item) endforeach
Definition: side-menu.phtml:10
$_code
Definition: attribute.phtml:19
$block
Definition: block.php:8