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 
9 ?>
10 <table class="data-table admin__table-secondary order-subtotal-table">
11  <?php $_totals = $block->getTotals('footer')?>
12 
13  <?php if ($_totals):?>
14  <tfoot>
15  <?php foreach ($block->getTotals('footer') as $_code => $_total): ?>
16  <?php if ($_total->getBlockName()): ?>
17  <?= $block->getChildHtml($_total->getBlockName(), false) ?>
18  <?php else:?>
19  <tr class="col-<?= /* @escapeNotVerified */ $_code ?>">
20  <td <?= /* @escapeNotVerified */ $block->getLabelProperties() ?> class="label">
21  <strong><?= $block->escapeHtml($_total->getLabel()) ?></strong>
22  </td>
23  <td <?= /* @escapeNotVerified */ $block->getValueProperties() ?>>
24  <strong><?= /* @escapeNotVerified */ $block->formatValue($_total) ?></strong>
25  </td>
26  </tr>
27  <?php endif?>
28  <?php endforeach?>
29  </tfoot>
30  <?php endif?>
31 
32  <?php $_totals = $block->getTotals('')?>
33  <?php if ($_totals):?>
34  <tbody>
35  <?php foreach ($_totals as $_code => $_total): ?>
36  <?php if ($_total->getBlockName()): ?>
37  <?= $block->getChildHtml($_total->getBlockName(), false) ?>
38  <?php else:?>
39  <tr class="col-<?= /* @escapeNotVerified */ $_code ?>">
40  <td <?= /* @escapeNotVerified */ $block->getLabelProperties() ?> class="label">
41  <?php if ($_total->getStrong()):?>
42  <strong><?= $block->escapeHtml($_total->getLabel()) ?></strong>
43  <?php else:?>
44  <?= $block->escapeHtml($_total->getLabel()) ?>
45  <?php endif?>
46  </td>
47 
48  <?php if ($_total->getStrong()):?>
49  <td <?= /* @escapeNotVerified */ $block->getValueProperties() ?>>
50  <strong><?= /* @escapeNotVerified */ $block->formatValue($_total) ?></strong>
51  </td>
52  <?php else:?>
53  <td <?= /* @escapeNotVerified */ $block->getValueProperties() ?>>
54  <span><?= /* @escapeNotVerified */ $block->formatValue($_total) ?></span>
55  </td>
56  <?php endif?>
57  </tr>
58  <?php endif?>
59  <?php endforeach?>
60  </tbody>
61  <?php endif?>
62 </table>
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